A Python package to contol IVP's pellet dispenser via USB
Project description
Pellet Dispenser Python Driver
This is a python package to use the pellet dispenser with python.
Installing
Install this package with the following shell command
pip install inkawuvp-pellet-dispenser
inkawuvp-pellet-dispenser
is based on hid and
therefore require the hidapi library to be
installed separately.
Installing hidapi
Linux
Depending on your distribution you will need to install a hidapi package.
Ubuntu / Debian based
sudo apt install libhidapi-hidraw0
macOS
The easiest is to use Homebrew:
brew install hidapi
Sample usage code
from inkawuvp_pellet_dispenser import Device, DispenserError
dev = Device()
try:
dispensed = dev.dispense(1)
print(f'Dispensed {dispensed} pellets')
except DispenserError as e:
print(e)
print(f'still dispensed {e.dispensed}')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for inkawuvp_pellet_dispenser-0.0.2a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ec283b1848f6256de501cb8fecc90d7923c9cee7813c87d60a00df29468e1ca |
|
MD5 | c474b8c12320292b30b6a8282530928d |
|
BLAKE2b-256 | 344b35a671986f6a7ce0aaecc29da6e654eee3850dd17a3b553579207dc6c1ba |
Close
Hashes for inkawuvp_pellet_dispenser-0.0.2a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04bc3d6c640babcdd83b437981d484a6fdbe067253b4efdc848fe2e2b99bddcd |
|
MD5 | 0fe2136d99f5e3f4e6f489a6d4e0f3f1 |
|
BLAKE2b-256 | 46e05273a2a1610ed76b8ade85371249705c9f9ce8cacc083b8a19295f9a5ce2 |