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.4.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.4.1
File Size Uploaded Provenance Actions
powersensor_local-2.4.1.tar.gz 40.0 kB With provenance Details for powersensor_local-2.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 77.6 kB

Release files / powersensor_local-2.4.1.tar.gz

Download URL powersensor_local-2.4.1.tar.gz
Size 40.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1319dd2a693d3137786e8c6a0d13a379f5aec7fdba1e30276145b5f54f43e5e1
BLAKE2b-256 checksum
How to use checksums
b455ff68e011de032d85cedd4124cbe961bb9a501b9012e27814856c51afefb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 28, 2026.

Transparency log

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

Download URL powersensor_local-2.4.1-py3-none-any.whl
Size 37.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa1b8f00adbfcce070cda480734183d13d39d6bdfd6ea76b8a7059815e023a83
BLAKE2b-256 checksum
How to use checksums
b4cafe1b71d493db03bbf82c16e872921f76f455baccf3f46b1f34cae33ae063
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 28, 2026.

Transparency log

Security for powersensor-local 2.4.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.4.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 Oct 28, 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