Skip to main content

A CLI tool to scaffold Python projects with venv and folder structure

Project description

Sure! Here’s the updated “How To” guide that includes the new flags and functionalities added to the projinit CLI tool.

✅ How to Set Up and Use projinit CLI (Cross-Platform Guide)

📁 1. Clone the project

git clone https://github.com/Martins-O/projinit.git

🧰 2. Install pipx (if not installed)

macOS or Linux:

brew install pipx # macOS

python3 -m pip install --user pipx

pipx ensurepath

Windows (via PowerShell):

python -m pip install --user pipx

pipx ensurepath

Restart your terminal after running pipx ensurepath.

🚀 3. Install projinit using pipx

In the terminal, navigate to the root of your projinit project:

cd projinit

pipx install .

✅ This makes the projinit command available globally.

✅ 4. Usage

Now you can run projinit from anywhere in your terminal:

projinit

It will prompt you to: • Create a new project or use an existing one: • New project: Asks for the project name, subfolders, etc. • Existing project: Asks for the path and sets up the folders. • Create a Python virtual environment (optional): • You can skip this with the --no-venv flag. • You can specify a Python version with the --python-version flag. • Add dependencies to requirements.txt: • Provide a comma-separated list of dependencies via the --dependencies flag. • If no dependencies are provided, a preconfigured template for requirements.txt will be created. • Initialize a Git repository (optional): • You can choose to initialize a Git repo by answering y when prompted. • If desired, add a remote repository URL with the --git-remote flag. • Interactive Setup (optional): • Enable an interactive setup where you will be prompted for custom folder names by using the --interactive flag.

Example usage with flags:

projinit --interactive --dependencies flask,requests --python-version 3.9 --git-remote https://github.com/your-repo.git

💡 Notes • To uninstall projinit:

pipx uninstall projinit

•	For more information, visit the project's GitHub repository: https://github.com/Martins-O/projinit

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

pyinitpro-0.1.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

pyinitpro-0.1.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pyinitpro-0.1.2.tar.gz.

File metadata

  • Download URL: pyinitpro-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pyinitpro-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e1dafe179ab5c9d33da51484b79a250807d69fd171b3af02368e6dcba8293b05
MD5 e8db92fe584e0c44ddf8ef8aff43198b
BLAKE2b-256 9eebd27aaf9dfa5113411ae18bd09b9eb927a7b9f0c5595a2c26208dc9eb91df

See more details on using hashes here.

File details

Details for the file pyinitpro-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyinitpro-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pyinitpro-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f13c2f2c4fe34715db705446c749f9efbf9ed77b841507f0d18f038206514af
MD5 430a8f9fbd6104ef773c9557d2b3cd96
BLAKE2b-256 15431327e2f040a14e405e53bb8a5259d102053e026746af658bd1f979da4de7

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