Snsary
A framework for sensor metrics.
Installation
pip3 install snsary
Getting started
Create a new file called example.py and paste:
from snsary import system
from snsary.outputs import MockOutput
from snsary.sources import MockSensor
from snsary.utils import logging
MockSensor().subscribe(MockOutput())
logging.configure_logging()
system.start_and_wait()
This is a minimal Snsary program. To run it:
python3 example.py
At this point you should see some INFO logs e.g.
2021-11-13 19:07:17,144 - INFO - [mocksensor-4382645216] Collected 1 readings.
2021-11-13 19:07:17,144 - INFO - [mockoutput-4383959840] Reading: <zero 1636830437 0>
Use Ctrl+C to quit the program.
Building an app
Snsary makes it easy to build large sensing apps:
docs/examples/contrib.py shows many of them working together.
How to deploy it
See the tutorial for how to setup and run a Snsary app as a service on a Raspberry Pi.
Contributing
See CONTRIBUTING.md.
Licence
See LICENCE.
Metadata
Release files for snsary 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| snsary-0.1.1.tar.gz | 29.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| snsary-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 72.8 kB
Release files / snsary-0.1.1.tar.gz
| Download URL | snsary-0.1.1.tar.gz |
|---|---|
| Size | 29.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
282844b7bd05d5b30d66314dd1a29e584b594aaed288bb5da73ef3ac0eca077f
|
|
BLAKE2b-256 checksum How to use checksums |
029571f135ac20d55052a8d96ce12cdd28a8fd0612905564e4ead25d3dcd96a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / snsary-0.1.1-py3-none-any.whl
| Download URL | snsary-0.1.1-py3-none-any.whl |
|---|---|
| Size | 43.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67a801129e42f4ebedcd67765278bac7e83ff45effc36581dad3fbc3f02c641a
|
|
BLAKE2b-256 checksum How to use checksums |
97331fb0093b7c0b8d25d7a5069080dbcd2c8dcf95321c860220b4e10bf12fc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|