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

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.1.1
File Size Uploaded Provenance Actions
dsf_suite-8.1.1.tar.gz 213.2 kB Without provenance Details for dsf_suite-8.1.1.tar.gz

Built distributions (wheels)

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

Total release size: 18.7 MB

Release files / dsf_suite-8.1.1.tar.gz

Download URL dsf_suite-8.1.1.tar.gz
Size 213.2 kB
Tags Source
SHA-256 checksum
How to use checksums
afd154f5d59404ee3bb001495b61ce211ca0cec76960e9c3e5b977160122117e
BLAKE2b-256 checksum
How to use checksums
30b9d46ed6828b07dca6171f2774cfb5505e82ce4012c36e56755f7403b1621b
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.1.1-cp314-cp314-win_amd64.whl

Download URL dsf_suite-8.1.1-cp314-cp314-win_amd64.whl
Size 2.0 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
e7035a00e5a6fecdce257ffaaf0c5539a4a8ab0e95a585fa1185d69eecde79bd
BLAKE2b-256 checksum
How to use checksums
19160dd80f9c74c1a17950ac6064ffdf580481a8aec12cda0c212a7013d1974d
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.1.1-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.1.1-cp314-cp314-manylinux_2_28_x86_64.whl
Size 2.5 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7618575fc999e742d77849c80e8c1f3b7bf4ef190ea0601a4d4d48a6d676f8b6
BLAKE2b-256 checksum
How to use checksums
aa1b6f09043c0ae7f319238f9ad2599be1ba556a763d0ba78a59916a248311cc
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.1.1-cp314-cp314-macosx_26_0_arm64.whl

Download URL dsf_suite-8.1.1-cp314-cp314-macosx_26_0_arm64.whl
Size 1.7 MB
Tags CPython 3.14 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
ee7c4cb2a475b25ce169576dcb03c75f6422bfe810523b6ae17655099e230371
BLAKE2b-256 checksum
How to use checksums
907bb9843cab99b8bbea5f8cff4fbe4c7e70bed78b659a5ba09d6a2366aa927c
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.1.1-cp313-cp313-win_amd64.whl

Download URL dsf_suite-8.1.1-cp313-cp313-win_amd64.whl
Size 2.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
94f9748e0accae70e9a56e663a2e3c0a43f8d9b726a6946fa86ce6f09c99ede4
BLAKE2b-256 checksum
How to use checksums
b2f922524641578906860a0876ff2076653ff0e79cacde68c878bfc3e1a6ceab
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.1.1-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.1.1-cp313-cp313-manylinux_2_28_x86_64.whl
Size 2.5 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
affd78813ab00a562df2e80bddddaf7418791dc9bc1421a67de47b9892f8a189
BLAKE2b-256 checksum
How to use checksums
cc1aabaf4355688cdf50e1efc993ed5eb91dad204e2ee614abd0497d0e33814c
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.1.1-cp313-cp313-macosx_26_0_arm64.whl

Download URL dsf_suite-8.1.1-cp313-cp313-macosx_26_0_arm64.whl
Size 1.7 MB
Tags CPython 3.13 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
3bd2e8739b2a38dcbc7161cf81cd889bc3447e9438da118fdb49311a30d5eff5
BLAKE2b-256 checksum
How to use checksums
60234959c05c2eb9ea42cfb74b2f1114c9f730480167ac710c317670e5794cd7
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.1.1-cp312-cp312-win_amd64.whl

Download URL dsf_suite-8.1.1-cp312-cp312-win_amd64.whl
Size 2.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
481bd180dcad85d087d67e19544a1e843e526e0c452fd144fa3cb357754bfa53
BLAKE2b-256 checksum
How to use checksums
d7dcd784440a54af1eef666c77f55279a22139d5e63980884225e596eb79fcb6
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.1.1-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.1.1-cp312-cp312-manylinux_2_28_x86_64.whl
Size 2.5 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
be87c37929522d3f7dbc12d132e03846b45057a782729ade8d3495b1d4e0a8cb
BLAKE2b-256 checksum
How to use checksums
472f0335378e7a521cc311f93ec8111e5c0e97580373697adbf731e1855dc5be
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.1.1-cp312-cp312-macosx_26_0_arm64.whl

Download URL dsf_suite-8.1.1-cp312-cp312-macosx_26_0_arm64.whl
Size 1.7 MB
Tags CPython 3.12 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
2f2fed9888f4b9afc32fb77ebc1ffda1c8e4b5564ef8ac3674a586eb0f6d6904
BLAKE2b-256 checksum
How to use checksums
861884cb205b5a6cb6cdcdacf8407785170b138fe7115427f4c39211ef14a532
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.1.1

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