Skip to main content

A Python package for working with LionWeb

Project description

LionWeb Python

PyPI version

This library contains an implementation in Python of the LionWeb specifications.

This library is released under the Apache V2 License.

Read the Documentation

We support Python 3.11 to 3.13

Linting

ruff check src/ tests/
mypy src/

Formatting

black src/ tests/
isort src/ tests/

Build locally

pip install build
python -m build

Release process

  • Update version in pyproject.toml and setup.py and src/lionwweb/init.py
  • Create tag: git tag -a v0.1.1 -m "Version 0.1.1"
  • Release on Pypi:
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
twine upload dist/* 
  • Push tag

Tests

sh prepare_for_tests.sh # to be run just once
PYTHONPATH=src python -m unittest discover tests

You can measure coverage like this:

PYTHONPATH=src coverage run -m unittest discover tests

And then generate a report with:

coverage html                                         
# report generated under htmlcov/index.html

Update Protobuffer classes

protoc --proto_path=./src --python_out=./src --mypy_out=./src -I . ./src/lionweb/serialization/proto/Chunk.proto 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lionweb-0.4.0.tar.gz (90.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lionweb-0.4.0-py3-none-any.whl (129.3 kB view details)

Uploaded Python 3

File details

Details for the file lionweb-0.4.0.tar.gz.

File metadata

  • Download URL: lionweb-0.4.0.tar.gz
  • Upload date:
  • Size: 90.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for lionweb-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9f267e5a36c7ec714344e57b11bf34752110a1929256fa491ed37b372a5abc45
MD5 642d9e55e5c01339f46421959b4a59be
BLAKE2b-256 92480b25c618815e7eb4bea61f785e26324790d8f8c020eb1e8c79a4f4817839

See more details on using hashes here.

File details

Details for the file lionweb-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: lionweb-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 129.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for lionweb-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb1adba8dd2b2a664b308ba54f6d3a7b82860dd5acb9215f26192ce34b22b841
MD5 56e409e128129ffce0bf65b775701370
BLAKE2b-256 21647a992951c3597c48cef94cd576f1189b391a9137decc9eec388ff9438707

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page