This project uses Poetry for management, which needs to be installed to run following instructions. Checkout the repository and run:
poetry install
To run examples you need invoke them via poetry:
poetry run python examples/rate_providers/rate_providers.py
python -m golem status
python -m golem find-node --runtime vm
python -m golem find-node --runtime vm --subnet public-beta
python -m golem find-node --runtime vm --timeout 7 # stops after 7 seconds
python -m golem find-node --runtime vm --timeout 1m # stops after 60 seconds
python -m golem allocation list
python -m golem allocation new 1
python -m golem allocation new 2 --driver erc20 --network holesky
python -m golem allocation clean
To build docs run following commands:
poetry run poe sphinx
Then you can open build/api.html
file in your web browser.
poetry run poe format
poetry run poe checks
Unit tests:
poetry run poe tests_unit
Integration tests (requires running local yagna
in requestor mode or goth
in interactive mode):
poetry run poe tests_integration