Skip to main content

Simple Python client for participating in privacy aware environmental monitoring.

Project description

Trixel Service Client

The Trixel Service Client (TSC) is a single unified python module which is used to participate in privacy aware environmental monitoring. This module is responsible for interacting with the Trixel Lookup Service (TLS) and the Trixel Management Service (TMS) to provide updates to the trixel-based sensor network.

This module currently only support contributing clients.

Usage

The core Client class contains large parts of the logic and allows for the implementations of derivatives which persist the clients configuration differently. Persisting the configuration is required as it contains the measurement stations unique identifier and authentication token.

Examples for client implementations and extensions therefore can be found under src/trixelserviceclient/extended_clients/. The PollingPickleClient is a complete client implementation that can persist the client configuration in a pickle file for future use. It requires the definition of a get_updates method which provides the to-be-submitted values for the registered sensors. This variant of the implementation performs all necessary steps for contribution by itself, which includes registration, configuration change synchronization and providing measurement updates.

The Client class also build the foundation for the Trixel service bridges and the Home Assistant Trixel contribution Integration.

Development

The client implementation uses both the generated TSM python client module and the TLS python client module. They are listed in the requirements file among other dependencies. Pre-commit is used to enforce code-formatting, formatting tools are mentioned here.

The resulting python module can be built with pythons build module, which is also performed by the CI/CD pipeline.

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

trixelserviceclient-0.0.1.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

trixelserviceclient-0.0.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file trixelserviceclient-0.0.1.tar.gz.

File metadata

  • Download URL: trixelserviceclient-0.0.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for trixelserviceclient-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a9021bad03b29490a6316a3af1f4b305d345f1110e0863b981091d27bbaf2e58
MD5 66fcb315a777af10c898d1c05d67d34b
BLAKE2b-256 24ae79c00e0eaf1e8e6d6994eed5d7a1ef967d45f51f8259822ea4b97628b5ca

See more details on using hashes here.

File details

Details for the file trixelserviceclient-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for trixelserviceclient-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b85c92e739bf68c09c7fa8c68d6f5d067576279f1113d541899f5215a7a2ceae
MD5 125857939fec8bc235f0797944207e9d
BLAKE2b-256 670de4985cd388e1407cb4f658f3cfb345a36417732bb043073a9a7c2915f1ee

See more details on using hashes here.

Supported by

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