Traffic scene renderer
This traffic scene renderer enables drawing top-view overviews of traffic constellations.
This drawings can be printed on screen using matplotlib and exported to images or tikz files that can be rendered with LaTeX to create vector-based drawings of the traffic scenes.
Installation
Installation can be done using pip. Simply run
pip install traffic-scene-renderer
Usage
Development
Yes, you can help! Follow the steps below to contribute to this package:
-
Download the git repository, e.g., using
git clone git@github.com:ErwindeGelder/TrafficSceneRenderer.git. -
Create a virtual environment, e.g., using
python -m venv venv. -
Activate the virtual environment (e.g., on Windows,
venv\Scripts\activate). -
Install
uvusingpip install uvand thentox-uvusinguv pip install tox-uv. -
The main branch is protected, meaning that you cannot directly push changes to this branch. Therefore, if you want to make changes, do so in a seperate branch. For example, you can create a new branch using
git checkout -b feature/my_awesome_new_feature. -
Before pushing changes, ensure that the code adheres to the linting rules and that the tests are successful. Run
tox. This does a linting check and runs all test scripts. To manually perform these steps, use the following commands:- Run
tox -e lint. You can do the linting commands manually using:- (One time)
uv pip install -r requirements-lint.txt ruff format . --check(remove the--checkflag to letruffdo the formatting)ruff check .mypy .
- (One time)
- Run
tox -e py310. - Run
tox -e py311. - Run
tox -e py312. - Run
tox -e py313. - Run
tox -e py314. - Run
tox -e combine-test-reports
- Run
-
Check if the tests covered everything using the coverage report in
/reports/coverage_html/index.html.NOTE: Currently, not all code is covered. Ideally, all code is covered, but for now, ensure that all new code is covered by the testing.
-
Push changes to GitHub. If everything is OK and you want to merge your changes to the
mainbranch, create a pull request. Ideally, there is at least one reviewer who reviews the pull request before the merge.
Note that currently only "Code owners" can merge pull requests onto the main branch. This is to
ensure that not everyone can break the main code (even unintentially). If you want to be a "Code
owner", let us know!
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file traffic_scene_renderer-1.2.tar.gz.
File metadata
- Download URL: traffic_scene_renderer-1.2.tar.gz
- Upload date:
- Size: 58.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7db496fc407d67e2f1582e2f8acdfef5f54a2e05e231313d8375b52ff07680af
|
|
| MD5 |
1fe6ba997be26ec7e1f9211ec1f2041b
|
|
| BLAKE2b-256 |
cc3e03a51e3c1a4bb9c719f3889dd19c12d5d16f8fcb4ac585a57af8ba0e4ab9
|
Provenance
The following attestation bundles were made for traffic_scene_renderer-1.2.tar.gz:
Publisher:
publish-to-pypi.yaml on ErwindeGelder/TrafficSceneRenderer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
traffic_scene_renderer-1.2.tar.gz -
Subject digest:
7db496fc407d67e2f1582e2f8acdfef5f54a2e05e231313d8375b52ff07680af - Sigstore transparency entry: 2334989697
- Sigstore integration time:
-
Permalink:
ErwindeGelder/TrafficSceneRenderer@5fb22b18ef211fb42b5b8d76a8bc5fbafb3be327 -
Branch / Tag:
refs/tags/v1.2 - Owner: https://github.com/ErwindeGelder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@5fb22b18ef211fb42b5b8d76a8bc5fbafb3be327 -
Trigger Event:
release
-
Statement type:
File details
Details for the file traffic_scene_renderer-1.2-py3-none-any.whl.
File metadata
- Download URL: traffic_scene_renderer-1.2-py3-none-any.whl
- Upload date:
- Size: 55.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c41a7d089456a482b2fb7f094c77884430df4639b2adf38de5060b5452685968
|
|
| MD5 |
5617fd122f21b79c0133f2f84f3a2420
|
|
| BLAKE2b-256 |
8fc69c0c5ad57f3a9759ca3ffd14aa693e49da5275786be3afe4cd41e319fcac
|
Provenance
The following attestation bundles were made for traffic_scene_renderer-1.2-py3-none-any.whl:
Publisher:
publish-to-pypi.yaml on ErwindeGelder/TrafficSceneRenderer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
traffic_scene_renderer-1.2-py3-none-any.whl -
Subject digest:
c41a7d089456a482b2fb7f094c77884430df4639b2adf38de5060b5452685968 - Sigstore transparency entry: 2334989706
- Sigstore integration time:
-
Permalink:
ErwindeGelder/TrafficSceneRenderer@5fb22b18ef211fb42b5b8d76a8bc5fbafb3be327 -
Branch / Tag:
refs/tags/v1.2 - Owner: https://github.com/ErwindeGelder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@5fb22b18ef211fb42b5b8d76a8bc5fbafb3be327 -
Trigger Event:
release
-
Statement type: