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.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.1.2
File Size Uploaded Provenance Actions
dsf_suite-8.1.2.tar.gz 213.3 kB Without provenance Details for dsf_suite-8.1.2.tar.gz

Built distributions (wheels)

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

Total release size: 18.6 MB

Release files / dsf_suite-8.1.2.tar.gz

Download URL dsf_suite-8.1.2.tar.gz
Size 213.3 kB
Tags Source
SHA-256 checksum
How to use checksums
85876dd09df2c15e86a50434a4be13ed74ea8d114b3fb0cb132951c7f5de380a
BLAKE2b-256 checksum
How to use checksums
5c3b249a7f622a70fe0c9ce0a35961eddf2b5aa3525be1325d7d456943451c94
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.2-cp314-cp314-win_amd64.whl

Download URL dsf_suite-8.1.2-cp314-cp314-win_amd64.whl
Size 2.0 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
cfe44ed49d4faf6fa6d805bed9e2b9493108795f4c6525793b5a3263da9ee1fd
BLAKE2b-256 checksum
How to use checksums
5b51d85de3b815bd26a18213dc19cb07bc52e4a7616cce1b83fab7f584885ac0
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.2-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.1.2-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
d42df4e6b8068a69ecf5abe6cf132b393587fe676fe3f478f374dd77620d6c31
BLAKE2b-256 checksum
How to use checksums
f7ca5d7cc5df37b191c47032a13fef6d73feea4e423c5e4ddf90bb076e9e5be1
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.2-cp314-cp314-macosx_26_0_arm64.whl

Download URL dsf_suite-8.1.2-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
ffdf0a26a521397606b5431d59e037df7e0a96d94162b66f5a263bd89c6d1468
BLAKE2b-256 checksum
How to use checksums
4b1b81ae26b33d3097c26952f13d37b18350b73beeac6d919bf8890cef9a5d0b
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.2-cp313-cp313-win_amd64.whl

Download URL dsf_suite-8.1.2-cp313-cp313-win_amd64.whl
Size 2.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
a35863e28eefe9adcc0d9abd7456c2e13e78a8ce1ac8e90b1ba6cf1e8322ebae
BLAKE2b-256 checksum
How to use checksums
bd49bbc944e5ee0550cab615115b780b4a857eab9d3763c8b9011ad1b544e7ef
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.2-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.1.2-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
bc2d612fa503cc1dc0d77ec66e5755b568d1eba6d560e68d045e7a6949aa102f
BLAKE2b-256 checksum
How to use checksums
5f8b546021a26cafa595d313b36dfdcc9bb2797e748326c5815c5731f6e3daa4
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.2-cp313-cp313-macosx_26_0_arm64.whl

Download URL dsf_suite-8.1.2-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
5ce865b14e79d7b0b14d71ee5649da64a3be1e7d5be347796bb32806ce64cd98
BLAKE2b-256 checksum
How to use checksums
3803221230350073150bcf57fc4a2b9b41b2a3ccf7a4dd4d0313eb9e7f222099
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.2-cp312-cp312-win_amd64.whl

Download URL dsf_suite-8.1.2-cp312-cp312-win_amd64.whl
Size 2.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
bcedb114478f9950250cf7442c4d0be538a6d04970ef7b059711dbd983128465
BLAKE2b-256 checksum
How to use checksums
f55053d8325f0ca8ff8c16e1d6fdccc2054955fc7dd0de94b8a7e5d9332c3989
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.2-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.1.2-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
00d3189a5c6d7f094b4bf48bb7e9411a57204bb2e2da10b20ef349af5541873c
BLAKE2b-256 checksum
How to use checksums
2f496828b8fdaaa73fe3a563fa495e950c94f9bb8ac8536b3bee16656c1f610e
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.2-cp312-cp312-macosx_26_0_arm64.whl

Download URL dsf_suite-8.1.2-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
ab1ec3b62fe36da780877244e854ba2c3373bec4a52f5eb006d77c5ee31dae06
BLAKE2b-256 checksum
How to use checksums
1c07ce3f116f8b86e6506e29f002ee7a61605ed11f0a75c141e5d81a17f6243b
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.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.1.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