Python train simulation + route map for ATO integration tests.
Find a file
Mona Lisa 9c5ef3a5cd
Some checks are pending
CodeView TrainSim CI / test (push) Waiting to run
CodeView TrainSim CI / docker (push) Blocked by required conditions
Add Python TrainSim with loop track map and physics.
FastAPI server, replaceable JSON config, tests, Dockerfile.
Pairs with ATO via spec/interface.md contract.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 20:37:22 +00:00
.agent chore: set project mode to bootstrap 2026-06-14 20:21:55 +00:00
.forgejo Add Python TrainSim with loop track map and physics. 2026-06-14 20:37:22 +00:00
config Add Python TrainSim with loop track map and physics. 2026-06-14 20:37:22 +00:00
spec Add Python TrainSim with loop track map and physics. 2026-06-14 20:37:22 +00:00
static Add Python TrainSim with loop track map and physics. 2026-06-14 20:37:22 +00:00
tests Add Python TrainSim with loop track map and physics. 2026-06-14 20:37:22 +00:00
trainsim Add Python TrainSim with loop track map and physics. 2026-06-14 20:37:22 +00:00
.gitignore Add Python TrainSim with loop track map and physics. 2026-06-14 20:37:22 +00:00
Dockerfile Add Python TrainSim with loop track map and physics. 2026-06-14 20:37:22 +00:00
README.md Add Python TrainSim with loop track map and physics. 2026-06-14 20:37:22 +00:00
requirements.txt Add Python TrainSim with loop track map and physics. 2026-06-14 20:37:22 +00:00

trainsim

Python train simulation for ATO integration tests. Circle track, simple physics, map UI.

Layout

Path Role
trainsim/ API + physics
config/ Replaceable sim + track JSON
spec/ Interface contract (shared with ato)
static/map.html Route map (nodes, edges, train dot)

Run locally

pip install -r requirements.txt
pytest -q
uvicorn trainsim.app:create_app --factory --host 0.0.0.0 --port 8080

Detailed simulation notes — TODO.