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.

Publishing to PyPi

To deploy pactus-sdk and create a release, tag the new version and push it to GitHub.

git tag -s -a v1.x.y -m "Version 1.x.y"

After publishing, make sure to update the version number in setup.py.

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

Uploaded Source

Built Distribution

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

pactus_sdk-1.2.0-py3-none-any.whl (49.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pactus_sdk-1.2.0.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pactus_sdk-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6962c3a54dd5143a0b13ca97c523e539f3c37e5b2bddc658d8e5408b92c7e0e3
MD5 f4b4b51c9bcc9601f0bc9d80e37269c1
BLAKE2b-256 8cbbcdfde76e9763e81e8dd613bdda73c2ff1ab5651503bd4a261dfb4f587efd

See more details on using hashes here.

Provenance

The following attestation bundles were made for pactus_sdk-1.2.0.tar.gz:

Publisher: pypi.yml on pactus-project/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pactus_sdk-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 49.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pactus_sdk-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3056b0d4a3a1026272e994db6e95a16b95a5112239c4cb56d8538b46ef3b5016
MD5 d54b7d380415bcab71d127d117003fb0
BLAKE2b-256 9341f5f7c3a551120f9ccbf5b7b6858a51bf65a38057f62cb703e3fe932da74a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pactus_sdk-1.2.0-py3-none-any.whl:

Publisher: pypi.yml on pactus-project/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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