Hiero SDK in Python
A Python SDK for interacting with the Hedera Hashgraph platform.
[!NOTE] Python compatibility
The SDK supports Python ≥ 3.10 and is tested on Python 3.10–3.14. Newer Python versions may work but have not yet been validated.
Quick Start
Installing from PyPI
pip install --upgrade pip
pip install hiero-sdk-python
pip install python-dotenv
Environment Configuration
Create a .env file in your project root with your Hedera testnet credentials.
Full setup instructions: Setup Guide
Don't have testnet credentials? Get them free at Hedera Portal
A sample file is provided: .env.example
Basic Usage
import os
from dotenv import load_dotenv
from hiero_sdk_python import Network, Client, CryptoGetAccountBalanceQuery, AccountId, PrivateKey
# Connect to testnet
load_dotenv()
network = Network("testnet")
client = Client(network)
operator_id = AccountId.from_string(os.getenv("OPERATOR_ID",""))
operator_key = PrivateKey.from_string(os.getenv("OPERATOR_KEY",""))
client.set_operator(operator_id, operator_key)
# Query account balance
balance = CryptoGetAccountBalanceQuery(account_id=operator_id).execute(client)
print(f"Balance: {balance.hbars} HBAR")
Documentation
For SDK Users
- Running Examples - Complete guide to all SDK operations with code examples
- Error Handling - Exception types, response codes, and retry guidance
- Examples Directory - Ready-to-run example scripts
For SDK Developers
- Contributing Guide - Start here!
- Setup Guide - First-time environment setup
- Windows Setup Guide - Step-by-step guide for Windows users
- Workflow Guide - Day-to-day development workflow
- Signing Guide - GPG and DCO commit signing (required)
- Rebasing Guide - Keep your branch up-to-date
- Merge Conflicts Guide - Resolve conflicts
- Typing Guide - Python type hints
- Linting Guide - Code quality tools
- Security Analysis - Security analysis & vulnerability scanning
Hedera Network Resources
- Hedera Documentation
- Hedera Protobufs
- Get Testnet Account - Free testnet credentials
- Hedera Testnet Guide
Other SDKs
Running Tests
uv run pytest
For contributors: Tests run automatically via Hiero Solo Action when you push to a branch.
Learn more:
Community & Support
Get Help
- Discord: - Linux Foundation Decentralized Trust Discord (signed in users can use this direct link to the Python SDK Channel)
- General Hedera Support: - Hedera Developer Discord
- Issues: GitHub Issues
Stay Updated
- Blog: Hiero Blog
- Videos: LFDT YouTube Channel
- Community Calls: Hiero Calendar (Wednesdays, 2pm UTC)
⭐ Follow Us
If you find the Hiero Python SDK useful, here are three ways you can support the project and stay up-to-date on the official repository page: hiero-ledger/hiero-sdk-python.
- Star the Repository: Click Star to bookmark the project and show your support.
- Watch for Activity: Click Watch to set your notification level, ensuring you stay updated on new features and releases.
- Fork the Project: Click Fork to create your own copy, the first step for contributions.
Contributions
We welcome contributions! Whether you're:
- 🐛 Reporting bugs
- 💡 Suggesting features
- 📝 Improving documentation
- 💻 Writing code
Start here: CONTRIBUTING.md
Pull Request Reviews
We welcome community reviews on our PRs. Please use this link PR Review Guidelines to find a detailed guide on reviewing PRs.
License
This project is licensed under the Apache License 2.0.
Latest release: Check PyPI or GitHub Releases
Release files for hiero-sdk-python 0.2.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hiero_sdk_python-0.2.10.tar.gz | 742.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hiero_sdk_python-0.2.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.7 MB
Release files / hiero_sdk_python-0.2.10.tar.gz
| Download URL | hiero_sdk_python-0.2.10.tar.gz |
|---|---|
| Size | 742.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
014020160b61c463b0a48150f66e129e54dca1025baec39183d38ed67b2682b5
|
|
BLAKE2b-256 checksum How to use checksums |
e5e7c8b9ce0899a0f1c051fa489b594842ec04a077120ae2d1124ec2780e19f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 30, 2026.
Transparency logRelease files / hiero_sdk_python-0.2.10-py3-none-any.whl
| Download URL | hiero_sdk_python-0.2.10-py3-none-any.whl |
|---|---|
| Size | 943.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86f645c885d7dd3dcd617a2a68d9da549fa043625319ec5d15b78700fb4b1b7a
|
|
BLAKE2b-256 checksum How to use checksums |
af4988286c4744cc644c674efd60df03d13fe5f5b81957785cc70f50101493b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 30, 2026.
Transparency log