# Pactus Python SDK
The Pactus Python SDK provides a set of utilities to seamlessly interact with the [Pactus](https://pactus.org) blockchain.
With this SDK, you can easily create transactions, sign messages, generate cryptographic keys, and more.
## Installation
You can install the SDK using `pip`:
```bash
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:
```bash
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:
```bash
pip install -e .
```
After making changes, it's important to ensure all tests pass by running:
```bash
python3 -m unittest discover tests
```
Maintaining code quality is crucial. Use [Ruff](https://docs.astral.sh/ruff/) to format and lint your code:
```bash
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.
```bash
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](./LICENSE).
By contributing, you agree to license your contributions under the same terms.
Raw data
{
"_id": null,
"home_page": "https://github.com/pactus-project/python-sdk",
"name": "pactus-sdk",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "pactus, blockchain, web3, dapp, bls, bech32",
"author": "Pactus Development Team",
"author_email": "info@pactus.org",
"download_url": "https://files.pythonhosted.org/packages/b3/96/fcaad455aa02e8dc14e818b93385d36cccd2ad3db03b3e3f542b3c807da1/pactus_sdk-1.1.1.tar.gz",
"platform": null,
"description": "# Pactus Python SDK\n\nThe Pactus Python SDK provides a set of utilities to seamlessly interact with the [Pactus](https://pactus.org) blockchain.\nWith this SDK, you can easily create transactions, sign messages, generate cryptographic keys, and more.\n\n## Installation\n\nYou can install the SDK using `pip`:\n\n```bash\npip install pactus-sdk\n```\n\n## Examples\n\nTo help you get started, we've included an `examples` folder that contains various scripts demonstrating how to\nuse the SDK for different tasks. These examples cover key generation, transaction creation, message signing, and more.\n\nTo run an example, navigate to the `examples` directory and execute the script using Python:\n\n```bash\ncd examples\npython example_key_generation.py\n```\n\nExplore the `examples` folder for more detailed usage scenarios.\n\n## Development Setup\n\nFor local development, you can install the package in editable mode, which allows you to make changes and test them immediately:\n\n```bash\npip install -e .\n```\n\nAfter making changes, it's important to ensure all tests pass by running:\n\n```bash\npython3 -m unittest discover tests\n```\n\nMaintaining code quality is crucial. Use [Ruff](https://docs.astral.sh/ruff/) to format and lint your code:\n\n```bash\nruff format # formatting code style\nruff check # running linter\n```\n\n## Contributing\n\nContributions are welcome! Feel free to add features, fix bugs, or improve documentation via pull requests.\n\n## Publishing to PyPi\n\nTo deploy `pactus-sdk` and create a release, tag the new version and push it to GitHub.\n\n```bash\ngit tag -s -a v1.x.y -m \"Version 1.x.y\"\n```\n\nAfter publishing, make sure to update the version number in `setup.py`.\n\n## License\n\nThis project is licensed under the [MIT License](./LICENSE).\nBy contributing, you agree to license your contributions under the same terms.\n",
"bugtrack_url": null,
"license": null,
"summary": "Pactus Development Kit",
"version": "1.1.1",
"project_urls": {
"Homepage": "https://github.com/pactus-project/python-sdk"
},
"split_keywords": [
"pactus",
" blockchain",
" web3",
" dapp",
" bls",
" bech32"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4c7397e9eaadfae8fd11509967bd0f8741c08d1286be5a0f287a9d139b226e3e",
"md5": "74846031e6f87c1e1d08e776e49f0545",
"sha256": "fe0162d6788341b7c17201186211ace3458e2d76619b7e94fee5b3f49ce10dbc"
},
"downloads": -1,
"filename": "pactus_sdk-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "74846031e6f87c1e1d08e776e49f0545",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 46445,
"upload_time": "2024-10-06T17:01:44",
"upload_time_iso_8601": "2024-10-06T17:01:44.290305Z",
"url": "https://files.pythonhosted.org/packages/4c/73/97e9eaadfae8fd11509967bd0f8741c08d1286be5a0f287a9d139b226e3e/pactus_sdk-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b396fcaad455aa02e8dc14e818b93385d36cccd2ad3db03b3e3f542b3c807da1",
"md5": "aa1d221b3b876166649410c6cfa34d0b",
"sha256": "9b6031acb90f72a5691cfb761444b88ec361205da6d2fc268eda7e5f9342458a"
},
"downloads": -1,
"filename": "pactus_sdk-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "aa1d221b3b876166649410c6cfa34d0b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 36252,
"upload_time": "2024-10-06T17:01:46",
"upload_time_iso_8601": "2024-10-06T17:01:46.302958Z",
"url": "https://files.pythonhosted.org/packages/b3/96/fcaad455aa02e8dc14e818b93385d36cccd2ad3db03b3e3f542b3c807da1/pactus_sdk-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-06 17:01:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pactus-project",
"github_project": "python-sdk",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pactus-sdk"
}