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.1.0.tar.gz (27.5 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.1.0-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for veloxa-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4475543983ec737e5229f6b24fe796023e91ac7ce10adb33523f5ba929a7c283
MD5 a06e26f6a0a305642322734d233ec2fd
BLAKE2b-256 56cec8a335952a4ea5560ced8634f1681a8bf4ed851a9875c6b1e009c9c09604

See more details on using hashes here.

File details

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

File metadata

  • Download URL: veloxa-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 42.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3bb65bd8f7fb0b8dc723a9e882b569e3a181336497f1c2adb74cf7c86aba478
MD5 9a82b249c8fb4ca4ca09c7d3cabec8bb
BLAKE2b-256 226bc1b1a26b4d58a8ff0385aa438fa313cb0992eefe7d0d42a42f45d939005f

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