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.1.tar.gz
(48.7 kB
view details)
Built Distribution
pycspr-1.1.1-py3-none-any.whl
(79.4 kB
view details)
File details
Details for the file pycspr-1.1.1.tar.gz
.
File metadata
- Download URL: pycspr-1.1.1.tar.gz
- Upload date:
- Size: 48.7 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 | 9f7f813269623151da58d0fa0a2e91603ce20931ea70654160aae9070e3f4ee0 |
|
MD5 | 4a57d56bf4ab99e02a853d0a1eac4030 |
|
BLAKE2b-256 | e23c1a4b11fbca6d510175b7343ed8d1727fdc17037cce01ea4512a8347dfc27 |
File details
Details for the file pycspr-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: pycspr-1.1.1-py3-none-any.whl
- Upload date:
- Size: 79.4 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 | e2d57310505c080c0c626eae50ba3c7c2efc322416609b4cc0c9e33837b3ac2b |
|
MD5 | 8d36cc6b0babc489f5ea5cf0b09dde35 |
|
BLAKE2b-256 | 69ac0b2ba3dea12cf41d53fc368530e5ef941152db54a88253ba2429f361f0c6 |