Skip to main content

python-uart-scc1

This repository provides a Python driver for Sensirion SCC1-USB Cable. The detailed technical description of the SCC1-USB cable is provided in the datasheet.

Feature overview

On one hand the SCC1-USB exposes an API to efficiently use the supported sensors. So far support is only added for the SLF3x-Sensor family.

On the other hand the cable can be used as USB to I2c bridge for any Sensirion I2c sensor that can be plugged to the cable.

For both scenarios an example is available in the example subfolder of this repository.

Note: Using the cable as USB to I2c bridge will not allow to achieve the same throughput as with the embedded API.

The API of the driver is described on the documentation page of this repository

Getting started

Installation

It is recommended to use a virtual environment. In any case you can install the package via pip by typing:

pip install sensirion-uart-scc1

If you have cloned the repository you can install the package and all it dependencies using poetry.

poetry install

Running the examples

We provide two examples to show two basic usage scenarios of the driver

  • SLF3x Usage This example does not require any additional dependency. Once the package sensirion-uart-scc1 is installed the example is run by typing:

      python ./examples/scc1_slf3x_example/slf3x_usage.py --serial-port <your-com-port>
    
  • SLF3x Totalizer Usage This example enables the totalizer, resets it before starting a measurement, and prints the accumulated totalizer flow together with the sensor's configured unit.

      python ./examples/scc1_slf3x_example/slf3x_totalizer_usage.py --serial-port <your-com-port>
    
  • USB-I2c-Bridge This example shows how a public python driver can be used with the SCC1-USB cable. The example uses the public driver sensirion_i2c_sf06_lf. Before you run the example you need to install this driver.

      pip install sensirion_i2c_sf06_lf
    

    After having installed the driver the example is run by typing:

      python ./examples/scc1_usb_to_i2c/scc1_usb_2_i2c_usage.py --serial-port <your-com-port>
    

Contributing

You are very welcome to open issues and to create pull requests.

Nevertheless you need to understand that we cannot consider pull request that do not pass the CI-pipeline.

This section explains in short how you can make sure that your contribution passes all the checks of the CI pipeline.

The repository uses poetry for dependency management. It is used in the CI pipeline as well. The easiest way to be conformant to our coding style will be to use poetry for your contributions as well. This will allow to test and check your contributions locally before creating pull requests.

Installing and running tests

For testing some extra dependencies are required that need to be installed.

poetry install --with test

The tests (including those that are marked) can be executed by tying:

poetry run pytest

Note: On github no tests that require hardware can be run. Test cases that rely on attached hardware need to be decorated with @pytest.mark.needs_hardware

Checking code-formatting

Make sure that you code is properly formatted. The CI pipeline will check and fail if this is not the case. To check the code-formatting before pushing to the repository type:

poetry run flake8

Metadata

Release files for sensirion-uart-scc1 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sensirion-uart-scc1 2.0.0
File Size Uploaded Provenance Actions
sensirion_uart_scc1-2.0.0.tar.gz 13.0 kB With provenance Details for sensirion_uart_scc1-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sensirion-uart-scc1 2.0.0
File Interpreter ABI Platform Actions
sensirion_uart_scc1-2.0.0-py3-none-any.whl Python 3 none any Details for sensirion_uart_scc1-2.0.0-py3-none-any.whl

Total release size: 29.0 kB

Release files / sensirion_uart_scc1-2.0.0.tar.gz

Download URL sensirion_uart_scc1-2.0.0.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
498b72fe542398eb3aecf8081d53b828e319f9f3abdb3c089744ca586712998c
BLAKE2b-256 checksum
How to use checksums
d3118f44ef10db4c5557c89a8cdf083b02fe0aade1989dd5b245ad825a691c44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.

Transparency log

Release files / sensirion_uart_scc1-2.0.0-py3-none-any.whl

Download URL sensirion_uart_scc1-2.0.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0100ed45fd7dbee67cb971a659e5cba3c02b30473d7c4435dd2c7ec9862816b7
BLAKE2b-256 checksum
How to use checksums
bcf1bc73c30cbe1387dc8463d4e5e010637661fe65b7d6f41c7eef23aa47cc71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.

Transparency log

Security for sensirion-uart-scc1 2.0.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sensirion_uart_scc1-2.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.

Transparency log

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.

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