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.1.0.tar.gz
(46.8 kB
view details)
Built Distribution
pycspr-1.1.0-py3-none-any.whl
(78.9 kB
view details)
File details
Details for the file pycspr-1.1.0.tar.gz
.
File metadata
- Download URL: pycspr-1.1.0.tar.gz
- Upload date:
- Size: 46.8 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 | e26f7c53ebad586eb32c53ad7edd662b5507576420ed6eeb03656828f816e339 |
|
MD5 | aff970f9931083bfa47d3bc64bcd1b4f |
|
BLAKE2b-256 | 11b949169e3990e99fc6d6ec92a909c532e26b59d1672b5f869f7f163cdc7948 |
File details
Details for the file pycspr-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycspr-1.1.0-py3-none-any.whl
- Upload date:
- Size: 78.9 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 | d88d4761c5e74abceaadfeb8250c8e4bbab6e341a809ddfd5910a388fbfa4b89 |
|
MD5 | 2ee2b53f2c334cc787eb016a5d7f9b2b |
|
BLAKE2b-256 | 37375c5f1c22eb95cab24fdff0bf8c3359a83fd068fcce3f8f6237230869e941 |