Nillion-client is a Python client for building on top of the Nillion Network. It can be used to manage Nada programs, store and retrieve values, and run computations.
See the official Nillion documentation site for more about Nillion Clients, Python Client Examples and the Python Client Reference.
This project uses uv to manage itself. Be sure that you have it installed.
To install dependencies and setup project
uv syncFirst ensure that you have the nillion-devnet running
./tests/resources/scripts/run_devnet.shThen in a new terminal
uv run pytest
This project uses ruff as linter and formatter, it gets installed as a dependency.
To format code:
uv run ruff formatTo lint:
uv run ruff checkIn order to generate the documentation first install the dependencies and set up the project:
uv syncThen activate the virtual environment:
source .venv/bin/activate
# Use .venv/bin/activate.fish if you're using fish shellAnd finally run:
./docs/generate.sh output_directoryThe docs will be generated in output_directory.
Release candidates are published on every merge to the main branch
To release a new version of the client non rc, follow these steps:
run:
just releaseand bump the version in the pyproject.toml file for the new rc.