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.6.0.tar.gz (28.0 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.6.0-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

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

Hashes for veloxa-0.6.0.tar.gz
Algorithm Hash digest
SHA256 529b145993946efe310f3752cb4fb76f659f7d56b8dfeed42471a5b0e469348e
MD5 c7a647446f10bceb2b4a1bec68167eb2
BLAKE2b-256 d70e5b1e7ff4a493777dfb39f8fa411812cae5ba69a11506d690f964586b6495

See more details on using hashes here.

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

Hashes for veloxa-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b9f7198fc9a27823164e3e24d65c1eb4fad7f41288973b3f3aec3fa5fd062ca
MD5 91f97183db29eb0c1a5d108f94dfb01d
BLAKE2b-256 c048cd4594a84c980ed5bf8f6313384cfd810e9cb36e590c54a96ae1a55a1010

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