• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wehr-lab / autopilot / 531 / 3
28%
main: 28%

Build:
Build:
LAST BUILD BRANCH: v0.5.0
DEFAULT BRANCH: main
Ran 27 Jul 2021 12:51AM UTC
Files 65
Run time 12s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Jul 2021 12:46AM UTC coverage: 26.745% (+2.8%) from 23.982%
DISPLAY=":99.0" QT_DEBUG_PLUGINS=1

push

travis-ci-com

web-flow
Implement Registries, Plugins, and Wiki Integration (#109)

Very late now, but I believe i have done this: https://github.com/wehr-lab/autopilot/issues/39

I will return tomorrow to write the docs and the PR, but yes it is time.

dump anything that inherits from the appropriate metaclass into `PLUGINDIR` and...

```python
import autopilot

# list all hardware
autopilot.get('hardware')
# or an alias
autopilot.get_hardware()

# get hardware (including from plugins)
autopilot.get('hardware', 'PWM')

# get anything
autopilot.get('task')
autopilot.get('graduation')
autopilot.get('transform')
autopilot.get('children')
```

and as a little bonus...

```python
>>> from autopilot.utils import wiki
>>> wiki.ask('[[HiFiBerry Amp2]]', "Uses GPIO Pin")
[{'Uses GPIO Pin': [3, 5, 7, 12, 35, 38, 40],
  'name': 'HiFiBerry Amp2',
  'url': 'https://wiki.auto-pi-lot.com/index.php/HiFiBerry_Amp2'}]
```

which will serve as the means of submitting plugins and doing some stuff that is truly messed up how cool it is... more soon ;)

* deduplicate utils

formerly had core/utils and a utils module, just have the module now.

* draft simpler registry :)

* moving common utility functions out of __init__

* task and hardware aliases

* proper sorting

* got excited and made a wiki API access module in this branch by accident whoops

* want to get one good build off!

* want to get one good build off!

* tests for registry module

* whoops reverting stuff that was broken at the time of adding it lmao jonny watch the results of the tests jesus christ

* basic test of a plugin

* implementing get throughout rest of library

removing imports and references to hardware and task objects, and finally killed the godforsaken Task List once and for all.
also adding other assorted improvements and bugfixes from the registries branch

* just for shits lets see if other versions work

* fix path traversal through modules whos... (continued)

2445 of 9142 relevant lines covered (26.74%)

0.27 hits per line

Source Files on job 531.3 (DISPLAY=":99.0" QT_DEBUG_PLUGINS=1)
  • Tree
  • List 0
  • Changed 22
  • Source Changed 16
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 393
  • Travis Job 531.3
  • 13c4c567 on github
  • Prev Job for DISPLAY=":99.0" QT_DEBUG_PLUGINS=1 on dev (#519.1)
  • Next Job for DISPLAY=":99.0" QT_DEBUG_PLUGINS=1 on dev (#532.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc