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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hedera_sdk_py-2.31.0.tar.gz
.
File metadata
- Download URL: hedera_sdk_py-2.31.0.tar.gz
- Upload date:
- Size: 23.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf8a417cd5db720669a58134c884d7865870028951e78aa4cd35851613d1a9a7 |
|
MD5 | 9bc92d22fc7b824b7e180a9864648f50 |
|
BLAKE2b-256 | 0ba2177d35354d7d588e01ba74f79b44c748d1e7e3d659cd7f2638b8f145fc8f |
File details
Details for the file hedera_sdk_py-2.31.0-py3-none-any.whl
.
File metadata
- Download URL: hedera_sdk_py-2.31.0-py3-none-any.whl
- Upload date:
- Size: 23.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcc14330c8632bf03859af2f29130673db0d14c071120b3b6fabb77d866127a8 |
|
MD5 | a9eb660bfd2a88294c98b5233a0f496e |
|
BLAKE2b-256 | bdc94a9ebf8a24e102628063d6817bd7f786a62f13909648ab1acc5f8ebe01ef |