Skip to main content

Python client for HERO

Project description

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:

./run_test.sh

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hero_sdk-0.15.1.tar.gz (80.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hero_sdk-0.15.1-py3-none-any.whl (44.6 kB view details)

Uploaded Python 3

File details

Details for the file hero_sdk-0.15.1.tar.gz.

File metadata

  • Download URL: hero_sdk-0.15.1.tar.gz
  • Upload date:
  • Size: 80.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.3

File hashes

Hashes for hero_sdk-0.15.1.tar.gz
Algorithm Hash digest
SHA256 5f68af4a18daef6741a4818caa3b8d88e19aa09dbfc128a3ad4e1562ad9c6d92
MD5 8b163442a3d9d7e1421713b9cbf45108
BLAKE2b-256 d4bbd2fb1641d60b4027912c2cc10750cc61d3c3ed3933a8fdf22f774f065ce3

See more details on using hashes here.

File details

Details for the file hero_sdk-0.15.1-py3-none-any.whl.

File metadata

  • Download URL: hero_sdk-0.15.1-py3-none-any.whl
  • Upload date:
  • Size: 44.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.3

File hashes

Hashes for hero_sdk-0.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96da16bf5aa429264914b171b095bd2df165a2070d782b5603a523af244bb72e
MD5 b9f42bea67aac07a0aae214911843973
BLAKE2b-256 411e6df31f65ff3ada465b22e052b604bd1f70f4844ca78ef2945dd1522046c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page