Overview
Simple python driver for SDS011 PM sensor from Nova.
Free software: MIT license
Installation
pip install pysds011
You can also install the in-development version with:
pip install https://github.com/michelepagot/pysds011/archive/develop.zip
Usage
Package has a class interface
log = logging.getLogger(__name__)
ser = serial.Serial('/dev/ttyUSB0', 9600)
ser.open()
sd = driver.SDS011(ser, log)
sd.cmd_set_sleep(0)
sd.cmd_set_mode(sd.MODE_QUERY)
sd.cmd_firmware_ver()
Package is also provided with a reference cli application:
pysds011.exe --port COM42 version >> 21.2.2223
Documentation
This internal package documentation is available at https://pysds011.readthedocs.io/ Some other interesting reading are: * SDS011 datasheet http://cl.ly/ekot * This project is inspired by https://gist.github.com/kadamski/92653913a53baf9dd1a8
Contributing
Have a look at CONTRIBUTING.rst or to the Development section in the documentation
Changelog
0.0.4 (2021-2-7)
add more commands to cli
Testing and documentation
0.0.3 (2021-1-8)
cli get subcommands and produce meaningful results
robustness about error handling
Testing and documentation
0.0.2 (2021-1-4)
Improved cli (first functional).
0.0.1 (2020-12-19)
First release on PyPI.
Metadata
Release files for pysds011 0.0.4
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 |
|---|---|---|---|---|
| pysds011-0.0.4.tar.gz | 14.0 kB | Without provenance | Details for pysds011-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysds011-0.0.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pysds011-0.0.4-py2.py3-none-any.whl |
Total release size: 24.2 kB
Release files / pysds011-0.0.4.tar.gz
| Download URL | pysds011-0.0.4.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f20da410e13028d2909a5ab561a5a641e1f1a33c13b9728a2df6021072f2cf2
|
|
BLAKE2b-256 checksum How to use checksums |
86db833b08fd00bfc7e803e9cda26667253dc6b9f83573b21882f8aac4f00f55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.1
|
Release files / pysds011-0.0.4-py2.py3-none-any.whl
| Download URL | pysds011-0.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7b7440972aff91cc0fcb0d26c572be991684e4d345d192f11952ecbbe786b6e7
|
|
BLAKE2b-256 checksum How to use checksums |
b23ae178a38d540584e19736c418a3f05e94625957b9f25bf5abc38c91d96cc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.1
|
Security for pysds011 0.0.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.