pydsdl


Namepydsdl JSON
Version 1.20.1 PyPI version JSON
download
home_pagehttps://opencyphal.org
SummaryCyphal DSDL processing frontend
upload_time2023-08-19 15:29:52
maintainer
docs_urlNone
authorOpenCyphal
requires_python
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": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "cyphal,opencyphal,uavcan,dsdl,parser,compiler",
    "author": "OpenCyphal",
    "author_email": "maintainers@opencyphal.org",
    "download_url": "https://files.pythonhosted.org/packages/05/66/e0b0c27c92755146b9a4f9f4b22f75ec86bc7b0266768f3b35e2e2eafea7/pydsdl-1.20.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.20.1",
    "project_urls": {
        "Homepage": "https://opencyphal.org"
    },
    "split_keywords": [
        "cyphal",
        "opencyphal",
        "uavcan",
        "dsdl",
        "parser",
        "compiler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "49b9ae63b0379a7701f1f4cd70e3ae32cdfc8908fa8aa739efa6f7fc0726bda9",
                "md5": "bfaa84aa394e581740515d0f1c0c906f",
                "sha256": "4ab2199c76f53809f669a2546eb98fd14963313670cc0081a2f96725d80b3ec8"
            },
            "downloads": -1,
            "filename": "pydsdl-1.20.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bfaa84aa394e581740515d0f1c0c906f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 102977,
            "upload_time": "2023-08-19T15:29:50",
            "upload_time_iso_8601": "2023-08-19T15:29:50.695447Z",
            "url": "https://files.pythonhosted.org/packages/49/b9/ae63b0379a7701f1f4cd70e3ae32cdfc8908fa8aa739efa6f7fc0726bda9/pydsdl-1.20.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0566e0b0c27c92755146b9a4f9f4b22f75ec86bc7b0266768f3b35e2e2eafea7",
                "md5": "7592bb70014c2b13160d8e37c5a2bf81",
                "sha256": "466e569fe902c3bc63c3b1780b893bbdfbb7fca13d1359da42a4a5ae33407853"
            },
            "downloads": -1,
            "filename": "pydsdl-1.20.1.tar.gz",
            "has_sig": false,
            "md5_digest": "7592bb70014c2b13160d8e37c5a2bf81",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 87671,
            "upload_time": "2023-08-19T15:29:52",
            "upload_time_iso_8601": "2023-08-19T15:29:52.512018Z",
            "url": "https://files.pythonhosted.org/packages/05/66/e0b0c27c92755146b9a4f9f4b22f75ec86bc7b0266768f3b35e2e2eafea7/pydsdl-1.20.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-19 15:29:52",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pydsdl"
}
        
Elapsed time: 0.11031s