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
Cryptography
Deploys
Smart Contracts
Node APIs
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_RPC_SPECULATIVE
- 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.2.tar.gz
(46.5 kB
view details)
Built Distribution
pycspr-1.1.2-py3-none-any.whl
(71.0 kB
view details)
File details
Details for the file pycspr-1.1.2.tar.gz
.
File metadata
- Download URL: pycspr-1.1.2.tar.gz
- Upload date:
- Size: 46.5 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 | 53a8e89de780e82cc92ba76474c60fc7331233bc6d71b6bafd4a878b57bc71e4 |
|
MD5 | 3d18b9148f8d85996a3c6e53a23d0d73 |
|
BLAKE2b-256 | a52ceac36f852d41b64a4aaa9504807948e21f3faa53732f4583718dbc3dd74c |
File details
Details for the file pycspr-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: pycspr-1.1.2-py3-none-any.whl
- Upload date:
- Size: 71.0 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 | d30460a898b19f88ae253720e580fe7d7df28f2cde80964e7c072bc6e4adf683 |
|
MD5 | ebed09e8691f4a4535850b9b2986d09c |
|
BLAKE2b-256 | 918c0b9dbaa23d65bead8306c70e7be3a652b8216ba4c8dba70cb64f62cecca7 |