Skip to main content

OpenComb

Developer Swiss Army Knife – combine, build, drill, PRT language, 56+ templates, PyRunner, stacks, wizard, OCC SSH, and a full Python API.

PyPI CI License: MIT

OpenComb Logo

pip install opencomb

Highlights (v0.17.0)

Area CLI Python API
Templates templates · new list_templates() · apply_template() · new_project()
Wizard / Stacks wizard · stacks · stack · add run_wizard() · apply_stack() · add_component()
Code / Config combine · merge · env combine() · merge_configs() · merge_env()
Combos / Prompts generate · prompt · template generate_combos() · build_prompt() · render_template()
Project init · tree · bump · syscheck ProjectHelper · doctor()
Packages pak add PackageManager
Search / Stats search · todos · stats search() · todos() · stats()
SSH occ SSHTarget · occ_connect()
Build / Drill build · drill interactive_build() · start_drill()

Full API docs: docs/API.md


Python API – quick start

import opencomb

# Version
print(opencomb.__version__)

# Combine Python sources
code = opencomb.combine(["a.py", "b.py"])
code = opencomb.combine(snippets=["x = 1", "print(x)"])

# Merge configs / env
cfg = opencomb.merge_configs(["base.yaml", "local.yaml"])
env = opencomb.merge_env([".env", ".env.local"])

# Combinatorial parameter sets
rows = opencomb.generate_combos(
    {"lr": [0.001, 0.01], "batch": [16, 32]},
    method="pairwise",
)

# Jinja2 + prompts
html = opencomb.render_template("Hi {{ name }}!", data={"name": "Ada"})
prompt = opencomb.build_prompt(
    system="You are a code reviewer.",
    user="Review this PR.",
)

# Scaffold a project
path = opencomb.new_project("my-api", template="fastapi")

# Search / TODOs / stats / doctor
hits = opencomb.search("TODO", ".", regex=False)
items = opencomb.todos(".")
st = opencomb.stats(".")
report = opencomb.doctor(".")
print(report["score"], report["grade"])

Main classes

from opencomb import (
    CodeCombiner, ConfigMerger, EnvMerger,
    CombinatorialGenerator, PromptCombiner, TemplateRenderer,
    RecipeRunner, PackageManager, ProjectHelper, Checker,
    Searcher, TodoExtractor, ProjectStats,
    list_templates, apply_template, apply_stack, add_component,
)

# Example: class usage
text = CodeCombiner().combine_files(["src/a.py", "src/b.py"])
data = ConfigMerger().merge_files(["cfg/base.yaml", "cfg/prod.yaml"])
PackageManager().add(["requests"])
ProjectHelper().init("demo", description="Demo package")

See docs/API.md for every function, method, and return type.


CLI quick start

# List all 56 templates
opencomb templates

# Create a FastAPI project
opencomb new fastapi my-api
cd my-api && pip install -e .

# Interactive wizard (stacks)
opencomb wizard

# Apply a full stack
opencomb stack api-full ./my-full-api

# Add a component
opencomb add dockerfile .
opencomb add makefile .

# Project doctor
opencomb syscheck

# SSH connector
opencomb occ user@example.com

PyRunner

Run Python in the browser (Pyodide). Packages only via packages.json (no GUI).

opencomb new pyrunner my-runner
cd my-runner && python -m http.server 8080

Stacks

Stack Description
api-full FastAPI + JWT + SQLModel + Docker + CI
cli-pro Typer + Rich + YAML config + tests
ml-api ML model serving API
web-full Streamlit + FastAPI
discord-bot Discord bot + worker
library Publishable library + docs + CI
data-science Notebooks + Polars + Streamlit
monorepo Multi-package layout
minimal Bare package
pyrunner Browser Python runner

Components

dockerfile · makefile · precommit · devcontainer · gitignore · compose · pytest · github-ci · readme

PRT language

opencomb prt                  # REPL
opencomb prt examples/prt/hello.prt

Development

git clone https://github.com/SlabyLol/OpenComb.git
cd OpenComb
pip install -e ".[dev]"
pytest

License

MIT © DarkFox Co.

Release files for opencomb 0.17.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 opencomb 0.17.2
File Size Uploaded
opencomb-0.17.2.tar.gz 67.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opencomb 0.17.2
File Interpreter ABI Platform
opencomb-0.17.2-py3-none-any.whl Python 3 none any Details

Total release size: 142.2 kB

Release files / opencomb-0.17.2.tar.gz

Download URL opencomb-0.17.2.tar.gz
Size 67.7 kB
Tags Source
SHA-256 checksum
How to use checksums
581fa87a3c6a1c04cfeb1dc497ddf212faa42aec465bc9c90f25c1420e054c65
BLAKE2b-256 checksum
How to use checksums
1f986d79b60f6b52c39c900aa621138ddc28734b5d26b1304bcccf3bf5ba20cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / opencomb-0.17.2-py3-none-any.whl

Download URL opencomb-0.17.2-py3-none-any.whl
Size 74.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbea1e50f1d1bfc436d9285b6944da0eb5a40b5d561faedf8f2a61d03d9facec
BLAKE2b-256 checksum
How to use checksums
fd5d5ab7a1414d8c11c3657e155cf6e5d60408a452b79e7ea78f201c54f6278b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release history Release notifications | RSS feed

0.18.0

2 release files

This release

0.17.2 This release

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.11.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.5.0

2 release files

0.4.0

2 release 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