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.3.7.tar.gz (84.5 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.3.7-py3-none-any.whl (122.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lionweb-0.3.7.tar.gz
Algorithm Hash digest
SHA256 cbbcdba024b6cf5f45c2f2663977380d33d84aefc5a74abe39b01b3e490998b5
MD5 a7496aa3348a5ce898d1d422dac10813
BLAKE2b-256 62592488799f9a3a969d7b01e2fe736ca33831a3987f86e6b2e85056801e637c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lionweb-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 122.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.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0e835c0fcf0553eaf9928ba7d3a3236916328ed18743cc508591551e75769123
MD5 5a9bd52a50e0629635bb79c3f1b1eb40
BLAKE2b-256 fa0177ea777548b03aa5fecdf092c9cba66bf12d6651a6e73afca5f52c197800

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