PyDSDL
PyDSDL is a Cyphal DSDL compiler front-end implemented in Python. It accepts a DSDL namespace at the input and produces a well-annotated abstract syntax tree (AST) at the output, evaluating all constant expressions in the process. All DSDL features defined in the Cyphal Specification are supported. The library should, in theory, work on any platform and with any Python implementation.
Read the docs at pydsdl.readthedocs.io.
import pydsdl
try:
types = pydsdl.read_namespace(target_directory, lookup_directories)
except pydsdl.InvalidDefinitionError as ex:
print(f'{ex.path}:{ex.line}: Invalid DSDL: {ex.text}', file=sys.stderr)
exit(1)
else:
for t in types:
print(t) # Process the type -- generate code, analyze, etc.
Metadata
Release files for pydsdl 1.25.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 |
|---|---|---|---|---|
| pydsdl-1.25.0.tar.gz | 127.7 kB | Without provenance | Details for pydsdl-1.25.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydsdl-1.25.0-py3-none-any.whl | Python 3 | none | any | Details for pydsdl-1.25.0-py3-none-any.whl |
Total release size: 273.0 kB
Release files / pydsdl-1.25.0.tar.gz
| Download URL | pydsdl-1.25.0.tar.gz |
|---|---|
| Size | 127.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c326c6c80d6dad28ed8d4533f787ce94ce304164184b46cfec524b6889373de7
|
|
BLAKE2b-256 checksum How to use checksums |
1d6bff46defb0a7b18357a1e027b8b5d05af8f749f3d425df775df39a487f173
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / pydsdl-1.25.0-py3-none-any.whl
| Download URL | pydsdl-1.25.0-py3-none-any.whl |
|---|---|
| Size | 145.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2bc7c46813f4c3e3df928aff3546844f5f6a8400cca5e81b241c7a1e4c23ba9c
|
|
BLAKE2b-256 checksum How to use checksums |
3d9e03c68cba99f730ba103d69ebdf3cd25c92545fcad5efd7ddcdef8c017e97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for pydsdl 1.25.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.