Skip to main content

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.

PyPI version Python License: MIT

โœจ 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:

  1. Ask for your project name
  2. Let you choose a Flask structure
  3. Create a new directory with all files

Initialize in Current Directory

mkdir my-flask-app
cd my-flask-app
veloxa init

This will:

  1. Let you choose a Flask structure
  2. 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:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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

๐Ÿ™ 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

veloxa-0.5.0.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

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

veloxa-0.5.0-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file veloxa-0.5.0.tar.gz.

File metadata

  • Download URL: veloxa-0.5.0.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for veloxa-0.5.0.tar.gz
Algorithm Hash digest
SHA256 ef95f2e53c0e8cf22a9992e2cce1f505c3758d298e9a39c12416dba1727db2c0
MD5 7501a99686b54f541a81ff9554d32bc9
BLAKE2b-256 c7d5bdf2487fff71b62415a3c749261a703d69deb33ab11297b85bacbdf84ce0

See more details on using hashes here.

File details

Details for the file veloxa-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: veloxa-0.5.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

Hashes for veloxa-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5601376e96547b9186c275c3c5fed8453e0191e6a7a61e78ea8a1cc8a3e2028
MD5 a75bb7bc22185e81c8a907f970767b3d
BLAKE2b-256 ce7f57c5b2a7680bafc0d2f475d0b51bb59ed3b3664d847483de1ac9624ea2ce

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