Skip to main content

repopy

A highly modular, cross-platform Python CLI scaffolding tool and library designed to automate the initial configuration of local Python developer workspaces and remote Python repository deployment.

Static Badge    Python Versions    License: MIT


🌟 Key Features

  • Local Scaffolding (repopy local): Instantly generates standardized directory trees, configures automated multi-line .gitignore presets, and initializes clean local Git repositories.

  • Remote Automation (repopy clone): Downloads remote repositories, parses project structures, and automatically updates localized environment constraints.

  • Isolated Virtual Environments: Automatically builds localized .venv footprints using Python's native compilation layer.

  • Cross-Platform Compatibility: Automatically detects structural variances between Windows, macOS, and Linux to run direct executions seamlessly.


🛠️ Architectural Highlights

This package was designed following production-grade software engineering principles:

  • Decoupled Low-Level Engines: Features standalone layers (FileSystemEngine & GitEngine) that are entirely decoupled from CLI routing logic, making them fully reusable as an importable library API.

  • Single Responsibility Validation: Separates terminal argument compilation (argparse) from explicit data sanitization filters (validators.py) and environmental prerequisite verification (dependencies.py).

  • Defensive Error Handling & Auto-Rollback: Leverages short-circuit evaluations and interactive terminal input cascades. In the event of network or environment breaks during deployment, it offers automated transactional folder cleanups (shutil.rmtree) to prevent workspace pollution.

  • Direct-Execution Strategy: Bypasses unstable, platform-dependent shell environment injections by directly target-executing localized virtual environment binaries (pip).


📥 Installation

You can install repopy globally from PyPI using pip:

pip install repopy

Alternatively, you can install the latest development version directly from source:

git clone https://github.com/manatunga/repopy.git
cd repopy
pip install -e .

🚀 Usage Guide

1. Initialize a Local Project from Scratch

Generate a clean, standardized local environment with an operational virtual environment and pre-seeded .gitignore file:

repopy local my-new-app

2. Clone and Auto-Provision a Remote Codebase

Clone an external codebase, create a virtual environment, scan for a requirements.txt file, and automatically install its dependencies:

repopy clone https://github.comencode/httpx.git -n my-custom-workspace

🗂️ Project Structure

repopy/
├── src/
│   └── repopy/
│       ├── __init__.py         # Package initialization
│       ├── __main__.py         # Application root entry point
│       ├── cli.py              # CLI Argument Parsing layer
│       ├── orchestrators.py    # Architectural workflow supervision
│       ├── os_detector.py      # Cross-platform OS translation utility
│       ├── dependencies.py     # Binary prerequisite verification
│       ├── validators.py       # Data input and path path verification
│       ├── file_system.py      # Low-level file system engine
│       └── git_engine.py       # Low-level shell compilation engine
├── pyproject.toml              # Build-system manifest & CLI script configuration
├── .gitignore
├── LICENSE                     # MIT License
└── README.md                   # Project documentation

📄 License

Distributed under the MIT License. See LICENSE for more details.

Release files for repopy 0.1.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 repopy 0.1.1
File Size Uploaded
repopy-0.1.1.tar.gz 9.9 kB Details

Built distribution (wheel)

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

Total release size: 20.2 kB

Release files / repopy-0.1.1.tar.gz

Download URL repopy-0.1.1.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2011cb2f90503082470f9fd55a4f57b87fcca79190f3769a76c3bf5fffe611ca
BLAKE2b-256 checksum
How to use checksums
5873458939471febf3cef3f1443828de2dd0b3502eeb4188e03e588e545666dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / repopy-0.1.1-py3-none-any.whl

Download URL repopy-0.1.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91085d0cc9297975ee41efc06af1f702269063c3220f65969bddff287750702c
BLAKE2b-256 checksum
How to use checksums
965dc6c51ba62d6316ad19d4bc06a623172b99e48c92b097f1a1dcbd4dcdfcf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

This release

0.1.1 This release

2 release files

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