Skip to main content

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:

pip install -e .

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.

License

This project is licensed under the MIT License. By contributing, you agree to license your contributions under the same terms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pactus_sdk-1.0.0.tar.gz (34.6 kB view hashes)

Uploaded Source

Built Distribution

pactus_sdk-1.0.0-py3-none-any.whl (43.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page