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

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.0
File Size Uploaded
opencomb-0.17.0.tar.gz 65.7 kB Details

Built distribution (wheel)

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

Total release size: 137.4 kB

Release files / opencomb-0.17.0.tar.gz

Download URL opencomb-0.17.0.tar.gz
Size 65.7 kB
Tags Source
SHA-256 checksum
How to use checksums
01db8de95b07252e1fcf0f51a685b28a08c090175dfa54e6f68f13238bd21d0b
BLAKE2b-256 checksum
How to use checksums
1ede1f2ae4ec221c99664ec5296329cfb0c8a46d27439cfcb4b51594dc0d1450
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.0-py3-none-any.whl

Download URL opencomb-0.17.0-py3-none-any.whl
Size 71.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf12f2a153047d4d6b410652955e546bba2a21c9e679ea668ad2b67674cad213
BLAKE2b-256 checksum
How to use checksums
142338f6619c879bcfa65b26ce00c42f3003c6107834bb9171c06dc308dcd4d1
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

0.17.2

2 release files

This release

0.17.0 This release

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