Pactus Python SDK
The Pactus Python SDK provides a set of utilities to seamlessly interact with the Pactus blockchain. With this SDK, you can easily create transactions, sign messages, generate cryptographic keys, and more.
Installation
You can install the SDK using pip:
pip install pactus-sdk
Examples
To help you get started, we've included an examples folder that contains various scripts demonstrating how to
use the SDK for different tasks. These examples cover key generation, transaction creation, message signing, and more.
To run an example, navigate to the examples directory and execute the script using Python:
cd examples
python example_key_generation.py
Explore the examples folder for more detailed usage scenarios.
Development Setup
For local development, you can install the package in editable mode, which allows you to make changes and test them immediately:
python3 -m pip install .
After making changes, it's important to ensure all tests pass by running:
python3 -m unittest discover tests
Maintaining code quality is crucial. Use Ruff to format and lint your code:
ruff format # formatting code style
ruff check # running linter
Contributing
Contributions are welcome! Feel free to add features, fix bugs, or improve documentation via pull requests.
Publishing to PyPI
To deploy pactus-sdk and create a release, tag the new version and push it to GitHub.
Ensure the version matches the one specified in setup.py.
git tag -s -a v1.x.y -m "Version 1.x.y"
git push origin v1.x.y
After publishing, update the version number in setup.py accordingly.
For reference, see this PR.
License
This project is licensed under the MIT License. By contributing, you agree to license your contributions under the same terms.
Metadata
Release files for pactus-sdk 1.4.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 | |
|---|---|---|---|
| pactus_sdk-1.4.0.tar.gz | 58.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pactus_sdk-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 128.4 kB
Release files / pactus_sdk-1.4.0.tar.gz
| Download URL | pactus_sdk-1.4.0.tar.gz |
|---|---|
| Size | 58.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5af6b560aae6e30b7bb43a8838da15b5b510a80089822afc179f4f6a98b7a07e
|
|
BLAKE2b-256 checksum How to use checksums |
fd2e3f0f6a00f4ddd4681c273f5eb712258a42fe54fd2739403910b6fda09eda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.
Transparency logRelease files / pactus_sdk-1.4.0-py3-none-any.whl
| Download URL | pactus_sdk-1.4.0-py3-none-any.whl |
|---|---|
| Size | 70.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9616a7995762e24ea6279fb2700fc8ab16b9db6eade804014545fa041bbee323
|
|
BLAKE2b-256 checksum How to use checksums |
53cac472d4520e5a8742db1745db632ffc194ee2fc4961ff780c97cf2a3b2961
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.
Transparency log