Code generation and data validation using CDDL schemas
Project description
zcbor
After installing, zcbor can be invoked on the command line as zcbor
, or included as a module via import zcbor
.
This package has 2 uses:
- Schema-based validation and conversion of YAML/JSON/CBOR data.
- Generating C code that decodes/encodes and validates CBOR data according to a schema.
The schema language used by zcbor is CDDL which allows creating very advanced and detailed schemas.
The PyPi package comes with a C library which is needed by the generated code. This library is not run by the zcbor package, but in the user's project that includes zcbor-generated code. If zcbor is asked to generate a cmake file, the file will reference the C library, and if asked to copy sources, zcbor will copy these library files to the given location.
The C library also functions as a standalone CBOR C library, and is used in the Zephyr RTOS.
Please visit the Github repository for more information about this Python package, and the C library.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zcbor-0.9.1.tar.gz
.
File metadata
- Download URL: zcbor-0.9.1.tar.gz
- Upload date:
- Size: 80.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c04918392e2dbb14c6f038d776e2ea6b09c34ba1028b045aadd7c3a95616bc38 |
|
MD5 | 04ca84bc956097c148cb05547a1f06de |
|
BLAKE2b-256 | 626521d01924de3e99ddf05fb8476576307e65a64893c74296a35dd8bbc9f373 |
File details
Details for the file zcbor-0.9.1-py3-none-any.whl
.
File metadata
- Download URL: zcbor-0.9.1-py3-none-any.whl
- Upload date:
- Size: 74.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc8bf4470f235c56d6276f162a5cd5417206335da21648ac2274f6417a18266e |
|
MD5 | 6c9073107f265055c298143a548202a7 |
|
BLAKE2b-256 | 0e3156f49b69a76fcd4a0c178c858b6dad3a0b36fff669e7f2895c569e9d035f |