PMSF py-osc2 Framework
What is it?
PMSF py-osc2 is a Python package for working with ASAM OpenSCENARIO DSL 2.x scenario files.
Note that this package is currently provided as a community service. It is based on the current public review draft of version 2.1.0 of the language, which is non-final, and might include updates based on current developments. It is offered without any support and should be considered draft alpha quality.
Specifically both the public review draft standard, this rendering of the grammar in ANTLR4, and any intermediate fixes might contain errors.
Nor is the rendering of the grammar in ANTLR4 intended for purposes other than the goals of this package.
If you are interested in OpenSCENARIO DSL development, please feel free to contact us directly.
Main features
- ANTLR4-based parser and lexer for parsing ASAM OpenSCENARIO DSL 2.x files.
- Simple syntax checking driver
osc2parserfor parsing and checking ASAM OpenSCENARIO DSL 2.x files.
Where to get it
The source code is currently hosted on GitHub at: https://github.com/PMSFIT/py-osc2
Binary installers for the latest released version are available at the Python Package Index (PyPI).
# or PyPI
pip install py-osc2
Dependencies
When rebuilding the parser from its grammar:
Rebuilding the parser
To rebuild the parser, you need setuptools-antlr in addition to the normal dependencies above:
pip install setuptools-antlr
To rebuild the package with a rebuilt parser, execute:
python setup.py antlr build
or for installing:
python setup.py antlr install
or alternatively to install in development mode:
python setup.py antlr develop
License
(C) 2021-2024 PMSF IT Consulting Pierre R. Mai
Documentation
After installation of the package, an executable script, called
osc2parser, is available to parse and check ASAM OpenSCENARIO DSL 2.x
files:
osc2parser examples/demo.osc
This script can optionally also output a tree-view of the parsed file contents:
osc2parser -t examples/demo.osc
Metadata
Release files for py-osc2 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-osc2-0.1.0.tar.gz | 72.2 kB | Without provenance | Details for py-osc2-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_osc2-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for py_osc2-0.1.0-py3-none-any.whl |
Total release size: 141.4 kB
Release files / py-osc2-0.1.0.tar.gz
| Download URL | py-osc2-0.1.0.tar.gz |
|---|---|
| Size | 72.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c1bcd67fda6ff94b272144bb1170893434cee93b686a3cd2da14953a4ec5347
|
|
BLAKE2b-256 checksum How to use checksums |
7bcef00c6c70de376aa3ec34e92bb36d84f51c6ec96bb019811496312ad9be69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / py_osc2-0.1.0-py3-none-any.whl
| Download URL | py_osc2-0.1.0-py3-none-any.whl |
|---|---|
| Size | 69.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
429040ea0c7d8c4217ba12142ea7ec9002732be46d4e9a63d120f868c27fed79
|
|
BLAKE2b-256 checksum How to use checksums |
fe89a9939270fbbf9034e350e947fdde6dbf8a1954b9917dd0c55fb555e1fb1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for py-osc2 0.1.0
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.