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

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.5
File Size Uploaded Provenance Actions
dsf_suite-8.0.5.tar.gz 207.5 kB Without provenance Details for dsf_suite-8.0.5.tar.gz

Built distributions (wheels)

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

Total release size: 17.7 MB

Release files / dsf_suite-8.0.5.tar.gz

Download URL dsf_suite-8.0.5.tar.gz
Size 207.5 kB
Tags Source
SHA-256 checksum
How to use checksums
60054ec08da2f188e497126b38a246f047a6eb28216c114415f67e6bbe6a62fb
BLAKE2b-256 checksum
How to use checksums
0657e12192f79f02ece298fca82d763abb59be68ee7b45e869312175389dcc81
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.5-cp314-cp314-win_amd64.whl

Download URL dsf_suite-8.0.5-cp314-cp314-win_amd64.whl
Size 1.8 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
bb86c787e18edb15506a4c1aeef33da1822040059edf0057b3009a9e0c55b106
BLAKE2b-256 checksum
How to use checksums
4f7b7d5b9bdb2efb62fe0fee6a4787f483c5bc38829d3c6031c7c14520d9c8c7
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.5-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.5-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
a5b1af603633db974da4a57894ef1b76a38b658247f59e8e08c750d57b25f41b
BLAKE2b-256 checksum
How to use checksums
252bed082381b794bdf38e6b5b47c166773dd089f19731bccd44de8f767287ef
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.5-cp314-cp314-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.5-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
33cc1507bc65872b4eec1d65236f5e5e4b2daab947aa8ea904dff4f03a3e7c7c
BLAKE2b-256 checksum
How to use checksums
9c4924a54861804e3955e130299b0a710e448e925c153935b8c02c52a3827771
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.5-cp313-cp313-win_amd64.whl

Download URL dsf_suite-8.0.5-cp313-cp313-win_amd64.whl
Size 1.7 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
53fbd50ad4f1e9e515ee3e7c885484b090b0e4008e6e365abf6a8d3b508611e1
BLAKE2b-256 checksum
How to use checksums
087467af7327eb30eaa6788570b5483f6f572207a2ebd1c6a10930182e9b5087
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.5-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.5-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
70d00eb4a713d4eb05f7bbde6e5a58769d3b5653bbd5f4056bf072b5f62da418
BLAKE2b-256 checksum
How to use checksums
8a61ad725b0122c7a4f578b686def9b8769f18ba29523f3a5607f1d085417990
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.5-cp313-cp313-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.5-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
98e015d4d19f43c8151434c3518fac534c4fbb22f2bd7f9ae63ce3c9c4428303
BLAKE2b-256 checksum
How to use checksums
ac2eac183b7a10cccaa14838e96787af423dc8592937b36426374f8d3359ce02
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.5-cp312-cp312-win_amd64.whl

Download URL dsf_suite-8.0.5-cp312-cp312-win_amd64.whl
Size 1.8 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
67e34ca09e5f30b99f41b592c499a4720620b4735517b2a72842d1f1c29f1d44
BLAKE2b-256 checksum
How to use checksums
96a98ef5d7b2e2bf64bc90af5f264e99ea5119d2671763f1474989aff4729c14
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.5-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL dsf_suite-8.0.5-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
8aa9c7bd7dd9a7a3595846b569fb45cf8574437af05279aee0d5224a17208b1e
BLAKE2b-256 checksum
How to use checksums
8c52572e4565e06c5b8c8146967333169c5a3f6f9f9f893436a57938a262d662
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.5-cp312-cp312-macosx_26_0_arm64.whl

Download URL dsf_suite-8.0.5-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
b574a862ddfbd3ad61dc2f6ac17021f54909d5e09cce5ef891b5d9545d933433
BLAKE2b-256 checksum
How to use checksums
46bdd3aa36d682c3d1b7273cf5a15652e0b8bf5d4953e4c4c3171cc2391ee6e5
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.5

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