Skip to main content

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 main
    • git 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

Will be added in future.

In the mean time, 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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hero-sdk 0.16.4
File Size Uploaded Provenance Actions
hero_sdk-0.16.4.tar.gz 83.9 kB Without provenance Details for hero_sdk-0.16.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hero-sdk 0.16.4
File Interpreter ABI Platform Actions
hero_sdk-0.16.4-py3-none-any.whl Python 3 none any Details for hero_sdk-0.16.4-py3-none-any.whl

Total release size: 130.6 kB

Release files / hero_sdk-0.16.4.tar.gz

Download URL hero_sdk-0.16.4.tar.gz
Size 83.9 kB
Tags Source
SHA-256 checksum
How to use checksums
be5f2f406e2182b4bdc81f6f371ee88e11d3655f288ba854b6853b43218f1aaa
BLAKE2b-256 checksum
How to use checksums
870aa2186ff8e74aef3e7ebc4bbdfb56d5cd593940a7fa91d33ae1769dcf7a40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.12

Release files / hero_sdk-0.16.4-py3-none-any.whl

Download URL hero_sdk-0.16.4-py3-none-any.whl
Size 46.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2df90ae8f82a6b112fd1cc1204558c388e99563b8947632c919958569225a49b
BLAKE2b-256 checksum
How to use checksums
a1d12ee0756a9e0768ee9c1beae0a07236be550aa8945c154428695e12c6ea3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.12

Security for hero-sdk 0.16.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page