Skip to main content

CLI for autogenerating files from templates

Project description

kiln

PyPI Documentation

Pre-alpha — kiln is under active development. APIs may change between releases. Feedback and contributions are welcome.

CLI for autogenerating files from templates.


Install

pip install kiln-generator  # or: uv add kiln-generator

Optional extras:

pip install 'kiln-generator[files]'  # adds boto3 for S3 uploads

Targets

kiln-generator ships four targets, all driven by the generic foundry CLI:

  • be — FastAPI/SQLAlchemy backend codegen.
  • be_root — one-shot bootstrap for a be-driven project.
  • fe — React/TypeScript frontend codegen (TS types + React Query hooks from an OpenAPI spec).
  • fe_root — one-shot bootstrap for a fe-driven project.

Quick start

foundry --help
foundry generate --target be --config config/project.jsonnet

Documentation

Full documentation is available at roddarjohn.github.io/kiln.

Development

Prerequisites: uv, just, and jsonnetfmtbrew install go-jsonnet on macOS, sudo apt install jsonnet on Debian/Ubuntu.

# Clone and install
git clone https://github.com/<username>/kiln.git
cd kiln
uv sync --all-groups

# Install pre-commit hooks (ruff + jsonnetfmt run on every commit)
just setup

# Run checks
just lint          # ruff check + format
just type-check    # zuban check src/
just dev-test      # pytest (fast, local dev)
just test          # tox (full isolation)
just docs          # build Sphinx HTML docs

License

See LICENSE for details.

Future

  • Authentication extensions

    • e.g. different permissions
    • e.g. permission actions
    • e.g. filter list endpoints
    • should be rego I'd think
  • emails / texts / pdfs / spreadsheets?

    • is FE
  • websockets?

  • multi-tenant?

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

kiln_generator-0.9.0.tar.gz (113.8 kB view details)

Uploaded Source

Built Distribution

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

kiln_generator-0.9.0-py3-none-any.whl (164.2 kB view details)

Uploaded Python 3

File details

Details for the file kiln_generator-0.9.0.tar.gz.

File metadata

  • Download URL: kiln_generator-0.9.0.tar.gz
  • Upload date:
  • Size: 113.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kiln_generator-0.9.0.tar.gz
Algorithm Hash digest
SHA256 7e1fa8800adda80c98e351eff593960262d9c28377c8c3871cf3174ed2dc8583
MD5 ff7ad1906e8ee299c7725e670381082e
BLAKE2b-256 724e4df9bb26ad10737376dbc230a78bd4977a5f69625ba14757ae83c216f752

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiln_generator-0.9.0.tar.gz:

Publisher: publish.yml on roddarjohn/kiln

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

File details

Details for the file kiln_generator-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: kiln_generator-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 164.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kiln_generator-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 362dfae9299c9ef9fcd51aa9c873ff17632c016d3702a79af5d04b8c5eba903d
MD5 f1b8ca71aca721439dce1762f5ed3280
BLAKE2b-256 29a94512f7538c2a42e3171ba7fbdbfbcea703a009c6ac25d3bcf13017033183

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiln_generator-0.9.0-py3-none-any.whl:

Publisher: publish.yml on roddarjohn/kiln

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