cbor-diag-1.0.0
توضیحات
Conversion between CBOR and CBOR Diagnostic Notation
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cbor-diag-1.0.0 |
| نام | cbor-diag |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/cbor-diag/ |
| مجوز | MIT OR Apache-2.0 |
=======================================
cbor-diag: Diagnostic notation for CBOR
=======================================
This Python module is a minimal wapper around the `cbor-diag crate`_.
Unlike the crate,
which offers lots of functionality for manipulating an AST,
this module only exposes two very simple functions:
* ``diag2cbor``, which parses diagnostic notation and produces a corresponding CBOR binary string, and
* ``cbor2diag``, which does the inverse.
It is recommended to use the cbor2_ package to actually process the CBOR data.
Maintenance
===========
This package is considered feature-complete at release,
and maintainened reactively --
when changes to the ecosystem threaten to make it unusable.
New features are only expected to be added
if they are already present in the underlying `cbor-diag crate`_,
and will likely manifest as extra arguments to ``cbor2diag``.
This package is built using maturin_ and pyo3_
and largely follows their template.
The built module is renamed from ``cbor_diag`` to ``_cbor_diag``
(and consequently wrapped manually)
to avoid it being part of the package's public API.
The package is currently hosted on GitHub at https://github.com/chrysn/cbor-diag-py
because maturin can `not yet`_ build pipelines for GitLab or codeberg.
License
=======
This package was written by Christian Amsüss <chrysn@fsfe.org>,
and is published under the terms of MIT_ or Apache-2.0_ license,
at the user's choice.
Credit for its functionality goes to Nemo157
as the maintainer of the underlying `cbor-diag crate`_.
.. _`cbor-diag crate`: https://crates.io/crates/cbor-diag
.. _cbor2: https://pypi.org/project/cbor2/
.. _maturin: https://www.maturin.rs/
.. _pyo3: https://pyo3.rs/
.. _`not yet`: https://github.com/PyO3/maturin/issues/1507
.. _MIT: https://spdx.org/licenses/MIT.html
.. _Apache-2.0: https://spdx.org/licenses/Apache-2.0.html
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl cbor-diag-1.0.0:
pip install cbor-diag-1.0.0.whl
نصب پکیج tar.gz cbor-diag-1.0.0:
pip install cbor-diag-1.0.0.tar.gz