Skip to main content

Powersensor (local)

A small package to interface with the network-local event streams available on Powersensor devices.

Two different high-level abstractions are provided. The first is the PlugApi, which provides access to the event stream from a single Powersensor Plug. The plug may be relaying data for sensors as well, which will also be included in the said event stream. The PlugApi abstraction is ideal when used together with Zeroconf/mDNS discovery (services '_powersensor._udp.local' and '_powersensor._tcp.local'). Note that actual Zeroconf/mDNS discovery functionality is not included here.

The second abstraction is the PowersensorDevices class, which uses the legacy discovery mechanism (as opposed to mDNS) to discover the plugs, and then aggregates all the event streams into a single callback. Internally it relies on the PlugApi as well.

There are also some small utilities included,ps-plugevents and ps-rawplug showcasing the use of the first interface approach, and ps-events the latter.

The ps-events is effectively a consumer of the PowersensorDevices event stream and dumps all events to standard out. Similary, ps-plugevents shows the event stream from a single plug (plus whatever it might be relaying for), and ps-rawplug shows the raw event stream from the plug. Note that the format of the raw events is not guaranteed to be stable; only the interface provided by PlugApi is.

Metadata

Release files for powersensor-local 2.2.1

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

Source distribution (sdist)

Source distribution for powersensor-local 2.2.1
File Size Uploaded Provenance Actions
powersensor_local-2.2.1.tar.gz 31.2 kB With provenance Details for powersensor_local-2.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for powersensor-local 2.2.1
File Interpreter ABI Platform Actions
powersensor_local-2.2.1-py3-none-any.whl Python 3 none any Details for powersensor_local-2.2.1-py3-none-any.whl

Total release size: 63.6 kB

Release files / powersensor_local-2.2.1.tar.gz

Download URL powersensor_local-2.2.1.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0db16230c709bfd7543b5520469a0cdce9cf01910548cd68f6cc5f683aa0e065
BLAKE2b-256 checksum
How to use checksums
5812b1f15dd050eff66781cad1c3981b6a67bd871c9093b1cca816b995b31bbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / powersensor_local-2.2.1-py3-none-any.whl

Download URL powersensor_local-2.2.1-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60208868eb7b5c89efaf6affb59c6bea92cc9c78fa839838e3a846116a540cc7
BLAKE2b-256 checksum
How to use checksums
537b96faec4079c2987d64275e98ea9c30cbe9c7055945b38c99cb3b95a1ef61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Security for powersensor-local 2.2.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for powersensor_local-2.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

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