Automate Python Project Initialization & Structuring
PyCraft is a CLI tool that automates the setup of Python projects by creating structured directories, initializing virtual environments, and installing necessary dependencies.
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
pip install autopycraftOR install from source:
git clone https://github.com/N-Thander/PyCraft.git
cd PyCraft
pip install -e .After installation, use PyCraft from the command line:
pycraft setup-flask my_flask_apppycraft setup-fastapi my_fastapi_apppycraft setup-pygame my_gamepycraft setup-django my_django_appEach 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
- Create a new branch:
git checkout -b feature-name
- Make your changes & commit:
git commit -m "Added a new feature" - Push your branch & create a Pull Request! 🎉
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
See the full license here.
💡 Have questions or suggestions? Reach out!
🔗 GitHub Issues
This project is still underdevelopment and no PyPI package has been released yet.