semvec/pypi-packages huggingface dataset:
pysds011 0.0.4
Python driver and command line application to interact with SDS011 PM sensor from Nova.
License: MIT
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
Keywords: sds011,dust,sensor

========
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

.. code-block:: python

    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.