Skip to main content

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}')

Release files for inkawuvp-pellet-dispenser 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inkawuvp-pellet-dispenser 0.0.1
File Size Uploaded
inkawuvp_pellet_dispenser-0.0.1.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for inkawuvp-pellet-dispenser 0.0.1
File Interpreter ABI Platform
inkawuvp_pellet_dispenser-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / inkawuvp_pellet_dispenser-0.0.1.tar.gz

Download URL inkawuvp_pellet_dispenser-0.0.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5e07383e101ddba18978bb998fec371b32445a09f020e22c72084afb04c9e0b1
BLAKE2b-256 checksum
How to use checksums
52ad8a5fc244c39542103891666e1caa69fd565186d0919d058ce0f5a0ad95a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / inkawuvp_pellet_dispenser-0.0.1-py3-none-any.whl

Download URL inkawuvp_pellet_dispenser-0.0.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13e09f2bf63fd69864fa9fedb5a9304a011ad6a6049ff4d7c7a4a4ecea254353
BLAKE2b-256 checksum
How to use checksums
40f360643f6b6b4efd7a3589c8497117832235ebb8e58d7dd0d89381cbe8e6e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page