Kaspa Python SDK
Project description
Kaspa Python SDK
The Kaspa Python SDK provides bindings to Rust & Rusty-Kaspa source, allowing Python developers to interact with the Kaspa BlockDAG.
A native extension module, kaspa, is built from these bindings using PyO3 and Maturin.
[!IMPORTANT] This project has moved! Welcome to the new home of Kaspa Python SDK, which historically lived here.
Versions < 1.1.0 were built from the old repository.
Versions >= 1.1.0 are/will be built from this repository.
Features
This SDK provides features in two primary categories:
- RPC Client - Connect to Kaspa nodes & PNN, perform calls, subscriptions, etc.
- Wallet Management - Wallet related functionality (key management, derivation, addresses, transactions, etc.).
This package strives to mirror the Kaspa WASM32 SDK from a feature and API perspective, while respecting Python conventions.
Most feature gaps with WASM32 SDK exist around Wallet functionality. Over time, features will be added to the Python SDK to bring it as close as possible.
Documentation
Full documentation is available on the documentation site, including (but not limited to):
The documentation site is versioned:
devrefers to the latest inmainbranchlatestrefers to the most recent production release- Specific version tags are available
Documentation is not available for versions prior to 1.1.0. However, the API is very close, if not the exact same, for those versions and 1.1.0.
Quick Install
The Kaspa Python SDK is available on PyPi (link). As such, it can be installed from PyPi via:
pip install kaspa
Security-critical applications should consider building and installing from source. Instructions can be found here on the documentation site.
Example
A very basic RPC example:
import asyncio
from kaspa import Resolver, RpcClient
async def main():
# Connect to Public Node Network (PNN) with Resolver
client = RpcClient(resolver=Resolver())
await client.connect()
# Execute RPC Call
print(await client.get_block_dag_info())
if __name__ == "__main__":
asyncio.run(main())
Additional detailed examples can be found in the following locations:
Core Concepts & Contributing
The Contributing Guide details various technical core concepts and information about this project.
License
This project is licensed under the ISC License.
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 Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kaspa-1.1.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 8.6 MB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01fb96c04f1012684f00625980cbd735c3ced2e35dd13210782638124d71b449
|
|
| MD5 |
be7bd35336bc8579ea47d08624b5a0fb
|
|
| BLAKE2b-256 |
2359d42461521771c7d0c58b7d60654ee47bff54a61e69ab808ddbb1fc25c8f5
|
File details
Details for the file kaspa-1.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.9 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4606b930ceb28de57957c03ec1ebfd60bd220e74d3516d7268d76fc25fe7096f
|
|
| MD5 |
2471769698dce939568c02412184b7ea
|
|
| BLAKE2b-256 |
cb134196833bbc121dbb811d11927250b4ef9b6c97acc0afdec675e3a9dbc338
|
File details
Details for the file kaspa-1.1.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 10.2 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b42bb8ffea5932ff3233228bdda4ad610892037b3f4dacf3291e13b743a2d4b6
|
|
| MD5 |
da3887993693c56951b471babad50c3a
|
|
| BLAKE2b-256 |
2206fdf38c48904c319d7bb191083c41b3cb0fe174fa1ca3116442b4055a377b
|
File details
Details for the file kaspa-1.1.0-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.9 MB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33e658a38989f9b58f1c52d69b271460826262d4872e12da02f390e00707f926
|
|
| MD5 |
87b0ec0281e5b593ecc8a0708c0db377
|
|
| BLAKE2b-256 |
87a85558b07cbced66feadf894a9f392fce16bcb16bf001489fb8700c39ff731
|
File details
Details for the file kaspa-1.1.0-cp314-cp314-macosx_10_12_x86_64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp314-cp314-macosx_10_12_x86_64.whl
- Upload date:
- Size: 8.1 MB
- Tags: CPython 3.14, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a84ed0631c01411bee9b593c11c998e85c35e40b5c5f6a71067923c3cb1e9e6
|
|
| MD5 |
90324d18051e43e9411b6df42566d682
|
|
| BLAKE2b-256 |
b554f54c83c12e4b4c430c11d106776ac7c52beaa0c864ebfcacdd454dc1f767
|
File details
Details for the file kaspa-1.1.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 8.6 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
320a2ffdc35f5f411b1add243267666b8a8227dcd21846ceb2b8597877d19937
|
|
| MD5 |
44daf7f62ad5244a57baec5c59325e36
|
|
| BLAKE2b-256 |
fc3b626e9bbb54b8448ec830f0fe4194d9a41fcf92597ff3a8d19d47fea85a84
|
File details
Details for the file kaspa-1.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.8 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41b94362ee241517e7487aaf4162b781d2291971209cad7a0769233cd47e3030
|
|
| MD5 |
5e271e561dc228f002fa507520e25387
|
|
| BLAKE2b-256 |
5e960a440e9bd076c3cb610aec91abd58916ab9bba3a1d7abd7a4c4152c54066
|
File details
Details for the file kaspa-1.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 10.1 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14d28cb3d40b642afa57dcad31b56c798c14dc475f014fe1dbb13a874181da4e
|
|
| MD5 |
626b3a112bd5c88a2b9446259186ac88
|
|
| BLAKE2b-256 |
c491b4c7bc1869713ab805468d3ca918f1cb875cec8a78209f56b2c248484364
|
File details
Details for the file kaspa-1.1.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.9 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da58f9cbbfdf8c11feab3c338fad34d6ab464ddc0295030522f432fa512e76d5
|
|
| MD5 |
f5bc9dda6337eafa71ddb9ef3c5ec28b
|
|
| BLAKE2b-256 |
cdd28e681637e1d9b4c884a0bad8a05949cbaaacaf3f28bd7ad6faed09fb52b4
|
File details
Details for the file kaspa-1.1.0-cp313-cp313-macosx_10_12_x86_64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp313-cp313-macosx_10_12_x86_64.whl
- Upload date:
- Size: 8.1 MB
- Tags: CPython 3.13, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be2f61f523fe7ab8d89afc355f2998c7133d768a6a4f78a68a1b2ff1c6152ab1
|
|
| MD5 |
ef506c45828a93b214eca80646c5ba91
|
|
| BLAKE2b-256 |
a1588b97ee1654d17a521bc104925958f71e656d498efac2c31b220e7e384334
|
File details
Details for the file kaspa-1.1.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 8.6 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75601c798e174c3e2236fe6e838aa8c4de0d61c464902069ebc0c471f4d81acf
|
|
| MD5 |
abaf687679ef9e48a4d26e62974d4c53
|
|
| BLAKE2b-256 |
5dc8506c63876ca165fbd1e5aea63cd8b734c0eeb8a4c15573235a787629a47a
|
File details
Details for the file kaspa-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76297c771c4bc6352dce53c9fa2f8f659ab9fe9a97d178a60bc60bf4e96c9d8d
|
|
| MD5 |
2402359c086ab3800f569eabb71357ba
|
|
| BLAKE2b-256 |
dc87e553f4c5bdc577b9e4976dc2d494b66225548965c97345d32ab722dfb59a
|
File details
Details for the file kaspa-1.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 10.1 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d0626c91007e8292c01f5409793233e7228380c091030be0e7d91890855221b
|
|
| MD5 |
27467b3df37f0fd8c680b786d575e996
|
|
| BLAKE2b-256 |
a03252b97d7bf06c08f19af7b48edb724a81eee2f653c14e5759a19e241a78ff
|
File details
Details for the file kaspa-1.1.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.9 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68582b61a26da9140112ab10fcba5e5ce1e71b4dab5fcfa80ddc67da1af3f641
|
|
| MD5 |
cd21391d48c9373a500bb4500d380c70
|
|
| BLAKE2b-256 |
09d05c17a02071e33803307cc36e2df9249af53943aac06140c21c7deee8e04a
|
File details
Details for the file kaspa-1.1.0-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 8.1 MB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9995d563c0c1713b2fa166ac6d7b3fd6d502b9ab472c3ccba4ddff186b5a29b
|
|
| MD5 |
7d0074ba493cb4cb92927343fdc733f1
|
|
| BLAKE2b-256 |
621a2b459058befab89170736464d8dc1d1c6049689edda47ded0582aef2b240
|
File details
Details for the file kaspa-1.1.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 8.6 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a01b192574c545b9145ab4030301041190fe18f46d926bcd8adbaad498528e4c
|
|
| MD5 |
51ceb04e4bb11c33e7ab5cd1c8fbf359
|
|
| BLAKE2b-256 |
fe9203facb3b38ea48596c5bbcea62ac11749de74ce8f9858bad98f94e7e6ae2
|
File details
Details for the file kaspa-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.9 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5567404088d35f371ed1995916b3c49e3e33c8412969b0117c6771b660e03995
|
|
| MD5 |
114bbb76e2347b4da022ab5687acadc4
|
|
| BLAKE2b-256 |
81c845d4060ea0cf3d84956fa6929a43280e79ee2da3a8c28e747aa94c83c0b8
|
File details
Details for the file kaspa-1.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 10.1 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b017a32173cc47daa5f7cd58f81d4276578607d5d8509bd8bb97f6efcca6f60
|
|
| MD5 |
a22697f0b38fcaf1274ff9578704e9d9
|
|
| BLAKE2b-256 |
f2fb2be6e391e0395215f552a6226ee099725a55b9de734428e7b3fa2cd72ab9
|
File details
Details for the file kaspa-1.1.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.9 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce086078383e0e210831dd8284d3262d20a0d6e845e6d6241e0ee63d4a119157
|
|
| MD5 |
d5010d93f02b84cdaa3198c57bc6d6ae
|
|
| BLAKE2b-256 |
675e4e7961d676fdf5ab77d07427f8cbb7917f33c3b0a26352030eab5ed5c492
|
File details
Details for the file kaspa-1.1.0-cp311-cp311-macosx_10_12_x86_64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 8.1 MB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6b2f62cc5839ceef11e7cad4aa5f61b1d9447538c1113013fc5c209ef286fd9
|
|
| MD5 |
3ddfd13b72d6c1611b8c2396d243ae50
|
|
| BLAKE2b-256 |
e763d0b7c3b10f139e9f3579ffc57f49f3a3221dcebd0978e57229e35ae02b7a
|
File details
Details for the file kaspa-1.1.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 8.6 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
150885425aeb22f836d1d298f475d16481b411484409abb56ab769faf64cd79d
|
|
| MD5 |
adad26dbeb40f8c7592eba3398429df4
|
|
| BLAKE2b-256 |
b821c10d07240c0d66c5868669cc32f74a08b7941a64a605b1dbe8d66b03b716
|
File details
Details for the file kaspa-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.8 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed342d4e627ac228812c5e2afd47d952d07b8911b523d05425c41cf2cd35cd9
|
|
| MD5 |
f13a1e133cc1c087640d75cd6e83865e
|
|
| BLAKE2b-256 |
583eca4a70d933842d964c15c65e05217dc135ed9826c56ba7dafd477b1fc0f5
|
File details
Details for the file kaspa-1.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 10.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8dbeda648cf4074e83627c532dc98ba736bd97dee3a22867b9a691fe96fa9bb
|
|
| MD5 |
764b295515cf24b3b33cb2a86bb65dee
|
|
| BLAKE2b-256 |
c7cc50e6d6915ec2fcee7f1f3bacd4a592317e437d3b1dfc1aa48a5d68f2a3b9
|
File details
Details for the file kaspa-1.1.0-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.9 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06e01ddb4d65bbe6caee44ee9499fcbe80f5dc1d4c35be540629d8ebbf51b46b
|
|
| MD5 |
50342b8c20af5b98c6c5cd8d7c23ecd4
|
|
| BLAKE2b-256 |
4c7a8c4a3f09ae2c705bd47af324e9b5755ab500cf9dc946b9444916d9bdba8b
|
File details
Details for the file kaspa-1.1.0-cp310-cp310-macosx_10_12_x86_64.whl.
File metadata
- Download URL: kaspa-1.1.0-cp310-cp310-macosx_10_12_x86_64.whl
- Upload date:
- Size: 8.1 MB
- Tags: CPython 3.10, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45f565f765ba08a6a8d15ab2e9b9bf08d8dde359384a72ada61c167b92af904e
|
|
| MD5 |
1cf47627f0419ed071ecd6f7e6b3822b
|
|
| BLAKE2b-256 |
3da6778c242c46c9224faded16badf7e81a720b14339bc48be1f3e1ed555ac59
|