Skip to main content

UAVCAN DSDL processing frontend implemented in Python

Project description


Build status Documentation Status Coverage Status PyPI - Python Version Codacy Badge Forum

PyDSDL is a UAVCAN 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 UAVCAN Specification are supported. The library should, in theory, work on any platform and with any Python implementation.

Read the docs at

import pydsdl
    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)
    for t in types:
        print(t)  # Process the type -- generate code, analyze, etc.

Download files

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

Files for pydsdl, version 1.9.4
Filename, size File type Python version Upload date Hashes
Filename, size pydsdl-1.9.4-py3-none-any.whl (104.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pydsdl-1.9.4.tar.gz (87.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page