Skip to main content
Latest PyPI version CI build status Documentation build status Test coverage License

This module provides a Python interface to Carrera® DIGITAL 124/132 slotcar systems connected via a serial (cable) connection, or via Bluetooth LE using Carrera AppConnect®.

>>> from carreralib import ControlUnit
>>> cu = ControlUnit('/dev/ttyUSB0')
>>> cu.version()
'5337'
>>> cu.poll()
Status(fuel=(14, 14, 14, 14, 14, 14, 0, 0), start=0, mode=6,
       pit=(False, False, False, False, False, False, False, False),
       display=8)
>>> cu.start()
>>> cu.poll()
Status(fuel=(14, 14, 14, 14, 14, 14, 0, 0), start=1, mode=6,
       pit=(False, False, False, False, False, False, False, False),
       display=8)
>>> cu.start()
>>> cu.poll()
Timer(address=1, timestamp=105295, sector=1)
>>> cu.poll()
Timer(address=0, timestamp=105410, sector=1)

For demonstration purposes, the carreralib module can also be used from the command line as a simple race management system (RMS).

Please refer to the online documentation for more information.

Installation

carreralib is available from PyPI and can be installed by running:

pip install carreralib

Project Resources

License

Copyright (c) 2015-2026 Thomas Kemmer.

Licensed under the MIT License.

Carrera® and Carrera AppConnect® are registered trademarks of Carrera Toys GmbH.

carreralib is not an official Carrera® product, and is not affiliated with or endorsed by Carrera Toys GmbH.

Thanks to Stephan Heß (a.k.a. slotbaer) for doing all the hard work.

Release files for carreralib 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 carreralib 2.0.0
File Size Uploaded
carreralib-2.0.0.tar.gz 46.1 kB Details

Built distribution (wheel)

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

Total release size: 62.4 kB

Release files / carreralib-2.0.0.tar.gz

Download URL carreralib-2.0.0.tar.gz
Size 46.1 kB
Tags Source
SHA-256 checksum
How to use checksums
50538ac55d62cac4a284a103ac356bdf302e1a03aff173d8d446f5ce27aaa646
BLAKE2b-256 checksum
How to use checksums
c7be71b806596653fda3474f35ed83b3fccfb01c1cba2a3f4378b047ca75d2c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

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

Download URL carreralib-2.0.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f5fbac78565ad99e3ea496bd4a64a4d1eb98c96c11559749fa6d87c7b86805b
BLAKE2b-256 checksum
How to use checksums
9a2901387872aa19e7d98f48d562cb3401bf2543d2dff159851b9de89bcea2a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

1 release file

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