Skip to main content

Full-stack Python + React framework for building applications with workflows, tables, UIs, and LLM integration.

Project description

hof-engine

Full-stack Python + React framework for building applications with workflows, database tables, UIs, and LLM integration -- all defined as code.

Features

  • Tables: Define database schemas as Python classes with auto-generated CRUD APIs
  • Functions: Backend operations exposed as API endpoints and CLI commands
  • Flows: Workflow DAGs with parallel execution, LLM nodes, and human-in-the-loop
  • UIs: Native React components with hot reload via Vite
  • Cron Jobs: Scheduled tasks with Celery Beat
  • CLI: Full CLI access to all features
  • Admin Dashboard: Visual flow viewer, table browser, execution history, and logs
  • LLM Integration: First-class support via llm-markdown with structured outputs

Quick Start

pip install hof-engine
hof new project my-app
cd my-app

Define a table:

# tables/task.py
from hof import Table, Column, types

class Task(Table):
    title = Column(types.String, required=True)
    done = Column(types.Boolean, default=False)

Define a function:

# functions/greet.py
from hof import function

@function
def greet(name: str) -> dict:
    return {"message": f"Hello, {name}!"}

Define a flow:

# flows/onboarding.py
from hof import Flow

onboarding = Flow("onboarding")

@onboarding.node
def create_task(user_name: str) -> dict:
    return {"task": f"Welcome {user_name}"}

@onboarding.node(depends_on=[create_task])
def notify(task: str) -> dict:
    return {"notified": True}

Run:

hof db migrate
hof dev

Requirements

  • Python 3.11+
  • Node.js 18+ (for React UI)
  • PostgreSQL
  • Redis

Documentation

See the docs/ directory:

Ecosystem

hof-engine is part of the bithof platform:

Repo Role
hof-engine (this repo) Core framework (pip package)
hof-components Reusable modules and templates, copied via hof add
hof-os Agency operations: deployment, provisioning, billing, design system generation
design-system-<customer> Per-customer design tokens + Tailwind theme (git submodule in project repos)
customer-acme-test Example customer project

For application examples, see hof-components/docs/examples/.

License

MIT

Releasing to PyPI

This repository is configured for Trusted Publishing via GitHub Actions:

  • .github/workflows/publish.yml for PyPI

  • .github/workflows/publish-testpypi.yml for TestPyPI

  • The repository can stay private.

  • No PYPI_TOKEN secret is required.

  • Publishing to PyPI happens when a GitHub Release is published (or manually via workflow dispatch).

  • Publishing to TestPyPI is manual via workflow dispatch.

One-time setup in your PyPI account:

  1. Go to PyPI Trusted Publishers.
  2. Add a publisher with:
    • PyPI project name: hof-engine
    • Owner/repo: your GitHub repo for this project
    • Workflow: publish.yml (filename only)
    • Environment: pypi
  3. In GitHub, create an environment named pypi (recommended to require manual approval).

Optional setup for TestPyPI:

  1. Go to TestPyPI Trusted Publishers.
  2. Add a publisher with:
    • TestPyPI project name: hof-engine
    • Owner/repo: your GitHub repo for this project
    • Workflow: publish-testpypi.yml (filename only)
    • Environment: testpypi
  3. In GitHub, create an environment named testpypi.

Release flow:

  1. Bump/update code as needed and push to default branch.
  2. Create and push a git tag like v0.1.1 (git tag v0.1.1 && git push origin v0.1.1).
  3. The workflow builds and uploads the package to PyPI under your account/project ownership.
  4. Optional: also publish a GitHub Release for changelog/visibility.

Manual publish options:

  • Publish to PyPI now (no release): run the Publish to PyPI workflow via GitHub Actions Run workflow.
  • Publish to TestPyPI: run the Publish to TestPyPI workflow via GitHub Actions Run workflow.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

hof_engine-0.1.4.tar.gz (276.2 kB view details)

Uploaded Source

Built Distribution

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

hof_engine-0.1.4-py3-none-any.whl (265.3 kB view details)

Uploaded Python 3

File details

Details for the file hof_engine-0.1.4.tar.gz.

File metadata

  • Download URL: hof_engine-0.1.4.tar.gz
  • Upload date:
  • Size: 276.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hof_engine-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4783202f1d5aa3daf36830a117e4dd946e26516e724ddf9eddf5e95ac635c13e
MD5 3d5cb1ed1b50fb146eb409c9dab59b0f
BLAKE2b-256 dfc7c89bf88d0c1a7f3ccc40c0f1cd31d91ecf9f1e217435ad27a84aed43c7f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for hof_engine-0.1.4.tar.gz:

Publisher: publish.yml on jhoetter/hof-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hof_engine-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: hof_engine-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 265.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hof_engine-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2f78360b85061c2cbb35f856b4dd1da8918bd955d155400d2a7eabec678c09eb
MD5 1af14e19e64cb316636f17c2273883bd
BLAKE2b-256 5f019b8ed6a547e078829bbe26b4fb309fd2596237fdb61efefe4eb435a1d43d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hof_engine-0.1.4-py3-none-any.whl:

Publisher: publish.yml on jhoetter/hof-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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