Zserio runtime and Python package generator.
Project description
Zserio Package
PyPI package infrastructure around the zserio serialization framework. For extensive documentation regarding zserio, please check zserio.org.
Installation
Just run
pip3 install zserio
Alternatively, clone this repository, and run
./get.sh --python-module --version <desired-zserio-version>
pip3 install -e .
Importing zserio package sources
import zserio
# Automatically inserts a new python module called `mypackage`
# into the current python environment
zserio.generate("mypackage/all.zs", "mypackage")
# You can now access structs from your zserio sources!
from mypackage.all import CoolStruct
Running tests
Just execute
pytest test
Available scripts:
get.sh [--python-module] [--version] [--directory]
Set the zserio artifact version under a specific destination
path (or ./current/zserio
, if no destination is given)
to a desired version. If the version has not been added to
./cache
, it will be downloaded and placed there. You should
git add/push
it.
The script places the following files under <directory>
:
runtime/
cpp/...
java/...
python/...
zserio.jar
version.txt
[if --python-module]
:patched python runtime sources
download.sh <version>
Use this if you just want to add a new zserio version
to the cache (This is also triggered by get.sh
if a non-cached version is requested).
Dockerfile
The Dockerfile may be used to work with this repository on Windows, e.g. to deploy a new version of the zserio pip package.
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
Hashes for zserio-2.1.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b059b9d455d95c7a4fa19b117535071f28c86711546632825ee267ab21be9595 |
|
MD5 | dab7d0f0ede593775c04599ae259f146 |
|
BLAKE2b-256 | 39ad45c1bc16f51d5271cb9c41953b4df299020b25357cf1c8644def0d9bb689 |