Skip to main content

DynamicalSystemFramework

Latest Release PyPI version codecov DOI

Standard TBB SPDLOG CSV JSON SQLite

The aim of this project is to rework the original Traffic Flow Dynamics Model. This rework consists of a full code rewriting, in order to implement more features (like intersections) and get advantage from the latest C++ updates.

Table of Contents

Installation

The library is available on PyPI:

pip install dsf-suite

To check the installation you can simply run:

import dsf

print(dsf.__version__)

Installation (from source)

Requirements

The project requires C++20 or greater, cmake, tbb, simdjson, spdlog, csv-parser, and SQLiteCpp.

To install requirements on Ubuntu:

sudo apt install cmake libtbb-dev

To install requirements on macOS:

brew install cmake tbb

Installation (C++)

The library can be installed using CMake. To build and install the project in the default folder run:

cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j$(nproc)
sudo cmake --install build

Otherwise, it is possible to customize the installation path:

cmake -B build -DCMAKE_INSTALL_PREFIX=/path/to/install

then building and installing it with:

cmake --build build
cmake --install build

Installation (Python)

If you want to use the library from Python, you can build the Python bindings using nanobind. Make sure you have tbb installed:

sudo apt install libtbb-dev

Then, the installation is automatic via uv:

uv build

or via standard pip:

pip install .

After installation, verify the import in Python:

import dsf

print(dsf.__version__)

If you encounter issues, ensure that the installation path is in your PYTHONPATH environment variable.

Examples

Examples in this repository are being migrated. You can build legacy C++ examples by passing -DDSF_EXAMPLES=ON to CMake; output binaries will be generated under the examples/ directory.

Updated and active examples are maintained in dsf-examples.

Visualization & GUI

For real-time dynamic visualization and visual inspection of network flows, see dsf-gui. It offers an interactive front-end designed specifically for monitoring simulations, analyzing queue dynamics, and visual debugging.

Projects Using DSF

  • bdt-mobility — Bologna Digital Twin Mobility Toolkit: Data extraction pipeline and policy-impact traffic simulation framework built for defined Zones of Interest (ZOI).

For Developers

This project includes a pre-commit hook setup. To enable it locally, run:

pip install pre-commit
pre-commit install

Testing

This project uses Doctest for unit testing.

Tests are built automatically in Debug or Coverage mode. To manually force test compilation:

cmake -B build -DDSF_TESTS=ON
cmake --build build -j$(nproc)

To execute the test suite:

ctest --test-dir build -j$(nproc) --output-on-failure

Benchmarking

Core performance critical components are benchmarked using Google Benchmark.

To build benchmark targets:

cmake -B build -DDSF_BENCHMARKS=ON
cmake --build build -j$(nproc)

To run all benchmark executables:

