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

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.2
File Size Uploaded Provenance Actions
dsf_suite-8.0.2.tar.gz 206.4 kB Without provenance Details for dsf_suite-8.0.2.tar.gz

Built distributions (wheels)

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

Total release size: 17.5 MB

Release files / dsf_suite-8.0.2.tar.gz

Download URL dsf_suite-8.0.2.tar.gz
Size 206.4 kB
Tags Source
SHA-256 checksum
How to use checksums
557bd173a1ba1a599150809b958662671d348ba6e4da218e21ccddaf63e81b3d
BLAKE2b-256 checksum
How to use checksums
dce27e79eccf6c975e28dc51bb96aa249281b213a28fefcc192d3e30640c9b85
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.2-cp314-cp314-win_amd64.whl

Download URL dsf_suite-8.0.2-cp314-cp314-win_amd64.whl
Size 1.7 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
7e08e475d18996cde5d712f55b930e08ba045ff11c2013dd8333c56dde0ca1a6
BLAKE2b-256 checksum
How to use checksums
8d957d6b4afe7b9ea886714919150e644cd93b7c3c65354645b173759a420338
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.2-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.2-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
76254e78761a0d8026ae2f1be463f7ae48d8bac2f25a0aeb18b00b08169c56c5
BLAKE2b-256 checksum
How to use checksums
33790a2f3af86379bd033af3fbe70cafb93add293ff03122c01265288ec3a214
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.2-cp314-cp314-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.2-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
a04f5fdfe6883611832569917ff90326538f2a957d39052a1eede1b6efceb831
BLAKE2b-256 checksum
How to use checksums
7a37af0559600582808c9e46bc637a05e248daf7fb1e9f0cf4bab6a52301a420
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.2-cp313-cp313-win_amd64.whl

Download URL dsf_suite-8.0.2-cp313-cp313-win_amd64.whl
Size 1.7 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
298acb18275797456b2a09aa13c987971cd14e96709ddded3283d628b4475a0d
BLAKE2b-256 checksum
How to use checksums
7dbc8941b0387ddbab1cb05b9b31f6497114d4710541716013eb57429ae75823
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.2-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.2-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
14c1b75a794b6e2bc9bba398f1af9fc002c0bb98c1c425eb03e4f1a45bda9caa
BLAKE2b-256 checksum
How to use checksums
14827938c7f45ecfd6e5338dcec5c66c15b7f03498a9ba843985a78809a0d9d4
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.2-cp313-cp313-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.2-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
42c91d99bedd9e3caecd53402ff2c7153a0f62645da6df83c7a397fdaff5e925
BLAKE2b-256 checksum
How to use checksums
c566018ed45e3b0c1c09f3c77e19e1c5de89e95e17bc4126f70df81e9c1804a6
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.2-cp312-cp312-win_amd64.whl

Download URL dsf_suite-8.0.2-cp312-cp312-win_amd64.whl
Size 1.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
7224ed471f56e2dba185e29881e5778450f3f7900923974212b37fb8a4fc0d59
BLAKE2b-256 checksum
How to use checksums
77648f975f8e3bb1be8107fb3c1b94e97bc47846cd8a530acf888ec3829dc501
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.2-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.2-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
3d5e4dd6524681bdca0f5b2d6919020b23f9e1b162e7aae7039f7a7dfea76094
BLAKE2b-256 checksum
How to use checksums
3bb6050438c91a1d04f3a3ba1513c5b1fc90fddc4034c60bf7e22ddbae2cf7dd
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.2-cp312-cp312-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.2-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
befbf9db960ab339c038bd34a573c4da34615140827aa624f88a77f68a4daf71
BLAKE2b-256 checksum
How to use checksums
85710a115876e561d358fdfc9a054ad06b85ac979168c93f982fbba99e3a389e
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.2

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