Python Command Line Tools for interacting with ClawsNetwork.
Install with pipx (recommended):
pipx install claw-sdk-cliThen run clawpy from anywhere.
Clone this repository and cd into it:
git clone https://github.com/ClawsNetwork/claw-sdk-py-cli.git
cd claw-sdk-py-cli
Create a virtual environment and install the dependencies:
python3 -m venv ./venv
source ./venv/bin/activate
pip install -r ./requirements.txt --upgrade
Install development dependencies, as well:
pip install -r ./requirements-dev.txt --upgrade
Allow pre-commit to automatically run on git commit:
pre-commit install
Above, requirements.txt should mirror the dependencies section of
pyproject.toml.
If using VSCode, restart it or follow these steps:
Ctrl + Shift + P- Select Interpreter
- Choose
./venv/bin/python.
If you want to test the modifications you locally made to clawpy, set
PYTHONPATH with the path to your local repository path.
For example, if you cloned the repository at ~/claw-sdk-py-cli, run:
export PYTHONPATH="~/claw-sdk-py-cli"
Then clawpy will use the code in your local repository.