Skip to content

Poetry installation

Poetry logo

Install Silkaj in a development environement with Poetry

Install libsodium

sudo apt install libsodium23
sudo dnf install libsodium

Install Poetry

pipx install poetry

Install dependencies and the Python virtual environment

# Over HTTPS
git clone https://git.duniter.org/clients/python/silkaj.git

# Over SSH
git clone git@git.duniter.org:clients/python/silkaj.git

cd silkaj

# Installs the runtime and development dependencies
poetry install

Run Silkaj

Within silkaj repository run Silkaj:

poetry run silkaj

Poetry shell

You can access tools pytest from within the development environment with poetry run or by entering the shell:

silkaj> poetry run pytest
silkaj> poetry shell
(silkaj-58dUTebQ-py3.12) silkaj> pytest

Make Silkaj accessible from everywhere

Add following alias to your shell configuration:

alias silkaj="cd /path/to/silkaj && poetry run silkaj"