Skip to main content

Scaffold a large, original enterprise-style monorepo (frontend, backend, db, migrations, apps, admin, crm, audit) from a name, org and website. Pure stdlib, no deps.

Project description

repogen

A pure-stdlib Python CLI that scaffolds a large, original enterprise-style monorepo from three answers: project name, organization name, and website.

It generates 4000+ files by default: frontend (web / admin / crm / mobile), multiple backend services, a database layer with per-entity migrations, shared SDK / UI / config packages, feature modules, infra (docker / k8s / terraform / CI), docs, and .env files (real + .example + dev + prod) at every level.

  • No network access. Nothing is downloaded or copied from the internet.
  • No third-party dependencies. Standard library only.
  • Original templates. Every emitted file is produced from templates authored inside this package — generic scaffolding, not code lifted from anywhere.
  • Any tech stack. Choose from several stacks; the generators dispatch to the right language and framework.

Install

cd repogen
pip install -e .        # exposes the `repogen` command
# or run without installing:
python -m repogen

Usage

Interactive (prompts for name, org, website, stack):

repogen

Non-interactive:

repogen \
  --name "Acme Cloud" \
  --org "Acme Inc" \
  --website "https://acme.example" \
  --stack fastapi-next-postgres \
  --output ./acme-cloud \
  --yes

Preview the file count without writing anything:

repogen --name Acme --org "Acme Inc" --website acme.example --dry-run --yes

List stacks:

repogen --list-stacks

Stacks

key backend frontend db
fastapi-next-postgres FastAPI Next.js Postgres
express-react-postgres Express React Postgres
django-vue-mysql Django Vue MySQL
nestjs-next-postgres NestJS Next.js Postgres

What gets generated

apps/         web · admin · crm · mobile clients (per-entity pages/screens)
services/     domain backend services (per-entity model/service/router/tests)
packages/     shared sdk · ui · config · pyshared · feature modules
db/           schema · per-entity migrations · seeds · alembic config
infra/        docker-compose · k8s manifests · terraform · nginx gateway
docs/         architecture · runbook · ADRs · OpenAPI stubs
.env*         real + example + development + production, at every level

Flags

flag purpose
--name project / product name
--org organization name
--website public URL
--stack one of the stacks above
--output -o output directory (default ./<slug>)
--target-files minimum file count (default 4000)
--dry-run count only, write nothing
--yes -y skip confirmation
--list-stacks print stacks and exit

Notes on secrets

Generated .env files contain locally-generated random secrets for development convenience. .env.example / .env.production ship placeholder values, and the generated .gitignore excludes real .env files from version control. Rotate before any real deployment.

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

fuck_repo-0.1.0.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

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

fuck_repo-0.1.0-py3-none-any.whl (46.8 kB view details)

Uploaded Python 3

File details

Details for the file fuck_repo-0.1.0.tar.gz.

File metadata

  • Download URL: fuck_repo-0.1.0.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for fuck_repo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5583bcd21d26b99cf0319fcc9db865eccab913bdd572d7b8d1e6378a1cfcfb79
MD5 c4fde1dc79093a8b8c76b0fc6c981462
BLAKE2b-256 4387ea839442c57fed33c610b69515741cbfcb5afe9789effe339a57181e43d2

See more details on using hashes here.

File details

Details for the file fuck_repo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fuck_repo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 46.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for fuck_repo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ce0be60c73eeb9c701813e9010feb46ad185cf280768496c035b9f596206c3d
MD5 536b0617d9a90fe6a58a04275263c82d
BLAKE2b-256 ff1e864e69f8e28314b8c105a26a8a1bec6bb20f580e47f5e9abe23750bfde81

See more details on using hashes here.

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