@@ -10,6 +10,9 @@ This is a Python SDK for interacting with the Hedera Hashgraph platform. It allo
1010## Table of Contents
1111
1212- [ Installation] ( #installation )
13+ - [ Installing from PyPI] ( #installing-from-pypi )
14+ - [ Installing from Source] ( #installing-from-source )
15+ - [ Local Editable Installation] ( #local-editable-installation )
1316- [ Environment Setup] ( #environment-setup )
1417- [ Running Tests] ( #running-tests )
1518- [ Usage] ( #usage )
@@ -31,7 +34,23 @@ This is a Python SDK for interacting with the Hedera Hashgraph platform. It allo
3134
3235## Installation
3336
34- 0 . Install ` uv ` :
37+ ### Installing from PyPI
38+
39+ The latest release of this SDK is published to PyPI. You can install it with:
40+
41+ ```
42+ pip install --upgrade pip
43+ pip install hedera-sdk-python
44+ ```
45+
46+ This will pull down a stable release along with the required dependencies.
47+
48+
49+ ### Installing from Source
50+
51+ You can also clone the repo and install dependencies using uv:
52+
53+ 1 . Install ` uv ` :
3554
3655` uv ` is an ultra-fast Python package and project manager. It replaces ` pip ` , ` pip-tools ` , ` pipx ` , ` poetry ` , ` pyenv ` ,
3756` virtualenv ` , and more.
@@ -48,27 +67,42 @@ brew install uv
4867
4968Other installation methods can be found [ here] ( https://docs.astral.sh/uv/getting-started/installation/ ) .
5069
51- 1 . Clone this repository:
70+ 2 . Clone this repository:
5271
5372``` bash
5473git clone https://github.com/nadineloepfe/hedera_sdk_python.git
5574cd hedera_sdk_python
5675```
5776
58- 2 . Install dependencies:
77+ 3 . Install dependencies:
5978
6079One of the really nice features of ` uv ` is that it will download and manage the correct version of python and build
6180with the correct version of python based on the ` .python-version ` file in the project. This means you don't have to
6281worry about managing multiple versions of python on your machine!
6382
6483``` bash
6584uv sync
66- ./generate_proto.sh
85+ ./generate_proto.sh # if needed
6786```
6887
6988To update to a newer version of the protobuf libraries, edit the ` generate_proto.sh ` file and change the version number
7089and then rerun it.
7190
91+
92+ ### Local Editable Installation
93+
94+ For active development, you can install the repo in editable mode. That way, changes in your local code are immediately reflected when you import:
95+
96+ ```
97+ git clone https://github.com/nadineloepfe/hedera_sdk_python.git
98+ cd hedera_sdk_python
99+ pip install --upgrade pip
100+ pip install -e .
101+ ```
102+
103+ Now you can run example scripts like python ` examples/account_create.py ` , and it will import from your local hedera_sdk_python code.
104+
105+
72106## Environment Setup
73107
74108Before using the SDK, you need to configure your environment variables for the operator account and other credentials.
0 commit comments