Skip to main content

TODO

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-0.0.4.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-0.0.4-py2.py3-none-any.whl (21.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: dcc_ex_py-0.0.4.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-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2bd2825bd8c894f5797805f95f2c39a79f987c22e1d178e71ce5726d7d3b8f32
MD5 adcaf5d1fb58ed20646ac502b2fb5a6b
BLAKE2b-256 a7b6690c43c0b85cf486d8ad75c397bad977671613015d80c522f407a181f9ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_ex_py-0.0.4.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-0.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: dcc_ex_py-0.0.4-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-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6f6da03160316b50b8c40d52d7be1998cfd823a4e3925de2c14035e31c0cebc5
MD5 e9273230c2ac35769ac1bf31ba0077e8
BLAKE2b-256 7a59b6a3526ee566b666f736f6e8ddc8c8737d21206db311c260781b541099cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_ex_py-0.0.4-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