Skip to content

Commit

Permalink
reverting to shell script, fixing naming inconsistencies
Browse files Browse the repository at this point in the history
Signed-off-by: nadine.loepfe <[email protected]>
  • Loading branch information
nadineloepfe committed Jan 31, 2025
1 parent 544e12e commit 6ddc91d
Show file tree
Hide file tree
Showing 84 changed files with 325 additions and 419 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: pip install build pdm-backend

- name: Generate Protobuf (if needed)
run: uv run generate_proto.py
run: bash ./generate_proto.sh

- name: Build wheel and sdist
run: python -m build
Expand All @@ -32,4 +32,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: uv sync --all-extras --dev

- name: Generate Proto Files
run: uv run generate_proto.py
run: bash ./generate_proto.sh

- name: Prepare Hedera Solo
id: solo
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ myenv/

# Generated protobuf files
.protos
src/hedera_sdk_python/hapi
src/hiero_sdk_python/hapi

# VS Code settings
.vscode/
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The latest release of this SDK is published to PyPI. You can install it with:

```
pip install --upgrade pip
pip install hedera-sdk-python
pip install hiero_sdk_python
```

This will pull down a stable release along with the required dependencies.
Expand Down Expand Up @@ -72,8 +72,8 @@ Other installation methods can be found [here](https://docs.astral.sh/uv/getting
2. Clone this repository:

```bash
git clone https://github.com/nadineloepfe/hedera_sdk_python.git
cd hedera_sdk_python
git clone https://github.com/hiero-ledger/hiero_sdk_python.git
cd hiero-sdk-python
```

3. Install dependencies:
Expand All @@ -84,7 +84,7 @@ worry about managing multiple versions of python on your machine!

```bash
uv sync
uv run generate_proto.py
sh generate_proto.sh
```

To update to a newer version of the protobuf libraries, edit the `generate_proto.py` file and change the version number
Expand All @@ -96,13 +96,13 @@ and then rerun it.
For active development, you can install the repo in editable mode. That way, changes in your local code are immediately reflected when you import:

```
git clone https://github.com/nadineloepfe/hedera_sdk_python.git
cd hedera_sdk_python
git clone https://github.com/hiero-ledger/hiero-sdk-python.git
cd hiero-sdk-python
pip install --upgrade pip
pip install -e .
```

Now you can run example scripts like python `examples/account_create.py`, and it will import from your local hedera_sdk_python code.
Now you can run example scripts like python `examples/account_create.py`, and it will import from your local hiero_sdk_python code.


## Environment Setup
Expand Down
2 changes: 1 addition & 1 deletion examples/account_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
Network,
AccountId,
Expand Down
2 changes: 1 addition & 1 deletion examples/query_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import time
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Network,
Client,
AccountId,
Expand Down
2 changes: 1 addition & 1 deletion examples/query_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Network,
Client,
AccountId,
Expand Down
2 changes: 1 addition & 1 deletion examples/query_topic_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Network,
Client,
AccountId,
Expand Down
2 changes: 1 addition & 1 deletion examples/query_topic_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from datetime import datetime
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Network,
Client,
TopicMessageQuery,
Expand Down
2 changes: 1 addition & 1 deletion examples/token_associate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
AccountId,
PrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion examples/token_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
AccountId,
PrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion examples/token_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
AccountId,
PrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion examples/token_dissociate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
Network,
AccountId,
Expand Down
2 changes: 1 addition & 1 deletion examples/token_mint_fungible.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
AccountId,
PrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion examples/token_mint_non_fungible.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import json
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
AccountId,
PrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion examples/topic_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
AccountId,
PrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion examples/topic_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
AccountId,
PrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion examples/topic_message_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
AccountId,
PrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion examples/topic_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
AccountId,
PrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion examples/transfer_hbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
AccountId,
PrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion examples/transfer_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from dotenv import load_dotenv

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
AccountId,
PrivateKey,
Expand Down
107 changes: 0 additions & 107 deletions generate_proto.py

This file was deleted.

Loading

0 comments on commit 6ddc91d

Please sign in to comment.