Skip to main content

No project description provided

Project description

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:

  1. Download the git repository, e.g., using git clone git@github.com:ErwindeGelder/TrafficSceneRenderer.git
  2. Create a virtual environment, e.g., using python -m venv venv
  3. Activate the virtual environment (e.g., on Windows, venv\Scripts\activate.bat)
  4. Install the necessary libraries using pip install -e .[dev]
  5. 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.
  6. Before pushing changes, ensure that the code adheres to the linting rules and that the tests are successful. To run the linting and testing, tox first needs to know where it can find the different Python versions that are supported. One way to do so is by making use of pyenv or pyenv-win. Note that you only need to do this once for a single machine.
  7. Run tox run -e lint. If issues arise, fix them. You can do the linting commands manually using:
    1. ruff format . --check (remove the --check flag to let ruff do the formatting)
    2. ruff check .
    3. mypy .
  8. Run tox run -f test
  9. Check if the tests covered everything using the coverage report in /reports/coverage_html/index.html
  10. Push changes to GitHub. If everything is OK and you want to merge your changes to the main branch, create a pull request. Ideally, there is at least one reviewer who reviews the pull request before the merge.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

traffic_scene_renderer-1.1.tar.gz (56.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

traffic_scene_renderer-1.1-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

File details

Details for the file traffic_scene_renderer-1.1.tar.gz.

File metadata

  • Download URL: traffic_scene_renderer-1.1.tar.gz
  • Upload date:
  • Size: 56.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for traffic_scene_renderer-1.1.tar.gz
Algorithm Hash digest
SHA256 ed74b657300040934c457c47b003d9a6441b1644c5706de8e125928c54589b7d
MD5 a353e5906ad8270bc307015916d6a327
BLAKE2b-256 bd86f111449bdcb5805c1b1d98aefe334dee75fa6ad8e75ab8337711c5a1055f

See more details on using hashes here.

Provenance

The following attestation bundles were made for traffic_scene_renderer-1.1.tar.gz:

Publisher: publish-to-pypi.yaml on ErwindeGelder/TrafficSceneRenderer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file traffic_scene_renderer-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for traffic_scene_renderer-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b504ad883d0fdc63732104d912c9a182bec55a46b8444cd90bdbbf66b8099b3
MD5 f2a00a848644e37b716ae7c379208bf5
BLAKE2b-256 5f02e944b762eff97b05940bb6d83a373bff03ff476bde73b7e9651a9a95a2d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for traffic_scene_renderer-1.1-py3-none-any.whl:

Publisher: publish-to-pypi.yaml on ErwindeGelder/TrafficSceneRenderer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page