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

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.38).

Build locally:

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

Metadata

Release files for code0-hercules 1.7.2

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

Source distribution (sdist)

Source distribution for code0-hercules 1.7.2
File Size Uploaded Provenance Actions
code0_hercules-1.7.2.tar.gz 74.4 kB Without provenance Details for code0_hercules-1.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for code0-hercules 1.7.2
File Interpreter ABI Platform Actions
code0_hercules-1.7.2-py3-none-any.whl Python 3 none any Details for code0_hercules-1.7.2-py3-none-any.whl

Total release size: 249.4 kB

Release files / code0_hercules-1.7.2.tar.gz

Download URL code0_hercules-1.7.2.tar.gz
Size 74.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e568714209c6cba58493737e03f907cfff5dd70ecd0ea4122d9d75fc1d5d6782
BLAKE2b-256 checksum
How to use checksums
2e003d235b4e74498912c9e5663c88fe42059d1df2ad387f57292a18062b4816
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / code0_hercules-1.7.2-py3-none-any.whl

Download URL code0_hercules-1.7.2-py3-none-any.whl
Size 174.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65fc8b6eaabb88cea0269938d177c1400283b26f2d1c072b1b4fdf059c076d2b
BLAKE2b-256 checksum
How to use checksums
330d3f6c9fb2ecacee6ca608d8f54e335fca1b453b7f66cc9efbf3b9b062aef3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for code0-hercules 1.7.2

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