Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inkawuvp_pellet_dispenser-0.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file inkawuvp_pellet_dispenser-0.0.1.tar.gz.

File metadata

File hashes

Hashes for inkawuvp_pellet_dispenser-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5e07383e101ddba18978bb998fec371b32445a09f020e22c72084afb04c9e0b1
MD5 8c970ed3acd256968530be5e81ab4385
BLAKE2b-256 52ad8a5fc244c39542103891666e1caa69fd565186d0919d058ce0f5a0ad95a2

See more details on using hashes here.

File details

Details for the file inkawuvp_pellet_dispenser-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for inkawuvp_pellet_dispenser-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 13e09f2bf63fd69864fa9fedb5a9304a011ad6a6049ff4d7c7a4a4ecea254353
MD5 069082ce27c0be960a460fb282ef97a9
BLAKE2b-256 40f360643f6b6b4efd7a3589c8497117832235ebb8e58d7dd0d89381cbe8e6e2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page