Skip to main content

Simple Python project bootstrapper with virtualenv and pip automation.

Project description

Chat-GPT-Image-Sep-7-2025-04-49-26-PM.png

Sprouter

Sprouter is a simple project setup utility. It creates a Python virtual environment, installs dependencies, and prepares a working directory for development — all from a single CLI entrypoint.

Think of it as a one-shot “project scaffolder” that asks where you want your project to live and does the boring setup for you.


✨ Features

  • Prompts for a target directory (or take it as a CLI argument).
  • Builds a .venv virtual environment inside that directory.
  • Installs all dependencies listed in requirements.txt.
  • Ensures idempotency: if .venv already exists, it won’t overwrite it.
  • Can be wired up with pyproject.toml to install as a global command.

🚀 Usage

Clone or download this repo, then run:

cd sprouter
python3 -m sprouter.cli ~/Projects/myapp

You’ll see:

⚡ Creating virtualenv at /home/you/Projects/myapp/.venv
⚡ Installing dependencies from requirements.txt

Activate your environment:

source ~/Projects/myapp/.venv/bin/activate

Windows (PowerShell):

.\Projects\myapp\.venv\Scripts\Activate.ps1

🛠 Development

The code is split into two modules:

  • core.py → core logic for environment creation & pip installs.
  • cli.py → command-line interface, argument parsing, user prompts.

This separation makes it easy to import sprouter.core in other Python scripts without invoking the CLI.


📦 Packaging (optional)

To install sprouter as a system-wide command:

  1. Add this to your pyproject.toml:

    [project]
    name = "sprouter"
    version = "0.1.0"
    dependencies = []
    
    [project.scripts]
    bootstrapper = "sprouter.cli:main"
    
  2. Install in editable mode:

    pip install -e .
    
  3. Now you can run:

    sprouter ~/Projects/myapp
    

📄 License

This project is distributed under a custom license.
Use freely, hack ruthlessly, share improvements — but ownership remains with the author.

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

sprouter-0.1.4.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

sprouter-0.1.4-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file sprouter-0.1.4.tar.gz.

File metadata

  • Download URL: sprouter-0.1.4.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for sprouter-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5802f172ee4c08043c54c5b7ee810f0de2058b2e27fce45472e045f8eac84043
MD5 fe7d08b438b55bf786337e35171cc4b0
BLAKE2b-256 7aca84c08951d370706c1050e4d98a3bdd35b4c45030e61885de1ce72e6a23d2

See more details on using hashes here.

File details

Details for the file sprouter-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sprouter-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for sprouter-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ad554b326a91ee13cfa1e59f4426b76842bde79010c7573643d9812f06e7e6a8
MD5 5e350ab2e11e89ae0da49882d491ccce
BLAKE2b-256 48c2830b1e5428a0d9129bd504b0b2997ddd9c9f8639d14996eecdc35e376823

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