A Python project scaffolding tool by Sheldon Kenny Salmon (@OceanCrowtt)
Project description
OceanCrow_Scaffolder
A Python project scaffolding tool by Sheldon Kenny Salmon (@OceanCrowtt). Create professional Python projects with one command, including folder structure, virtual environment, Git repository, and template files.
Features
- Creates a standardized project structure (
src,tests,docs,private). - Sets up a virtual environment for each project.
- Initializes a Git repository with a
.gitignore. - Includes a
start_project.bat(Windows) orstart_project.sh(macOS/Linux) for one-click virtual environment activation. - Supports project types:
basic(simple Python script),flask(web app),datascience(data analysis). - Updates projects with missing files using
scaffold update. - Colorful, user-friendly console output.
Prerequisites
Before installing, ensure you have:
- Python 3.12+ (64-bit): Download from python.org.
- Windows: Check "Add Python to PATH" during installation.
- macOS/Linux: Python is often pre-installed; verify with
python3 --version.
- Git: Download from git-scm.com.
- Windows: Check "Add Git to PATH" during installation.
- Optional Tools (recommended):
Installation
Follow these steps to install and use OceanCrow_Scaffolder:
Step 1: Install Python
- Download and install Python 3.12+ from python.org.
- Verify installation:
python --version # Windows python3 --version # macOS/Linux
Expected: Python 3.12.x.
Step 2: Install Git
- Download and install Git from git-scm.com.
- Verify installation:
git --version
Step 3: Install OceanCrow_Scaffolder
- Open a terminal (Command Prompt on Windows, Terminal on macOS/Linux).
- Install the package via pip:
pip install OceanCrow_Scaffolder
- If you get a "pip is not recognized" error, use:
python -m pip install OceanCrow_Scaffolder # Windows python3 -m pip install OceanCrow_Scaffolder # macOS/Linux
Step 4: Create a New Project
Run the scaffold command to create a project:
scaffold create MyProject --type basic
- Options for
--type:basic(default, simple script),flask(web app),datascience(data analysis). - Creates a project in
~/OC_Scaffold/Projects/MyProject(e.g.,C:\Users\YourUsername\OC_Scaffold\Projects\MyProject). - Includes folders:
src,tests,docs,private,env(virtual environment),.gitignore,requirements.txt, andcommands.txt.
Step 5: Start Working
- Navigate to your project:
cd ~/OC_Scaffold/Projects/MyProject
- Activate the virtual environment:
- Windows:
- Double-click
start_project.batin the project folder. - Or run:
env\Scripts\activate
- Double-click
- macOS/Linux:
source env/bin/activate
- Windows:
- Install dependencies (if any):
pip install -r requirements.txt
- Run the project:
python src/main.py # basic python src/app.py # flask python src/notebook.py # datascience
- Close the terminal to deactivate the virtual environment (no need to run
deactivate).
Step 6: Update a Project
To restore missing files or update dependencies:
scaffold update MyProject
Step 7: Check Version
scaffold version
Troubleshooting
- "scaffold is not recognized":
- Ensure the Python Scripts (Windows) or bin (macOS/Linux) directory is in your PATH:
- Windows: Add
C:\Program Files\Python312\Scripts(or equivalent) viasysdm.cpl> Advanced > Environment Variables > Path. - macOS/Linux: Add
~/.local/binto PATH by editing~/.bashrcor~/.zshrc:export PATH="$PATH:$HOME/.local/bin"
- Windows: Add
- Or use:
python -m oceancrow_scaffolder create MyProject # Windows python3 -m oceancrow_scaffolder create MyProject # macOS/Linux
- Ensure the Python Scripts (Windows) or bin (macOS/Linux) directory is in your PATH:
- "Git not found": Install Git from git-scm.com.
- Permission errors: Ensure you have write access to
~/OC_Scaffold(e.g.,C:\Users\YourUsername\OC_Scaffold). - Need help? DM @OceanCrowtt on X for support.
Contributing
See docs/contribution.md in your project folder for guidelines.
License
MIT License. Copyright (c) 2025 Sheldon Kenny Salmon. See docs/LICENSE in your project folder.
Support
Love this tool? Follow @OceanCrowtt on X to support more projects or DM for custom coding solutions!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oceancrow_scaffolder-0.1.0.tar.gz.
File metadata
- Download URL: oceancrow_scaffolder-0.1.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62d1c00207e19f8d140d3ce922cbbe30c9f5c668695b18c0ad03af720d3aa7df
|
|
| MD5 |
b0742ccc041674e7ba74a6aedeef56a4
|
|
| BLAKE2b-256 |
eac9ba2cff4918ebdacb44c9d9961bc1a614e75ea65175992b9da61c8a938e46
|
File details
Details for the file oceancrow_scaffolder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oceancrow_scaffolder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47a8487be71e4351ca5848fc67457860c1546ccb6fff4516e10f8549eaafb267
|
|
| MD5 |
89000bfb1378166215a229ea518a6f1c
|
|
| BLAKE2b-256 |
96238e1ceefa0db5e9147d5c4430a88ff54e638d8243fb2916ee5921607e7438
|