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.1
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.1.tar.gz | 81.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hero_sdk-0.16.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 126.1 kB
Release files / hero_sdk-0.16.1.tar.gz
| Download URL | hero_sdk-0.16.1.tar.gz |
|---|---|
| Size | 81.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b459fb5b4449b0bdc0930b320dfa9cab5eaebb4b8c72454dbdd930498b2a353
|
|
BLAKE2b-256 checksum How to use checksums |
db5f96ce9a5a104efba0101ab3ed60175d050c7ff6c40cc6df4d2656825cd256
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.3
|
Release files / hero_sdk-0.16.1-py3-none-any.whl
| Download URL | hero_sdk-0.16.1-py3-none-any.whl |
|---|---|
| Size | 45.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
867ccadd06597265c21789817f6f0d29acd8fd6b0e3f7cb267f57bbb586b73be
|
|
BLAKE2b-256 checksum How to use checksums |
dc600dde3e283241005701a23db6ced451deef96a19418bb2a59bc76a6783132
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.3
|