Skip to main content

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")

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)

Source distribution for pyzytemp 0.0.1
File Size Uploaded
pyzytemp-0.0.1.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyzytemp 0.0.1
File Interpreter ABI Platform
pyzytemp-0.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page