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.1.2.tar.gz (25.5 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.1.2-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymxbi-0.1.2.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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.1.2.tar.gz
Algorithm Hash digest
SHA256 1c2beda984a571afd0dca322c34270e8ac891b1e3754ac14f1d4c95731f8c475
MD5 13637856f9760c41607a6e3f7ffec203
BLAKE2b-256 76cee76666e022dccc737b12f115ec03b124b991bebbf8a78827fae12e53aeae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymxbi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 41.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e8ffc697d07cbb89c26ac45e9d651be7fa7e6c6e3072d369490694ed4b757d2
MD5 0fde8700f76a23003a0a64538838ec04
BLAKE2b-256 dd42d6a4f592f1f6377f6e373cc41ed2da6cdf7abaffea7a1ca4102700ff755d

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