Skip to main content

A simple way to connect to your DCC-EX controlled model railroad using python code without having to write DCC-EX commands into code.

Project description

DCC-EX_py

image

A simple way to connect to your DCC-EX controlled model railroad using python code without having to write DCC-EX commands manually.

DCC-EX is an Arduino powered DIY tool for running DCC model trains on a layout. This package wraps the protocol described in the DCC-EX Native Commands Summary Reference to be easy to use from python code.

This package is in early development, breaking changes may happen until it is marked version 1.0.

Features

  • Connects to a DCC-EX base station and wraps commands to make automating layouts easier.
  • Parses feedback from the command station and provides callbacks for important events.

Get Started

Documentation is available on the GitHub Wiki including code for the examples.

Examples

Single Sound-Enabled Train:

Amtrak Example

This video shows a train running a simple loop with sound triggers and stopping based on sensors in the track.

Multiple Complex Trains

Multitrain Example

This video shows what can be done when multiple trains are programmed to perform complex behavior. The routes are all pre-planned and designed to loop.

Be aware that the crossing signal is being controlled by EX-RAIL automation on the command station instead of externally by the python script.

This project is not an official DCC-EX project nor is it endorsed by them. I just used the name that best decribes the funcionality and will change it if it creates issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcc_ex_py-1.0.0.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcc_ex_py-1.0.0-py2.py3-none-any.whl (21.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dcc_ex_py-1.0.0.tar.gz.

File metadata

  • Download URL: dcc_ex_py-1.0.0.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dcc_ex_py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0e9b29587e1446dc1c58c2baecd7a36ff3ccc57f96504a6079f3c96836f8d2c7
MD5 04a7aeef3a279237ce2414aa141103e4
BLAKE2b-256 d97cb02dea2000bdc20ad18460c12c0f943ecd4c6aa612a9045b9f8d446937e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_ex_py-1.0.0.tar.gz:

Publisher: pypi.yml on Zenith08/DCC-EX_py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dcc_ex_py-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: dcc_ex_py-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dcc_ex_py-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a48598924d542c78c081ed84e44a11aa291b84b16a0d037f4e0fb3896a06875d
MD5 5f6ab12e76717a9037cbc477bd7748e7
BLAKE2b-256 0aa553ccddda72a3e42d0b08895c981430aa52b608c96586202492868fdcb323

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_ex_py-1.0.0-py2.py3-none-any.whl:

Publisher: pypi.yml on Zenith08/DCC-EX_py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page