cd benchmark
for f in ./*.out ; do ./$f ; done

Citing

If you use this software, please cite it using the metadata in CITATION.cff (GitHub's "Cite this repository" button exports it as BibTeX/APA), or via Zenodo DOI: 10.5281/zenodo.18745492.

Bibliography

  • Mungai, Veronica (2024) Studio dell'ottimizzazione di una rete semaforica. University of Bologna, Bachelor's Degree in Physics [L-DM270]. Link to Thesis.
  • Berselli, Gregorio (2024) Advanced queuing traffic model for accurate congestion forecasting and management. University of Bologna, Master's Degree in Physics [LM-DM270]. Link to Thesis.
  • Berselli, Gregorio (2022) Modelli di traffico per la formazione della congestione su una rete stradale. University of Bologna, Bachelor's Degree in Physics [L-DM270]. Link to Thesis.

Metadata

Release files for dsf-suite 8.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dsf-suite 8.0.3
File Size Uploaded Provenance Actions
dsf_suite-8.0.3.tar.gz 206.5 kB Without provenance Details for dsf_suite-8.0.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dsf-suite 8.0.3
File Actions
dsf_suite-8.0.3-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for dsf_suite-8.0.3-cp314-cp314-win_amd64.whl
dsf_suite-8.0.3-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for dsf_suite-8.0.3-cp314-cp314-manylinux_2_28_x86_64.whl
dsf_suite-8.0.3-cp314-cp314-macosx_26_0_arm64.whl CPython 3.14 CPython 3.14 macOS 26.0+ ARM64 Details for dsf_suite-8.0.3-cp314-cp314-macosx_26_0_arm64.whl
dsf_suite-8.0.3-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for dsf_suite-8.0.3-cp313-cp313-win_amd64.whl
dsf_suite-8.0.3-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for dsf_suite-8.0.3-cp313-cp313-manylinux_2_28_x86_64.whl
dsf_suite-8.0.3-cp313-cp313-macosx_26_0_arm64.whl CPython 3.13 CPython 3.13 macOS 26.0+ ARM64 Details for dsf_suite-8.0.3-cp313-cp313-macosx_26_0_arm64.whl
dsf_suite-8.0.3-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for dsf_suite-8.0.3-cp312-cp312-win_amd64.whl
dsf_suite-8.0.3-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for dsf_suite-8.0.3-cp312-cp312-manylinux_2_28_x86_64.whl
dsf_suite-8.0.3-cp312-cp312-macosx_26_0_arm64.whl CPython 3.12 CPython 3.12 macOS 26.0+ ARM64 Details for dsf_suite-8.0.3-cp312-cp312-macosx_26_0_arm64.whl

Total release size: 17.7 MB

Release files / dsf_suite-8.0.3.tar.gz

Download URL dsf_suite-8.0.3.tar.gz
Size 206.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f7a8bc1f61fe690b554fcd716257623bf6bc25e6188bbebce25d6bd449403941
BLAKE2b-256 checksum
How to use checksums
b6a44ae7d5d1dca7c852f1bf6eebd7148c0806ab1499bb322a157385b8802569
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / dsf_suite-8.0.3-cp314-cp314-win_amd64.whl

Download URL dsf_suite-8.0.3-cp314-cp314-win_amd64.whl
Size 1.8 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
ad8d0fe5028d3b74baff2377688bf79a62f2a1b709eb21e203a0da5ebf0cc1f3
BLAKE2b-256 checksum
How to use checksums
6af319c7bed5c0e45e9b6f655e2d629e7099ac2b0b88f08d094f48b1c28c541f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / dsf_suite-8.0.3-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.3-cp314-cp314-manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5a61376a02bb7fc2a10ba69493fe6baa70d1d6b9204507c5cbc84adad9171a95
BLAKE2b-256 checksum
How to use checksums
8db0b9cfe3462a71f4d1bea78d782cbabe6b0fc0c35c4b50589a2033996b106e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / dsf_suite-8.0.3-cp314-cp314-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.3-cp314-cp314-macosx_26_0_arm64.whl
Size 1.6 MB
Tags CPython 3.14 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
9cda468a91a4326df82b965186ccf05b3c8edb4e0cd5873905be527d4d8b4140
BLAKE2b-256 checksum
How to use checksums
3eb5e96de55ee9929eb5bafa4fd5d72321b4048429e432ec1b60c30636e70493
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / dsf_suite-8.0.3-cp313-cp313-win_amd64.whl

Download URL dsf_suite-8.0.3-cp313-cp313-win_amd64.whl
Size 1.7 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
a5c7d703f3157985dd77fd92870d881a78ba7c31f7f1aa161da71977a41c07b2
BLAKE2b-256 checksum
How to use checksums
052fb95d3f1a094d0a68925b52172b1480203a3789711083aef43e5d5b48a67e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / dsf_suite-8.0.3-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.3-cp313-cp313-manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9828f3a693233782f6170646fc77fc7ec43fd671bb4e43d1c7127204dd1f09a6
BLAKE2b-256 checksum
How to use checksums
7c79f23bef64d7b456f40129b39d9de1e641acf696b0ba6758cf9728bef5bc74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / dsf_suite-8.0.3-cp313-cp313-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.3-cp313-cp313-macosx_26_0_arm64.whl
Size 1.6 MB
Tags CPython 3.13 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
367b8ed777159d7b63e15f7f92a9699381464a7f0bffaf324b3202ae22b0be43
BLAKE2b-256 checksum
How to use checksums
c86f7c6ce83922e813dc7aa3fdadb531c3df1cd9344583cd26a27095780b7095
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / dsf_suite-8.0.3-cp312-cp312-win_amd64.whl

Download URL dsf_suite-8.0.3-cp312-cp312-win_amd64.whl
Size 1.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
1b1cb216fea4ba3ab7335512ab1ce7109603a93c72660d43f6f179e5322f663e
BLAKE2b-256 checksum
How to use checksums
8ed7552de844f8785fbf49a5e8d83e88568ff04bd94fd012bd3bf83d02010019
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / dsf_suite-8.0.3-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.3-cp312-cp312-manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
29c44768b6af4dae58fbf7e9a5d42c0fd96ecc5e53151a3bfdb40a7019c1d4b6
BLAKE2b-256 checksum
How to use checksums
a0e82e684eb2453c838283d1a3f9c7c088ad619afea14f9c4a5d4a2dab170b2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / dsf_suite-8.0.3-cp312-cp312-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.3-cp312-cp312-macosx_26_0_arm64.whl
Size 1.6 MB
Tags CPython 3.12 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
c95d4250a4654b5f0cb47788110cf56304a354e7975017bd9f7c7518ad180090
BLAKE2b-256 checksum
How to use checksums
1c8a08f61da3cda0a6023dc60d85227fa235dfb1d984b8bdbdffa7d6ff700acd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for dsf-suite 8.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

8.0.3 This release

10 release files No provenance

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