Skip to main content

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

1. Setup Local CCTL Network.

2. Install poetry.

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]

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.2.0.tar.gz (48.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycspr-1.2.0-py3-none-any.whl (72.8 kB view details)

Uploaded Python 3

File details

Details for the file pycspr-1.2.0.tar.gz.

File metadata

  • Download URL: pycspr-1.2.0.tar.gz
  • Upload date:
  • Size: 48.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.2 Darwin/23.1.0

File hashes

Hashes for pycspr-1.2.0.tar.gz
Algorithm Hash digest
SHA256 119d8f6d2dd51ee841c6bd95756666e0d8c85dd896d3571b0f856c456120553a
MD5 aa27cc6535c902b10a60dc31fd2d48c8
BLAKE2b-256 f47de9974fe4571ee0ff21ffdb58750d25fab682c98f6b290067fe6646f33e21

See more details on using hashes here.

File details

Details for the file pycspr-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: pycspr-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 72.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.2 Darwin/23.1.0

File hashes

Hashes for pycspr-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77f24979727d38f104ca2be9ac8b8f813ff64de245a12a589a24be984af55d0a
MD5 d9a68fbd3e0f76255890643b68bee212
BLAKE2b-256 6ad181fb4522c9a271bac203011673645167a66b491496c94695fc9a292296eb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.13.2

2 files

0.13.1

2 files

0.13.0

2 files

0.12.4

1 file

0.12.3

1 file

0.12.2

1 file

0.12.1

1 file

0.12.0

1 file

0.11.3

1 file

0.11.1

1 file

0.11.0

1 file

0.10.6

1 file

0.10.5

1 file

0.10.4

1 file

0.10.3

1 file

0.10.2

1 file

0.10.1

1 file

0.9.2

1 file

0.9.1

1 file

0.9.0

1 file

0.8.7

1 file

0.8.6

1 file

0.8.5

1 file

0.8.4

1 file

0.8.3

1 file

0.8.2

1 file

0.8.1

1 file

0.8.0

1 file

0.7.5

1 file

0.7.4

1 file

0.7.3

1 file

0.7.2

1 file

0.7.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page