Skip to main content

A traffic simulation application

Project description

Simulateur de Trafic (Traffic Simulator)

Simulateur de Trafic is a Python package for simulating vehicle traffic on customizable road networks. It models vehicle motion, road connections, and collects useful traffic statistics for analysis and optimization.

Features

  • Vehicle movement simulation on a configurable road network
  • Roads with speed limits and lengths
  • Traffic statistics (speed, flow, time)
  • Results exportable to CSV or JSON
  • Fully customizable through a JSON configuration file

Installation

From PyPI

pip install simulateur-trafic-ahmed-hamed-2025

For development (editable mode)

pip install -e .

Usage

Default execution

simulateur-trafic

Runs the simulation with:

  • n_tours=5
  • delta_t=60 (seconds)
  • config=config_reseau.json

Custom parameters

You can specify the number of simulation turns, time step, and configuration file path:

simulateur-trafic --n_tours 10 --delta_t 30 --config config_reseau.json

Or run it directly from Python:

python -m simulateur_trafic.main --n_tours 10 --delta_t 30 --config config_reseau.json

License

This project is licensed under the MIT License. See the LICENSE file for details.


Author

Ahmed Hamed 📧 ahmad.hamed.work@gmail.com


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

simulateur_trafic_ahmed_hamed_2025-1.0.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file simulateur_trafic_ahmed_hamed_2025-1.0.1.tar.gz.

File metadata

File hashes

Hashes for simulateur_trafic_ahmed_hamed_2025-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0cd00d6dcb3aebd16d58bbcd54059af293c55d82e4feee28f20d09d7c6361675
MD5 f6b35e3cd8ef32a690ff052d81779f07
BLAKE2b-256 62f3778ff755f2cabbf8e4fa8f8279ed358dd35d1db0a4b62acf64e8967a82f9

See more details on using hashes here.

File details

Details for the file simulateur_trafic_ahmed_hamed_2025-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simulateur_trafic_ahmed_hamed_2025-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8795ec47ef534fc7d00ec6fa17b6347ddb14eb56489a01330195da6ad31a2422
MD5 f49d7164a61cde19114467e215823515
BLAKE2b-256 46aa22df80d5db5c2560ac791bb9f0aed7bbb81a7d32558a7b8b0ba5eb9b2083

See more details on using hashes here.

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