pyzytemp
ZyTemp devices are simple serial communication devices that can measure basic properties about the world around them. This library provides a method for interfacing with these devices and retrieving measurements from them.
Devices powered by ZyTemp include:
Different devices have different capabilities, but in theory ZyTemp devices can report:
- Temperature
- CO2 concentration
- Relative humidity
Installation
pip install pyzytemp
Examples
Streaming value from a device:
import pyzytemp
device = pyzytemp.find()[0]
for measurement, value in device.stream():
if measurement == pyzytemp.Measurement.CO2:
print(f"Current CO2 level: {value:.0f} PPM")
Polling for recent values from a device:
import time
import pyzytemp
device = pyzytemp.find()[0]
for _ in range(32):
time.sleep(1)
temp = device.get_last_temperature_c()
if temp is not None:
print(f"Last recorded temperature: {temp:.2f}C")
Metadata
Release files for pyzytemp 0.0.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 | Provenance | Actions |
|---|---|---|---|---|
| pyzytemp-0.0.1.tar.gz | 7.9 kB | Without provenance | Details for pyzytemp-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyzytemp-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pyzytemp-0.0.1-py3-none-any.whl |
Total release size: 16.3 kB
Release files / pyzytemp-0.0.1.tar.gz
| Download URL | pyzytemp-0.0.1.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b70813bb99fd7c75fe3d2c0a653d9cafa4894810aaa8b3250bd4d085d0a65d1
|
|
BLAKE2b-256 checksum How to use checksums |
718745c338004aa9d23ad0280a1c8171e1c34be2e635a754807ede5ac4dd6a86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Release files / pyzytemp-0.0.1-py3-none-any.whl
| Download URL | pyzytemp-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8db05e196d067da72cd1686cd16eeceaeeefb1028cb1140f5e46773585177649
|
|
BLAKE2b-256 checksum How to use checksums |
a39bae08f780972b412a9a74799c0a73c70398c19c67d70451772fbe4b0d6b0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Security for pyzytemp 0.0.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.
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.