Skip to content

Latest commit

ย 

History

History
157 lines (98 loc) ยท 3.27 KB

File metadata and controls

157 lines (98 loc) ยท 3.27 KB

AutoPyCraft ๐Ÿ› ๏ธ

Automate Python Project Initialization & Structuring

License
Python


๐Ÿ“Œ Overview

PyCraft is a CLI tool that automates the setup of Python projects by creating structured directories, initializing virtual environments, and installing necessary dependencies.

Project Structure


autopycraft/
โ”œโ”€โ”€ setup_scripts/
โ”‚   โ”œโ”€โ”€ __init__.py       # Initializes Flask app
โ”‚   โ”œโ”€โ”€ routes.py         # Contains API routes
โ”‚   โ”œโ”€โ”€ models.py         # Database models (if using SQLAlchemy)
โ”‚   โ”œโ”€โ”€ templates/        # HTML templates (Jinja2)
โ”‚   โ”œโ”€โ”€ static/           # CSS, JS, images
โ”œโ”€โ”€ test/                 # test class
โ”œโ”€โ”€ venv/                 # Virtual environment
โ”œโ”€โ”€ config.py             # Configuration settings
โ”œโ”€โ”€ requirements.txt      # Dependencies (flask, etc.)
โ”œโ”€โ”€ app.py                # Entry point
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ README.md


โšก Features:
โœ… Framework-specific setups (Flask, FastAPI, Django, Pygame)
โœ… Automatic directory & virtual environment creation
โœ… Dependency installation
โœ… Open-source & customizable


๐Ÿš€ Installation

pip install autopycraft

OR install from source:

git clone https://github.com/N-Thander/PyCraft.git
cd PyCraft
pip install -e .

๐Ÿ“Œ Usage

After installation, use PyCraft from the command line:

๐ŸŽฏ Creating a Flask Project

pycraft setup-flask my_flask_app

โšก Creating a FastAPI Project

pycraft setup-fastapi my_fastapi_app

๐ŸŽฎ Creating a Pygame Project

pycraft setup-pygame my_game

๐Ÿ› ๏ธ Creating a Django Project

pycraft setup-django my_django_app

Each command will:
โœ… Create the project directory
โœ… Initialize a virtual environment
โœ… Install necessary dependencies
โœ… Generate a structured project skeleton

---๐Ÿš€ Automate Python Project Setup with PyCraft! ๐Ÿš€

Let me know if you need any modifications! ๐Ÿ”ฅ pycraft/templates/


---

## **๐Ÿ“Œ Contributing**  

Contributions are welcome! ๐Ÿš€ To contribute:  

1. **Fork** this repository.  
2. Clone your fork:  
   ```sh
   git clone https://github.com/your-username/PyCraft.git
  1. Create a new branch:
    git checkout -b feature-name
  2. Make your changes & commit:
    git commit -m "Added a new feature"
  3. Push your branch & create a Pull Request! ๐ŸŽ‰

๐Ÿ“œ License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
See the full license here.


๐Ÿ“ฌ Contact

๐Ÿ’ก Have questions or suggestions? Reach out!
๐Ÿ”— GitHub Issues


Note

This project is still underdevelopment and no PyPI package has been released yet.