Skip to main content

A Hiero SDK in pure Python

Project description

Hiero SDK in Python

OpenSSF Scorecard CII Best Practices License Python

A Python SDK for interacting with the Hedera Hashgraph platform.

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

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

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

hiero_sdk_python-0.2.7.tar.gz (731.8 kB view details)

Uploaded Source

Built Distribution

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

hiero_sdk_python-0.2.7-py3-none-any.whl (942.9 kB view details)

Uploaded Python 3

File details

Details for the file hiero_sdk_python-0.2.7.tar.gz.

File metadata

  • Download URL: hiero_sdk_python-0.2.7.tar.gz
  • Upload date:
  • Size: 731.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for hiero_sdk_python-0.2.7.tar.gz
Algorithm Hash digest
SHA256 ddaad2af849438ea0aadab18a3a2cab016b01abea10a5f0776917edaebc205b7
MD5 27b49a7fc0f98ef8266ebd7757e0d000
BLAKE2b-256 7d98429fa7a3facc730b5bba3d0b980c205d34de62dd6a53c254afc95fa42211

See more details on using hashes here.

Provenance

The following attestation bundles were made for hiero_sdk_python-0.2.7.tar.gz:

Publisher: publish.yml on hiero-ledger/hiero-sdk-python

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

File details

Details for the file hiero_sdk_python-0.2.7-py3-none-any.whl.

File metadata

File hashes

Hashes for hiero_sdk_python-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8deca1ea1b6a12eec7189fce09cdda1b1d6565cc6b7d2ef1fdc9ab321a6ae5fe
MD5 689103f8274ce1e38535bcccfed16cb1
BLAKE2b-256 c363b33a2f8eeac81aa17b166dfa977302cff1a200f66e3e1740e3904d490d9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for hiero_sdk_python-0.2.7-py3-none-any.whl:

Publisher: publish.yml on hiero-ledger/hiero-sdk-python

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