Python package which includes Opentrafficsim (OTS)
Project description
opentrafficsim
This package provides opentrafficsim (OTS) so that it can be integrated into python porjects.
Installation
Install from PyPi:
$ pip install opentrafficsim
Note: You cannot use this package as a git dependency, because OTS must be built before packaging and poetry is currently not able to do this.
Usage
The following code, will make OTS available to your python program:
import opentrafficsim
This will populate the OTS_HOME and OTS_VERSION environment variables accordingly. OTS_HOME follows the layout of the opentrafficsim repo. So you will find the distribution JAR under $OTS_HOME/ots-distribution/target/ots-distribution-$OTS_VERSION.jar.
Update
- Update the git submodule to the new version
- Install dev dependencies:
poetry install --with dev - Bump to new version
poetry run bump-my-version <patch|minior|major(choose the appropriate version upgrade) - push to repo and publish through pipeline
Project details
Release history Release notifications | RSS feed
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 opentrafficsim-1.7.5.tar.gz.
File metadata
- Download URL: opentrafficsim-1.7.5.tar.gz
- Upload date:
- Size: 13.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.9.23 Linux/5.15.0-87-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4abcee60fc90105fcbe90c6c9a62b092391cb1b15c5c62da694528a952f76e03
|
|
| MD5 |
bb9cd573a92ddcbe4a88a9640a565ecb
|
|
| BLAKE2b-256 |
7c8ed0c8a53ed6f38908a15171acdd090ae03596a2cb9fa31e18b486b612365a
|
File details
Details for the file opentrafficsim-1.7.5-py3-none-any.whl.
File metadata
- Download URL: opentrafficsim-1.7.5-py3-none-any.whl
- Upload date:
- Size: 13.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.9.23 Linux/5.15.0-87-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5647d91ed75499cee25f1b9d6610ed6645ae0a2c1f209e5487df3365dee1a85b
|
|
| MD5 |
916350456b3c6181558a60ff235897c2
|
|
| BLAKE2b-256 |
24de8268b169fa0f092c4b3468a829dcd302334b5fea82384110b32d90c4568b
|