Skip to main content

Python interfaces and drivers for MXBI

Project description

pymxbi

Python interfaces and drivers for mxbi

English | 中文

Install

pip install pymxbi

Or with uv:

uv add pymxbi

Public API

Detectors

  • pymxbi.detector.detector.Detector: base class + event registration
  • pymxbi.detector.detector.DetectorEvent / DetectorState / DetectionResult
  • pymxbi.detector.beam_break_rfid_detector.BeamBreakRFIDDetector: beam-break + RFID combined detector

Rewarders

  • pymxbi.rewarder.rewarder.Rewarder: reward backend protocol (open, give_reward*, stop_reward, close)
  • pymxbi.rewarder.pump_rewarder.PumpRewarder: time-based reward delivery via a pump
  • pymxbi.rewarder.mock_rewarder.MockRewarder: logging-only mock implementation

Peripherals

  • Pumps: pymxbi.peripheral.pumps.pump.Pump / Direction, pymxbi.peripheral.pumps.RPI_gpio_pump.RPIGpioPump
  • Through-beam sensors: pymxbi.peripheral.through_beam_sensor.through_beam_sensor.ThroughBeamSensor, pymxbi.peripheral.through_beam_sensor.RPI_IR_break_beam_sensor.RPIIRBreakBeamSensor
  • RFID reader: pymxbi.peripheral.rfid.dorset_lid665v42.DorsetLID665v42 (open, begin, read, close, errno)

Utilities

  • Audio volume: pymxbi.peripheral.amixer.amixer.set_master_volume, set_digital_volume (calls amixer)

Notes

  • Typed package (py.typed), requires Python >=3.14.

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

pymxbi-0.3.4.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymxbi-0.3.4-py3-none-any.whl (49.7 kB view details)

Uploaded Python 3

File details

Details for the file pymxbi-0.3.4.tar.gz.

File metadata

  • Download URL: pymxbi-0.3.4.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pymxbi-0.3.4.tar.gz
Algorithm Hash digest
SHA256 5d40a05014b1dd98c38c2883aad40b60cac6781e627f1ad869dd07413de139d6
MD5 0dedfbd61f1dedb5a18e40dbe8500846
BLAKE2b-256 846c08425a4352b419b12284a5dfaf922dbc7ac22ea1c6e663d157118ffbfb94

See more details on using hashes here.

File details

Details for the file pymxbi-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: pymxbi-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 49.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pymxbi-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eb90ed4a2ddc4d2fe4871cb345c8cb729a355856342359a9a4036c68b032d94c
MD5 74a1d00ac5081246c659dc33c2e9438d
BLAKE2b-256 ae1755980b3e176478f8a4715f5272e1ac752bb8d317fb3e04fac4571a955ef0

See more details on using hashes here.

Supported by

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