Skip to content

Installation

The current rtd-sensor release supports Python 3.11 and later and has no runtime dependencies.

Changed in: rtd-sensor 0.6.1 — the supported Python floor was expanded to Python 3.11.

Install with pip

Inside the Python environment where you want to use the package:

python -m pip install rtd-sensor

Confirm the installation:

from rtd_sensor import pt100

print(pt100.celsius_to_resistance(0.0))

Expected result:

100.0

Add it to a uv project

uv add rtd-sensor

This records rtd-sensor as a project dependency using uv's normal dependency workflow.

Distribution name versus import name

Python packaging uses two spellings:

PyPI/distribution: rtd-sensor
Python import:     rtd_sensor

So this is correct:

from rtd_sensor import pt100

and this is not:

# Wrong: hyphens cannot be used in a Python import name.
# from rtd-sensor import pt100

Verify your Python version

python --version

If your system uses python3, use that command instead. A Python version older than 3.11 is outside the supported package range.

Development versions versus released versions

For normal use, install the released package from PyPI. Repository development setup, test matrices, and release tooling are engineering concerns documented in the project repository rather than requirements for package users.