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.0

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.0
File Size Uploaded Provenance Actions
dsf_suite-8.0.0.tar.gz 202.1 kB Without provenance Details for dsf_suite-8.0.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dsf-suite 8.0.0
File Actions
dsf_suite-8.0.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for dsf_suite-8.0.0-cp314-cp314-win_amd64.whl
dsf_suite-8.0.0-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.0-cp314-cp314-manylinux_2_28_x86_64.whl
dsf_suite-8.0.0-cp314-cp314-macosx_26_0_arm64.whl CPython 3.14 CPython 3.14 macOS 26.0+ ARM64 Details for dsf_suite-8.0.0-cp314-cp314-macosx_26_0_arm64.whl
dsf_suite-8.0.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for dsf_suite-8.0.0-cp313-cp313-win_amd64.whl
dsf_suite-8.0.0-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.0-cp313-cp313-manylinux_2_28_x86_64.whl
dsf_suite-8.0.0-cp313-cp313-macosx_26_0_arm64.whl CPython 3.13 CPython 3.13 macOS 26.0+ ARM64 Details for dsf_suite-8.0.0-cp313-cp313-macosx_26_0_arm64.whl
dsf_suite-8.0.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for dsf_suite-8.0.0-cp312-cp312-win_amd64.whl
dsf_suite-8.0.0-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.0-cp312-cp312-manylinux_2_28_x86_64.whl
dsf_suite-8.0.0-cp312-cp312-macosx_26_0_arm64.whl CPython 3.12 CPython 3.12 macOS 26.0+ ARM64 Details for dsf_suite-8.0.0-cp312-cp312-macosx_26_0_arm64.whl

Total release size: 17.3 MB

Release files / dsf_suite-8.0.0.tar.gz

Download URL dsf_suite-8.0.0.tar.gz
Size 202.1 kB
Tags Source
SHA-256 checksum
How to use checksums
38dea127b27c2cbbe67045e0212497d37aa8572bca613ae31bd58f2fc418062d
BLAKE2b-256 checksum
How to use checksums
d62dbdc6b3bc2d143e9ace5852d35ace8c58d5c213d9a9ea3d5ea546674321b2
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.0-cp314-cp314-win_amd64.whl

Download URL dsf_suite-8.0.0-cp314-cp314-win_amd64.whl
Size 1.7 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
f390497ba63e7511da8e30cd12b53c0dc7207bbdbc48aece9849a583ea0aeabe
BLAKE2b-256 checksum
How to use checksums
a98064a344b31f5df54df5f39fef129a1e05d16f9dc13076cd60093d1ef8874b
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.0-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.0-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
5132b03de4e827df64d7a076df2e28d00601ab66a8d5a3f9cf1607d2adbdaaa1
BLAKE2b-256 checksum
How to use checksums
c02eaeca65e984567596323432854db9d902a946e2886cec8e0e19b67045d02d
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.0-cp314-cp314-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.0-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
3b6c0e00e0ef4d47c6bcfa09f6707874979d4e2eae886e7ab5bbae9cf67051b8
BLAKE2b-256 checksum
How to use checksums
1104550346e0167276ea1737db444325edfab5e0d7e36c30ebb3cf427793a6b6
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.0-cp313-cp313-win_amd64.whl

Download URL dsf_suite-8.0.0-cp313-cp313-win_amd64.whl
Size 1.7 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
b31c1d5dc037ec18b2f695a86ab1d2a55690d69256e21005a53d952c97ece42b
BLAKE2b-256 checksum
How to use checksums
f1afcb538aa7b7c6d4a19e65e7fff441722f5beafff2d6308be3c3565b665547
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.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.0-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
349e839b67fcf2fe226ce8b1babaf50c1f637f42d7586cb83dc6244b3f94f4ed
BLAKE2b-256 checksum
How to use checksums
228e77cc7b97aca72f9391a778fc1e7ef478eabee8fefb3f28895d92b313b0fd
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.0-cp313-cp313-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.0-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
d05fadad2e39056d4b91137f576b7e9b58e1646121f6eca4654f44bafc55d42f
BLAKE2b-256 checksum
How to use checksums
1d412c716fc26d26169e37e52d2974dc55ee38cd3bfe112beca74d00408fb08a
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.0-cp312-cp312-win_amd64.whl

Download URL dsf_suite-8.0.0-cp312-cp312-win_amd64.whl
Size 1.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
747af9a4554cddf605d0f4204244383f8f27099ec309b549cd69659ecc8dbc62
BLAKE2b-256 checksum
How to use checksums
f941f581c2cd436c0bda7b1fb3db5d6a1fe68d7d29cda82af7585dc8e6e7f186
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.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.0-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
cc41a5ef525b9966ec1eb18b2681e8a6f4f7058916b2acff8bdc717a28c37471
BLAKE2b-256 checksum
How to use checksums
f8861c18f39f206dfb124d24579f96f38183e74609d6b3c27877485a64b7240d
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.0-cp312-cp312-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.0-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
fb2d213a3789d02c457e920b810a965f6dc2d97c3a387b76bc51cc821763b387
BLAKE2b-256 checksum
How to use checksums
d4ec81f9f2aa30ce127456a5f462a28bcb89debcd3fcdf1a044314baac92b45b
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.0

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.0 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