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.1.tar.gz (93.4 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.1-py3-none-any.whl (132.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lionweb-0.4.1.tar.gz
  • Upload date:
  • Size: 93.4 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.1.tar.gz
Algorithm Hash digest
SHA256 dcfafc828ddf26c43801d3aa6d6ef8d050a35ac0978b6c85073b7cefc652ed79
MD5 6505dbb8c6c647ddb500611f6830aed9
BLAKE2b-256 709fc6d6a582bb2bf969078ba2c667935d5c7b0d5e01c4ceb884824c8cf905c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lionweb-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 132.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1efd4a1e9e9cceff3757b9665fe2ec9ffcf32cdfa064b0acfb17420d3887a18
MD5 097f97dc3453a02d8edc0bcb19fdf272
BLAKE2b-256 647fa33639e5731bd4b2f2c18b83e480339bdaaabc09cd6037b4077116a69877

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