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.3.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 powersensor-local 2.3.0
File Size Uploaded Provenance Actions
powersensor_local-2.3.0.tar.gz 32.9 kB With provenance Details for powersensor_local-2.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 65.7 kB

Release files / powersensor_local-2.3.0.tar.gz

Download URL powersensor_local-2.3.0.tar.gz
Size 32.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9ed48288a373ddc17f9587d65db82b9eda1d0a49182e8329749b3093931d45e1
BLAKE2b-256 checksum
How to use checksums
8207f74719c087ee60bec6a86ac45788dd3f770506fba9fcbc7cc33215e12632
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 21, 2026.

Transparency log

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

Download URL powersensor_local-2.3.0-py3-none-any.whl
Size 32.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f38fd565f293594104081c3e47d3c2aaf3f129a56cb195e6b4f0270dece0ffd6
BLAKE2b-256 checksum
How to use checksums
c7e1f5f160d3c7a0d21dbabfddb85c1b20333c31efeaa79f856683fae4041092
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 21, 2026.

Transparency log

Security for powersensor-local 2.3.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.

Full provenance

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

Select from 2 files

Attestation for powersensor_local-2.3.0.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 21, 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