HERO Python SDK
This is the Python SDK for HERO.
Installation
The HERO team recommends using uv to install and manage project dependencies.
Using uv
uv add hero-sdk
Using pip
pip install hero-sdk
Development Installation and Release
First, clone this repo locally. Then install dependencies and pre-commit hooks:
uv sync
uv run pre-commit install
To run the tests:
Export test machine client credentials:
export HERO_ENV="dev"
export HERO_PROJECT="************"
export HERO_CLIENT_ID="************"
export HERO_CLIENT_SECRET="************"
Run:
uv run pytest test/
To link the local HERO codebase into a consuming project for feature development:
- Checkout the target branch in this repo
- In your consuming project, run
uv add --editable THE-PATH-TO-THE-NEWLY-CLONED-HERO-REPO
Releasing a New Version
Once development is complete on a given feature/bugfix/etc, pleaes do the following to tag a new release.
- Update the version in
pyproject.toml. - Update the version in the Installation section(s) in the
README.md(this file). - Add and commit the changes made in the above two steps.
- Perform a non fast-forward the working branch into main
git checkout maingit merge --no-ff THE-BRANCH-NAME-YOU-ARE-MERGING.
- Tag the main branch with the new version via
git tag THE-NEW-VERSION-NUMBER - Push with tags
git push && git push --tags
Usage
You need to have the following environment variables defined.
export HERO_ENV=["dev", "stage", "prod"]
export HERO_PROJECT="aeroportal-app"
export HERO_CLIENT_ID="*******************************"
export HERO_CLIENT_SECRET="*******************************"
Examples
Please check out the HERO examples.
Additionally, the tests in the test directory of this repo may also prove useful for basic usage examples.
SWR 26-024
Metadata
Release files for hero-sdk 0.16.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hero_sdk-0.16.2.tar.gz | 81.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hero_sdk-0.16.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 126.3 kB
Release files / hero_sdk-0.16.2.tar.gz
| Download URL | hero_sdk-0.16.2.tar.gz |
|---|---|
| Size | 81.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
883161c902fce3d33d626818798f2ffd10ae71759b133211970c09685e9b4077
|
|
BLAKE2b-256 checksum How to use checksums |
2c60e6611299071bf68d8106702062d9695e44f5df8c815abe1a0409adcf8297
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / hero_sdk-0.16.2-py3-none-any.whl
| Download URL | hero_sdk-0.16.2-py3-none-any.whl |
|---|---|
| Size | 45.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62b34546efe9414d0f5bcc6c32f0c7146b693fdedeeff9828bf593add7e03cdb
|
|
BLAKE2b-256 checksum How to use checksums |
d87f5cbb01a3456e43f9df90ccb454907eca41c5df34bbb28e290e61327c8ea0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|