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.5

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.5
File Size Uploaded Provenance Actions
hero_sdk-0.16.5.tar.gz 83.9 kB Without provenance Details for hero_sdk-0.16.5.tar.gz

Built distribution (wheel)

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

Total release size: 130.6 kB

Release files / hero_sdk-0.16.5.tar.gz

Download URL hero_sdk-0.16.5.tar.gz
Size 83.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d0ae5449f51bffaa2612b9d334b28a9f34668fff9295f79cd57cd815612c8c6d
BLAKE2b-256 checksum
How to use checksums
a1180dd813a2428efa49c2aa66609f11c675f6b7c3cf7d844c8ab3b3251f31d8
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.5-py3-none-any.whl

Download URL hero_sdk-0.16.5-py3-none-any.whl
Size 46.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae40ced08ffff7bc4ac8c0ebe62f0409aedf5fda1760028d7be059035279c4a7
BLAKE2b-256 checksum
How to use checksums
9460650e5767c269cc2181dc36a9b0cf16484a5dc414baac00bede62590507be
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}

Security for hero-sdk 0.16.5

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