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]
Metadata
Release files for pycspr 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycspr-1.2.0.tar.gz | 48.1 kB | Without provenance | Details for pycspr-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycspr-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for pycspr-1.2.0-py3-none-any.whl |
Total release size: 120.9 kB
Release files / pycspr-1.2.0.tar.gz
| Download URL | pycspr-1.2.0.tar.gz |
|---|---|
| Size | 48.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
119d8f6d2dd51ee841c6bd95756666e0d8c85dd896d3571b0f856c456120553a
|
|
BLAKE2b-256 checksum How to use checksums |
f47de9974fe4571ee0ff21ffdb58750d25fab682c98f6b290067fe6646f33e21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.2 Darwin/23.1.0
|
Release files / pycspr-1.2.0-py3-none-any.whl
| Download URL | pycspr-1.2.0-py3-none-any.whl |
|---|---|
| Size | 72.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77f24979727d38f104ca2be9ac8b8f813ff64de245a12a589a24be984af55d0a
|
|
BLAKE2b-256 checksum How to use checksums |
6ad181fb4522c9a271bac203011673645167a66b491496c94695fc9a292296eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.2 Darwin/23.1.0
|
Security for pycspr 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.