Python library for interacting with a CSPR node.
Project description
Casper Python SDK
Python library for interacting with a CSPR node.
Installation
pip3 install pycspr
Usage
Development
Pre-Requisites
Install SDK
cd YOUR_WORKING_DIRECTORY
git clone https://github.com/casper-network/casper-python-sdk.git
cd casper-python-sdk
poetry install
Testing
Important Environment Variables
-
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_SPEC_EXEC
- port of speculative execution server exposed by test node
- default = 25101
-
Running Tests
cd YOUR_WORKING_DIRECTORY/casper-python-sdk
poetry shell
pytest ./tests [TEST-FILTER]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycspr-1.0.2.tar.gz
(42.6 kB
view details)
Built Distribution
pycspr-1.0.2-py3-none-any.whl
(62.2 kB
view details)
File details
Details for the file pycspr-1.0.2.tar.gz
.
File metadata
- Download URL: pycspr-1.0.2.tar.gz
- Upload date:
- Size: 42.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 526764165e85832b452332655f074b9f44e3d87546940fb445979ce4ef1a685a |
|
MD5 | 0ec71a3d842618370edc141c4404cd6f |
|
BLAKE2b-256 | bc2e390ddf7257b840e738bad4df5faf128aee64de9801165db614f8c78b6109 |
File details
Details for the file pycspr-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: pycspr-1.0.2-py3-none-any.whl
- Upload date:
- Size: 62.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d7e64afd56af61043f44a4c71adc6702479c8c20407a56c2bd41d792a7cafc7 |
|
MD5 | acdaa3743df62502fc2bb2a800af2b8c |
|
BLAKE2b-256 | 1f70655c3f4ecd7b8716fcd18040c2baba1b38e0bb0702e89853cc6eff1d6c99 |