Skip to main content

Hiero SDK in Python

OpenSSF Scorecard CII Best Practices License Python

A Python SDK for interacting with the Hedera Hashgraph platform.

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

For SDK Developers

Hedera Network Resources

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

Stay Updated


⭐ 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

Metadata

Release files for hiero-sdk-python 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hiero-sdk-python 0.3.0
File Size Uploaded
hiero_sdk_python-0.3.0.tar.gz 785.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hiero-sdk-python 0.3.0
File Interpreter ABI Platform
hiero_sdk_python-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.7 MB

Release files / hiero_sdk_python-0.3.0.tar.gz

Download URL hiero_sdk_python-0.3.0.tar.gz
Size 785.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2cef479689c344b0c9d40d1135f825dd8930f9714a216c71682503edcbb10323
BLAKE2b-256 checksum
How to use checksums
e7b8c0cde40f0c88dbf1a9b904e221ac810aab9e9746ae8074ad6cf5f4024472
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 Oct 11, 2026.

Transparency log

Release files / hiero_sdk_python-0.3.0-py3-none-any.whl

Download URL hiero_sdk_python-0.3.0-py3-none-any.whl
Size 956.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e6d2f818e18ad7f739eb1e2c5d91bd63b3ddf91301153c2c87c4ba7d1e170ce
BLAKE2b-256 checksum
How to use checksums
0a553b248c1afc2b688b2ced77ed99f31c1e20bbf4cf8ad90cfe4e3feb023e23
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 Oct 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page