Zserio PyPi package contains Zserio compiler and Zserio Python runtime. Zserio is serialization framework available at GitHub.
Installation
To install Zserio compiler together with Zserio Python runtime, just run
pip install zserio
Usage from command line
Consider the following zserio schema which is stored to the source appl.zs:
package appl;
struct TestStructure
{
int32 value;
};
To compile the schema by compiler and generate Python sources to the directory gen, you can run Zserio
compiler directly from command line by the following command:
zserio appl.zs -python gen
Then, if you run the python by the command
PYTHONPATH="gen" python
you will be able to use the generated Python sources by the following python commands
import appl.api as api
test_structure = api.TestStructure()
Usage from Python
Consider the following zserio schema which is stored to the source appl.zs:
package appl;
struct TestStructure
{
int32 value;
};
To compile the schema by compiler and generate Python sources to the directory gen, you can run the
following python commands:
import zserio
api = zserio.generate("appl.zs", gen_dir = "gen")
test_structure = api.TestStructure()
For convenience, the method generate returns imported API for generated top level package.
Alternatively, you can run zserio compiler directly by the following python commands:
import sys
import importlib
import zserio
completed_process = zserio.run_compiler(["appl.zs", "-python", "gen"])
if completed_process.returncode == 0:
sys.path.append("gen")
api = importlib.import_module("appl.api")
test_structure = api.TestStructure()
Metadata
Release files for zserio 2.20.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| zserio-2.20.0.tar.gz | 9.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zserio-2.20.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.7 MB
Release files / zserio-2.20.0.tar.gz
| Download URL | zserio-2.20.0.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b7a7435c705d9f908fbbb5317a4c3201949dbc69d3c1ad269a7c6336a251e8d
|
|
BLAKE2b-256 checksum How to use checksums |
bc1fb7e0f2c976060a9deb2bf38d2ef56d4b5ec8dadbacd8f9f1f4c1334b4cc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / zserio-2.20.0-py3-none-any.whl
| Download URL | zserio-2.20.0-py3-none-any.whl |
|---|---|
| Size | 4.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66e17276f4e56e5fd8ef9e33ecf95fcc2df1ef11dd48ff7d33a4d575a0ad38cd
|
|
BLAKE2b-256 checksum How to use checksums |
062881fc49f2f04e919baf5a70d4b9ed79a342eb8ab54468b2358875dc19f53c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logSecurity for zserio 2.20.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for zserio-2.20.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.