Skip to main content

Hedera SDK in Python

Project description

hedera-sdk-py

Hedera SDK in Python

This is basically a python wrapper of Hedera SDK in Java.

Install

pip install hedera-sdk-py

How to Use

from hedera import PrivateKey
prikey = PrivateKey.generate()
print("Private key: {}".format(prikey.toString()))
print("Public key: {}".format(prikey.getPublicKey().toString()))

You must make sure JAVA_HOME is set to a JRE/JDK that's >=11. Do a echo $JAVA_HOME on Linux/MacOS or echo %JAVA_HOME% on Windows to confirm.

MacOS example:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home

Linux example:

export JAVA_HOME=/usr/lib/jvm/java-16-openjdk-amd64

Windows:

Type to search "advanced system", you should see "View Advanced System settings", click it, then click "Environment Variables..."

On Windows, if you get "no jvm dll found" error, you need to add %JAVA_HOME%/bin/server (i.e. C:\Program Files\Java\jdk-11.0.10\bin\server) to your path.

See examples for more example usages.

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

hedera-sdk-py-2.22.0.tar.gz (26.4 MB view details)

Uploaded Source

Built Distribution

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

hedera_sdk_py-2.22.0-py3-none-any.whl (26.4 MB view details)

Uploaded Python 3

File details

Details for the file hedera-sdk-py-2.22.0.tar.gz.

File metadata

  • Download URL: hedera-sdk-py-2.22.0.tar.gz
  • Upload date:
  • Size: 26.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for hedera-sdk-py-2.22.0.tar.gz
Algorithm Hash digest
SHA256 dce07955de1e436b76b865a9cc8627d7b547e2d5209bb3d393d896c27e13c0e0
MD5 9b80719f812eaeab4ca8523668cbc88b
BLAKE2b-256 76b462ff0d9bfabea7337dd5d213ce774d02c3a309a7f4cf9059e8bb4f931c3f

See more details on using hashes here.

File details

Details for the file hedera_sdk_py-2.22.0-py3-none-any.whl.

File metadata

  • Download URL: hedera_sdk_py-2.22.0-py3-none-any.whl
  • Upload date:
  • Size: 26.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for hedera_sdk_py-2.22.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d706fe9b727dfca85c478476a1ebbe01b906212fcc5f2d0987747cd6deea60f
MD5 7d6cb3e11245eeff9b43715985449533
BLAKE2b-256 959708fa0eda88bfb511d6a0fd8ad66f39b850e9f24b6d52395e0a379977bc31

See more details on using hashes here.

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