Skip to main content

sinette

Minimalistic Python library for Sinette DMX levels. No checking, just getting levels.

Status

  • Subscribe and get DMX levels

Installation

  • With uv:
uv add sinette
  • With pip
pip install sinette

Usage

import time

import sinette


sinette_universe = 1
sinette_scope = "local"
sinette_receiver = sinette.SinetteReceiver(scope=sinette_scope)


@sinette_receiver.listen_on("universe", universe=sinette_universe)
def on_sinette_dmx(packet):
    print(
        f"[{packet.scope}] universe {packet.universe}: {packet.dmxData[:16]}",
        flush=True,
    )


def main() -> None:
    sinette_receiver.join_multicast(sinette_universe)
    sinette_receiver.start()
    print(
        f"Listening for Sinette universe {sinette_universe} in scope {sinette_scope!r}. Press Ctrl-C to stop."
    )
    try:
        while True:
            time.sleep(1)
    except KeyboardInterrupt:
        pass
    finally:
        sinette_receiver.stop()


if __name__ == "__main__":
    main()

Development

PRs appreciated. You can use uv to get the project setup by running:

uv sync

Format

  • To format, use ruff
uv format

Pre-commit hooks

  • You can use the pre-commit hooks
uv run pre-commit install

Testing

  • To test, use pytest
uv run pytest

Metadata

Release files for sinette 0.1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for sinette 0.1.0
File Interpreter ABI Platform Actions
sinette-0.1.0-py3-none-any.whl Python 3 none any Details for sinette-0.1.0-py3-none-any.whl

Release files / sinette-0.1.0-py3-none-any.whl

Download URL sinette-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d043c79279ad8e8653bf743474968a372f315b754e00680bdd58dcbb1436fb6
BLAKE2b-256 checksum
How to use checksums
73637a901533dee60576392c305f44f7c2b196675ee88ffaf429a9c31dca6e76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":null,"id":"forky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for sinette 0.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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