A modern CLI tool to scaffold Flask project structures
Project description
Veloxa ๐
A modern CLI tool to quickly scaffold Flask project structures with best practices.
โจ Features
- 8 Pre-built Flask Templates - From simple hello world to production-ready structures
- Two Usage Modes - Create new projects or initialize in existing directories
- Interactive CLI - Beautiful prompts with easy navigation
- Modern Structure - Follows Flask best practices and conventions
- Zero Configuration - Works out of the box
- Cross Platform - Windows, macOS, and Linux support
๐ Quick Start
Installation
pip install veloxa
Usage
Create a New Project
veloxa
This will:
- Ask for your project name
- Let you choose a Flask structure
- Create a new directory with all files
Initialize in Current Directory
mkdir my-flask-app
cd my-flask-app
veloxa init
This will:
- Let you choose a Flask structure
- Create files directly in the current directory
Note: While initializing your folder should be empty
๐ Available Project Structures
| Structure | Description | Best For |
|---|---|---|
| Single File Structure | Simple hello world app | Learning, prototyping |
| Basic Modular Structure | Organized into modules | Small to medium apps |
| Application Factory Pattern | Factory pattern with config | Scalable applications |
| Blueprint-Based Structure | Modular with blueprints | Medium to large apps |
| Factory + Blueprints + Config | Complete structure with config classes | Production applications |
| Flask with Celery | Async task queue integration | Background job processing |
| Flask with API | RESTful API structure | API development |
| Full-Scale Production | Complete production setup | Enterprise applications |
๐ ๏ธ Examples
Creating a Simple API Project
veloxa
# Enter project name: "my-api"
# Select: "Flask with API (RESTful Structure)"
cd my-api
pip install -r requirements.txt
python run.py
Setting up in Existing Directory
mkdir awesome-flask-app
cd awesome-flask-app
veloxa init
# Select desired structure
pip install -r requirements.txt
python run.py
๐ What's Included
Each generated project includes:
- โ Proper Flask structure following best practices
- โ Requirements.txt with necessary dependencies
- โ Configuration files for different environments
- โ Sample routes and views
- โ Template files (where applicable)
- โ Static file organization
- โ Database models (in applicable structures)
- โ Error handling
- โ Blueprint organization (where applicable)
๐ฏ Project Structure Examples
Basic Modular Structure
my-app/
โโโ app/
โ โโโ __init__.py
โ โโโ routes.py
โ โโโ models.py
โ โโโ templates/
โโโ config.py
โโโ requirements.txt
โโโ run.py
Blueprint-Based Structure
my-app/
โโโ app/
โ โโโ __init__.py
โ โโโ main/
โ โโโ auth/
โ โโโ api/
โ โโโ templates/
โโโ migrations/
โโโ config.py
โโโ requirements.txt
โโโ run.py
๐ง Requirements
- Python 3.7+
- pip
๐ค Contributing
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development Setup
git clone https://github.com/yugbhuva/veloxa.git
cd veloxa
pip install -e .
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Bug Reports & Feature Requests
Found a bug or have a feature request? Please open an issue on GitHub Issues.
๐ Support
- Documentation: GitHub Repository
- Issues: GitHub Issues
- Discussions: GitHub Discussions
๐ Acknowledgments
- Flask community for the amazing framework
- All contributors who help improve Veloxa
๐ Changelog
v0.1.0
- Initial release
- 8 Flask project templates
- Interactive CLI with questionary
- Support for both project creation modes
Made with โค๏ธ by Yug Bhuva
Scaffold Flask projects at the speed of light โก
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
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 veloxa-0.6.0.tar.gz.
File metadata
- Download URL: veloxa-0.6.0.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
529b145993946efe310f3752cb4fb76f659f7d56b8dfeed42471a5b0e469348e
|
|
| MD5 |
c7a647446f10bceb2b4a1bec68167eb2
|
|
| BLAKE2b-256 |
d70e5b1e7ff4a493777dfb39f8fa411812cae5ba69a11506d690f964586b6495
|
File details
Details for the file veloxa-0.6.0-py3-none-any.whl.
File metadata
- Download URL: veloxa-0.6.0-py3-none-any.whl
- Upload date:
- Size: 43.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b9f7198fc9a27823164e3e24d65c1eb4fad7f41288973b3f3aec3fa5fd062ca
|
|
| MD5 |
91f97183db29eb0c1a5d108f94dfb01d
|
|
| BLAKE2b-256 |
c048cd4594a84c980ed5bf8f6313384cfd810e9cb36e590c54a96ae1a55a1010
|