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.3.tar.gz (28.6 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.3-py3-none-any.whl (48.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymxbi-0.1.3.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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.3.tar.gz
Algorithm Hash digest
SHA256 d5d954fcb33c4069c4ba1c102abb0fcc83f04573872c47ba3f1713c1ef9bccdb
MD5 04c7f51656468c2194f7c9f063b15787
BLAKE2b-256 e16999b66abcbc747547477070411d2e9f371a0aada1e099d2bc1e4aa36b84e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymxbi-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 48.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8de572c1d48a6a5917dd17f66f86d9e50116e9fd06fc5cd16bc69641a8a89ea0
MD5 7327ecc6e70e9924f3c5eef70ab12436
BLAKE2b-256 15183aa20b6310b13a98452d3cfd429ec80c225a429f6d1766cc509bb8c41bb6

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