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.18.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.18.0
File Size Uploaded
opencomb-0.18.0.tar.gz 78.3 kB Details

Built distribution (wheel)

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

Total release size: 162.7 kB

Release files / opencomb-0.18.0.tar.gz

Download URL opencomb-0.18.0.tar.gz
Size 78.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f801636f056a8d28b371736153790e5f9764cb559e0256bd26cc71d50de61960
BLAKE2b-256 checksum
How to use checksums
a649bdebeb69ad366a47f345ccd4e8e96412621456a877451d78b6d5660d15f4
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.18.0-py3-none-any.whl

Download URL opencomb-0.18.0-py3-none-any.whl
Size 84.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0b0e64e1744267ab85a621288ef31ce721f2ddd10cc0fe52cecf60f45f6d47d
BLAKE2b-256 checksum
How to use checksums
1366fa9aecfe60238f159658244764dcccbda732e0be8f93e421bc5414e7468c
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

This release

0.18.0 This release

2 release files

0.17.2

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