Skip to main content

code0-hercules (Python)

Python SDK for the hercules action runner — the counterpart to the TypeScript @code0-tech/hercules package. Define data types, functions, and events, and connect them to aquila.

Install

pip install code0-hercules

Requirements:

  • Python 3.10+
  • Node.js — data-type schemas are converted to/from TypeScript via a bundled Node helper (hercules/_tsgen). Its npm dependencies are installed automatically on first use.

Develop

This project uses uv.

uv sync                                   # create .venv + install (incl. dev deps)
npm ci --prefix hercules/_tsgen           # install the Node schema helper
uv run pytest                             # run the tests

The runnable example lives in examples/simple-example-py.

Built-in definitions

The built-in data types / functions in hercules/definitions/ are generated (not committed) from a code0-definition release:

uv run python scripts/build_definitions.py --version def-0.0.35

Build & release

Packages are built with uv build and published to PyPI from CI:

  • build.yml builds and tests the package on every push.
  • publish.yml runs on a pushed git tag: it sets the package version from the tag, regenerates the definitions, builds, and publishes to PyPI via trusted publishing (OIDC — no token).

To cut a release, push a PEP 440 version tag (e.g. 0.1.0):

git tag 0.1.0 && git push origin 0.1.0

The code0-definition release used for the built-in definitions is controlled by the HERCULES_DEFINITIONS_VERSION repository variable (default def-0.0.35).

Build locally:

uv build          # -> dist/*.whl and dist/*.tar.gz

Download files

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

Source Distribution

code0_hercules-1.4.5.tar.gz (68.1 kB view details)

Uploaded Source

Built Distribution

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

code0_hercules-1.4.5-py3-none-any.whl (169.2 kB view details)

Uploaded Python 3

File details

Details for the file code0_hercules-1.4.5.tar.gz.

File metadata

  • Download URL: code0_hercules-1.4.5.tar.gz
  • Upload date:
  • Size: 68.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for code0_hercules-1.4.5.tar.gz
Algorithm Hash digest
SHA256 f22cf6a9b83fc757ebb8308e48a857c386d0816e2c82593964554302369401ad
MD5 5175bf5bccf6d3e8dc2bbdbb1fd2d432
BLAKE2b-256 f8c47d1631b86671f10a25903e4692c779d8e8166feb826dae72e96b5f8a9374

See more details on using hashes here.

File details

Details for the file code0_hercules-1.4.5-py3-none-any.whl.

File metadata

  • Download URL: code0_hercules-1.4.5-py3-none-any.whl
  • Upload date:
  • Size: 169.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for code0_hercules-1.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8f7e7b042b74be2964b593d56f4c57fb950c86eee65f1d325750a8c1da9f6a9d
MD5 83b11aef59f0484165f7d5818355da8b
BLAKE2b-256 2aa377c93d29c15522cc381851e5becb937090ad57d77832592a9b00d044d5c3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.4.5 This release

2 files

1.4.4

2 files

1.4.3

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.0

2 files

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