Pactus Development Kit
Project description
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.
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
Built Distribution
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 pactus_sdk-1.3.0.tar.gz.
File metadata
- Download URL: pactus_sdk-1.3.0.tar.gz
- Upload date:
- Size: 48.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d636bb59c71926c7aee1b3e39e6da902b1de4178284d64623f8df3385b7406f
|
|
| MD5 |
f3c7167bd9e842cef86582d5119b71ad
|
|
| BLAKE2b-256 |
36d81239d9f73e30a51d9fe233255cae36f03a4b9526c3d7218878436a2484b1
|
Provenance
The following attestation bundles were made for pactus_sdk-1.3.0.tar.gz:
Publisher:
pypi.yml on pactus-project/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pactus_sdk-1.3.0.tar.gz -
Subject digest:
8d636bb59c71926c7aee1b3e39e6da902b1de4178284d64623f8df3385b7406f - Sigstore transparency entry: 718415030
- Sigstore integration time:
-
Permalink:
pactus-project/python-sdk@9804e50266d7458f9103d0676a30f2db2656b5ed -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/pactus-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@9804e50266d7458f9103d0676a30f2db2656b5ed -
Trigger Event:
push
-
Statement type:
File details
Details for the file pactus_sdk-1.3.0-py3-none-any.whl.
File metadata
- Download URL: pactus_sdk-1.3.0-py3-none-any.whl
- Upload date:
- Size: 58.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d48feb54876d98de52ff0aa441bc69dbbb6b27aecc86bfa585dced7bc0508e4
|
|
| MD5 |
ecbf758bbc4ef734535580d28093af3e
|
|
| BLAKE2b-256 |
1e9e2615a387a5198ed290d629b9cadc6e2421e91aa0f4257fc20fa62df20744
|
Provenance
The following attestation bundles were made for pactus_sdk-1.3.0-py3-none-any.whl:
Publisher:
pypi.yml on pactus-project/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pactus_sdk-1.3.0-py3-none-any.whl -
Subject digest:
0d48feb54876d98de52ff0aa441bc69dbbb6b27aecc86bfa585dced7bc0508e4 - Sigstore transparency entry: 718415032
- Sigstore integration time:
-
Permalink:
pactus-project/python-sdk@9804e50266d7458f9103d0676a30f2db2656b5ed -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/pactus-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@9804e50266d7458f9103d0676a30f2db2656b5ed -
Trigger Event:
push
-
Statement type: