Python library for interacting with a CSPR node.
pip3 install pycspr
cd YOUR_WORKING_DIRECTORY
git clone https://github.com/casper-network/casper-python-sdk.git
cd casper-python-sdk
poetry install
-
Mandatory
-
CCTL
- path to local clone of CCTL repo
-
-
Optional
-
PYCSPR_TEST_NODE_HOST
- host of a test node
- default = localhost
-
PYCSPR_TEST_NODE_PORT_REST
- port of rest server exposed by test node
- default = 14101
-
PYCSPR_TEST_NODE_PORT_RPC
- port of json-rpc server exposed by test node
- default = 11101
-
PYCSPR_TEST_NODE_PORT_SSE
- port of sse server exposed by test node
- default = 18101
-
PYCSPR_TEST_NODE_PORT_RPC_SPECULATIVE
- port of speculative execution server exposed by test node
- default = 25101
-
cd YOUR_WORKING_DIRECTORY/casper-python-sdk
poetry shell
pytest ./tests [TEST-FILTER]