Skip to main content

Tango Device Server for the MC-MAX project

pipeline status coverage report PyPI Python License

This tango device server connects to an mqtt broker using the paho-mqtt library and upon success reads the esp-32 self description topic, and starts a tango device with dynamic attributes and commands.

One device serves one microcontroller. The attributes and commands are not declared here: they are built at runtime from the JSON self-description the microcontroller publishes, so a firmware change is enough to change the Tango interface. See specs/README.md for the MQTT contract.

Properties

Name Description
broker A string, URI of the mqtt broker
username The username for the mqtt broker connection
password The password for the mqtt broker connection
mqtt_name The name of the microcontroller in the mqtt topic tree. Usually it's the hostname of the microcontroller (without domain).

Development

python -m venv .venv
.venv/bin/pip install -e ".[test]"
.venv/bin/pytest --cov=mcmax --cov-report=term-missing

Style and typing are enforced by pre-commit (ruff and mypy); CI runs the same hooks:

pre-commit install
pre-commit run --all

Metadata

Release files for tangods-mcmax 1.1.0

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

Source distribution (sdist)

Source distribution for tangods-mcmax 1.1.0
File Size Uploaded Provenance Actions
tangods_mcmax-1.1.0.tar.gz 37.5 kB Without provenance Details for tangods_mcmax-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tangods-mcmax 1.1.0
File Interpreter ABI Platform Actions
tangods_mcmax-1.1.0-py3-none-any.whl Python 3 none any Details for tangods_mcmax-1.1.0-py3-none-any.whl

Total release size: 56.7 kB

Release files / tangods_mcmax-1.1.0.tar.gz

Download URL tangods_mcmax-1.1.0.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
32e16feeee98194a92fc39d578e2567a9629f69df1d82dea06422f4295b1d939
BLAKE2b-256 checksum
How to use checksums
d872970a8805f88d7eb0fe1f9e5ba066c5459303b1600388e83c0ae7da9caaf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / tangods_mcmax-1.1.0-py3-none-any.whl

Download URL tangods_mcmax-1.1.0-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07c810b523492f43db19c8e5fa3ba0d2a5a7bb7391ef82ba95b2e022a798704f
BLAKE2b-256 checksum
How to use checksums
fe4275b4b395058f5a00964befe209d3bd5b5c5592889284b56c38a10be8392b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for tangods-mcmax 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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