Skip to main content

Monorepo Factory

Monorepo Factory is a command-line tool designed to streamline the process of setting up repositories and submodules based on a TOML configuration file. It automates the creation of monorepos, allowing you to define complex repository structures in a simple and declarative manner.

Features

  • Automated Repository Creation: Generate multiple repositories with predefined settings.
  • Submodule Support: Easily configure and include submodules within your repositories.
  • Pattern Matching: Apply patterns to match and configure repositories dynamically.
  • Customizable Initialization: Initialize repositories with custom READMEs and other initial files.

Installation

Monorepo Factory can be installed using pipx, which allows you to run Python applications in isolated environments. To install pipx and Monorepo Factory, follow these steps:

# Install pipx if it's not already installed
python3 -m pip install --user pipx
python3 -m pipx ensurepath
# Install Monorepo Factory using pipx
pipx install monorepo-factory

Usage

To use Monorepo Factory, you need to have a TOML configuration file that defines the structure of your repositories and any patterns or submodules you want to include.

# Run Monorepo Factory with the path to your TOML configuration file
monorepo_factory PATH_TO_TOML_FILE

For detailed usage instructions, you can use the --help flag:

$ poetry run python monorepo_factory --help

 Usage: monorepo_factory [OPTIONS] TOML_FILE

 Main function to set up repositories and submodules from a TOML configuration file.

╭─ Arguments ────────────────────────────────────────────╮
│ *    toml_file      TEXT  [default: None] [required]   │
╰────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────╮
│ --help          Show this message and exit.            │
╰────────────────────────────────────────────────────────╯

Configuration

Your TOML configuration file should define the repositories, submodules, and any patterns that you want to apply. Here's an example structure of what the TOML file might look like:

# Define repositories and their properties
[[repo]]
name = "main-repo"
description = "This is the main repository."
# Define submodules for a repository
[[repo.subrepos]]
name = "submodule-1"
path = "libs/submodule-1"
# Define patterns to apply settings to repositories matching a pattern
[[pattern]]
pattern = "service-"
description = "Services repository pattern."

Contributing

Contributions to Monorepo Factory are welcome! Please read the CONTRIBUTING.md file for guidelines on how to contribute to this project.

License

Monorepo Factory is released under the MIT License. See the LICENSE file for more information.

Metadata

Release files for monorepo-factory 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for monorepo-factory 1.0.1
File Size Uploaded Provenance
monorepo_factory-1.0.1.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for monorepo-factory 1.0.1
File Interpreter ABI Platform
monorepo_factory-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / monorepo_factory-1.0.1.tar.gz

Download URL monorepo_factory-1.0.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ef8c50865a1c82f4dc972c2d7b3fc80a38a2f7387452ba7d894b29cc61b67e41
BLAKE2b-256 checksum
How to use checksums
8c91bb92b9d28e0b531a5675aa46dc108c1220537bb85c0bf0ebf2abea720635
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / monorepo_factory-1.0.1-py3-none-any.whl

Download URL monorepo_factory-1.0.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d278a0f813b337c3b14cfc64c12b25552b5d7ec611c723166763bf2e8af3e43
BLAKE2b-256 checksum
How to use checksums
be0c85f6974ac1b4b732ddd13f27b71368d2b29d2b163bfb409e14269b18cb17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for monorepo-factory 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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