sds011lib
sds011lib is a fully-typed, nearly-complete, python 3.10+ library for interacting with the SDS011 Air Quality Sensor.
The SDS011 is a small, low-cost sensor created by www.inovafitness.com, used to measure particulate matter in the air. It can measure both PM 2.5 and PM10 values simultaneously, and connects to devices over a serial port, or via USB with an included adaptor.
The full documentation is available at https://timorme.github.io/sds011lib/
Installation
pip install sds011lib
Quickstart
from sds011lib import SDS011QueryReader
from serial import Serial
# Setup a query-mode reader on /dev/ttyUSB0
sensor = SDS011QueryReader("/dev/ttyUSB0")
# Read some data!
aqi = sensor.query()
print(aqi.pm25)
print(aqi.pm10)
# Put the device to sleep
sensor.sleep()
# Wake it back up
sensor.wake()
Metadata
Release files for sds011lib 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sds011lib-0.5.0.tar.gz | 9.1 kB | With provenance | Details for sds011lib-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sds011lib-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for sds011lib-0.5.0-py3-none-any.whl |
Total release size: 19.2 kB
Release files / sds011lib-0.5.0.tar.gz
| Download URL | sds011lib-0.5.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e4eec65bdf60ac7ff0c4fd4344d742f136311657a6bd0f9e4c1a06fe3454d5b
|
|
BLAKE2b-256 checksum How to use checksums |
bc257305acf60472faf213f629d4cc06e6dd783d8150a3145eeb11e2f61a6541
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
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 logRelease files / sds011lib-0.5.0-py3-none-any.whl
| Download URL | sds011lib-0.5.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22954157e2257fd42f44016f413dea2ab3dcc8f56a62a36e49221b4e089b1e7e
|
|
BLAKE2b-256 checksum How to use checksums |
9567982380209bb1aca7bf1018e8132e3d7a5d86cb7472df2a440e6335f63aad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
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 logSecurity for sds011lib 0.5.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.
Attestation for sds011lib-0.5.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 Oct 28, 2026.
Transparency logA 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.