pydsdl


Namepydsdl JSON
Version 1.22.1 PyPI version JSON
download
home_pagehttps://opencyphal.org
SummaryCyphal DSDL processing frontend
upload_time2024-12-12 11:26:05
maintainerNone
docs_urlNone
authorOpenCyphal
requires_pythonNone
licenseMIT
keywords cyphal opencyphal uavcan dsdl parser compiler
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyDSDL

[![Build status](https://ci.appveyor.com/api/projects/status/lurx5gihhcl9wq1w/branch/master?svg=true)](https://ci.appveyor.com/project/Zubax/pydsdl/branch/master)
[![Documentation Status](https://readthedocs.org/projects/pydsdl/badge/?version=latest)](https://pydsdl.readthedocs.io/en/latest/?badge=latest)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/pydsdl)](https://pypi.org/project/pydsdl/)
[![Forum](https://img.shields.io/discourse/https/forum.opencyphal.org/users.svg)](https://forum.opencyphal.org)

PyDSDL is a [Cyphal](https://opencyphal.org) 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](https://pydsdl.readthedocs.io/).**

```python
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.
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://opencyphal.org",
    "name": "pydsdl",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "cyphal, opencyphal, uavcan, dsdl, parser, compiler",
    "author": "OpenCyphal",
    "author_email": "maintainers@opencyphal.org",
    "download_url": "https://files.pythonhosted.org/packages/b5/aa/9cadcd404a1d9e420706968dc384860a5bd9d8f2c5073f001af18bfdb7f0/pydsdl-1.22.1.tar.gz",
    "platform": null,
    "description": "# PyDSDL\n\n[![Build status](https://ci.appveyor.com/api/projects/status/lurx5gihhcl9wq1w/branch/master?svg=true)](https://ci.appveyor.com/project/Zubax/pydsdl/branch/master)\n[![Documentation Status](https://readthedocs.org/projects/pydsdl/badge/?version=latest)](https://pydsdl.readthedocs.io/en/latest/?badge=latest)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/pydsdl)](https://pypi.org/project/pydsdl/)\n[![Forum](https://img.shields.io/discourse/https/forum.opencyphal.org/users.svg)](https://forum.opencyphal.org)\n\nPyDSDL is a [Cyphal](https://opencyphal.org) DSDL compiler front-end implemented in Python.\nIt accepts a DSDL namespace at the input and produces a well-annotated abstract syntax tree (AST) at the output,\nevaluating all constant expressions in the process.\nAll DSDL features defined in the Cyphal Specification are supported.\nThe library should, in theory, work on any platform and with any Python implementation.\n\n**Read the docs at [pydsdl.readthedocs.io](https://pydsdl.readthedocs.io/).**\n\n```python\nimport pydsdl\ntry:\n    types = pydsdl.read_namespace(target_directory, lookup_directories)\nexcept pydsdl.InvalidDefinitionError as ex:\n    print(f'{ex.path}:{ex.line}: Invalid DSDL: {ex.text}', file=sys.stderr)\n    exit(1)\nelse:\n    for t in types:\n        print(t)  # Process the type -- generate code, analyze, etc.\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Cyphal DSDL processing frontend",
    "version": "1.22.1",
    "project_urls": {
        "Homepage": "https://opencyphal.org"
    },
    "split_keywords": [
        "cyphal",
        " opencyphal",
        " uavcan",
        " dsdl",
        " parser",
        " compiler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dcf159f1815d3b4f3f35e1a55c8e867627702a4c020aa62a9f4cdbe72ad7a437",
                "md5": "9451a247cde18a3990cc0d9487a32a8e",
                "sha256": "c35b4df1351c9c37238731afd92eadb8278363caee1ab80825611555b0afd2d3"
            },
            "downloads": -1,
            "filename": "pydsdl-1.22.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9451a247cde18a3990cc0d9487a32a8e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 115094,
            "upload_time": "2024-12-12T11:26:04",
            "upload_time_iso_8601": "2024-12-12T11:26:04.223300Z",
            "url": "https://files.pythonhosted.org/packages/dc/f1/59f1815d3b4f3f35e1a55c8e867627702a4c020aa62a9f4cdbe72ad7a437/pydsdl-1.22.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b5aa9cadcd404a1d9e420706968dc384860a5bd9d8f2c5073f001af18bfdb7f0",
                "md5": "4f4e69c0810188f27719a22fabf7acf4",
                "sha256": "75036b2adf50820f213f0eb14f6a609f3a7e971cf42cb8f66d101bb4add45c3e"
            },
            "downloads": -1,
            "filename": "pydsdl-1.22.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4f4e69c0810188f27719a22fabf7acf4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 98787,
            "upload_time": "2024-12-12T11:26:05",
            "upload_time_iso_8601": "2024-12-12T11:26:05.765237Z",
            "url": "https://files.pythonhosted.org/packages/b5/aa/9cadcd404a1d9e420706968dc384860a5bd9d8f2c5073f001af18bfdb7f0/pydsdl-1.22.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-12 11:26:05",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pydsdl"
}
        
Elapsed time: 0.76156s