Zserio runtime and Python package generator.
Project description
Zserio Package
PyPI package infrastructure around Zserio. For extensive documentation around the zserio language please check zserio.org.
Installation
Just run
pip3 install zserio
Alternatively, clone this repository, and run
./set-version.sh <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:
set-version.sh
Set the zserio PIP package version under current/zserio
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 current/zserio
:
runtime/
cpp/...
java/...
python/...
__init__.py
<zserio runtime Python sources>
zserio.jar
download.sh
Use this if you just want to add a new zserio version
to the cache (This is also triggered by set-version
if a non-cached version is requested).
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
zserio-2.0.0rc3.tar.gz
(15.9 kB
view hashes)
Built Distribution
Close
Hashes for zserio-2.0.0rc3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dad954c2350ed5bbf33fdfccf26f9eb02a5cb9bfa5c3ad68d53ed518bb2e649 |
|
MD5 | 3a3900091a184180271a0e254f748f5a |
|
BLAKE2b-256 | 71179299a4397866939c92f62f20bfbed46829c1bb2a38f4d21fe0e14462ac35 |