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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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