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
File details
Details for the file inkawuvp_pellet_dispenser-0.0.1.tar.gz
.
File metadata
- Download URL: inkawuvp_pellet_dispenser-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e07383e101ddba18978bb998fec371b32445a09f020e22c72084afb04c9e0b1 |
|
MD5 | 8c970ed3acd256968530be5e81ab4385 |
|
BLAKE2b-256 | 52ad8a5fc244c39542103891666e1caa69fd565186d0919d058ce0f5a0ad95a2 |
File details
Details for the file inkawuvp_pellet_dispenser-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: inkawuvp_pellet_dispenser-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13e09f2bf63fd69864fa9fedb5a9304a011ad6a6049ff4d7c7a4a4ecea254353 |
|
MD5 | 069082ce27c0be960a460fb282ef97a9 |
|
BLAKE2b-256 | 40f360643f6b6b4efd7a3589c8497117832235ebb8e58d7dd0d89381cbe8e6e2 |