SiTT (Simulation of Traffic and Transport)
SiTT is a program suite to simulate the traffic and transport of pre-industrial societies. It uses an agent-based approach to model the simulation. An agent can be thought of as a batch of cargo transported through the network (rather than an individual person travelling it).
Note: This suite was developed as part of the STRADA project at the University of Trier.
Main repository: https://codeberg.org/SiTT/SiTT
Public mirror: https://github.com/Simulation-of-Traffic-and-Transport/SiTT
Table of Contents
Installation
You need Python 3.11 or later to run SiTT Moreover, the principal components of the simulation are contained in a PostgreSQL database, more specifically one with the PostGIS extension. PostGis should be pretty recent and should have Geos >= 3.11.0 included, otherwise we will have to implement certain things in Python which will be pretty slow. SiTT also makes use of JSONB in PostgreSQL, but since this has been introduced in version 9.4, it is likely, your database server will support this feature anyway.
pip install sitt
After installation, you can run SiTT using it as a module:
python -m sitt
This will activate the command line interface and print a help message. For other ways to run SiTT, check out the examples below.
Dependencies
Installing SiTT as package should install all dependent packages, too. You might want to install them by hand and/or install the extra dependencies for certain use cases:
pip install -r requirements.txt
pip install -r requirements_extras.txt
The extras file contains optional python modules such as pytest or the binary Postgres package.
Testing
You can run unit tests using pytest:
pip install pytest
cd tests
pytest -v .
Documentation
You can read some documentation on the following pages:
- SiTT'S General Concept (with figures)
- Database Reference
Examples
Can be found in the examples directory.
License
sitt is distributed under the terms of the MIT license.
Release files for sitt 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sitt-0.1.1.tar.gz | 2.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sitt-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.3 MB
Release files / sitt-0.1.1.tar.gz
| Download URL | sitt-0.1.1.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7146656ffcaeb6742c4cbbb015d4f41c5dbdd80ff3646c045a282e508f23e5eb
|
|
BLAKE2b-256 checksum How to use checksums |
0b33fa41c676e4deba7b9c03f0feb6f73ba2cee19801eb6d16a0d6de7c52afd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.17.0 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"6.17.0-121035-tuxedo"}} HTTPX2/2.3.0
|
Release files / sitt-0.1.1-py3-none-any.whl
| Download URL | sitt-0.1.1-py3-none-any.whl |
|---|---|
| Size | 139.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8e07fd716c2534acd23376e5fc35e958730b7c6bfdeb5e44ecaf3f52fd2637f
|
|
BLAKE2b-256 checksum How to use checksums |
ae1ac074887ae43bc68e494b39ed09ba93f7e65825034e8654b881adfe39a09b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.17.0 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"6.17.0-121035-tuxedo"}} HTTPX2/2.3.0
|