Skip to main content

CLI tool to quickly generate Flask apps

Project description

QuickFlask

QuickFlask is a CLI tool designed to help you create modular, functional Flask applications in seconds. I love Flask, but I often found myself writing the same boilerplate code repeatedly. To save time, I created QuickFlask. This tool will save you time and effort, allowing you to focus on building your application rather than setting up the initial structure. It adheres to the DRY (Don’t Repeat Yourself) principle.

Installation

To install QuickFlask, run:

pip3 install quick-flask

Usage

Once installed, you can create a new Flask project by running:

quickflask

Options:

  • --name (Required): The name of your Flask application.
  • --socketio (Optional): Include Flask-SocketIO support for real-time communication.

Example with SocketIO:

quickflask --name my-chat-app --socketio

Running Your Flask App

After creating your project, navigate into the directory:

cd my_flask_app

Set up a virtual environment (recommended):

python3 -m venv venv
source venv/bin/activate  # On Windows: .\venv\Scripts\activate

Install dependencies:

pip install -r requirements.txt

Run the Flask app:

python app.py

Your application will be accessible at http://127.0.0.1:5000/.

Features

  • Generates a structured Flask project with blueprints and templates.
  • Automatically sets up templates and API routes.
  • Saves time by eliminating repetitive boilerplate code.

Contributing

Feel free to open issues or submit pull requests to improve QuickFlask. Contributions are always welcome!

License

This project is licensed under the MIT License. See LICENSE for details.

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

quick_flask-1.0.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

quick_flask-1.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file quick_flask-1.0.0.tar.gz.

File metadata

  • Download URL: quick_flask-1.0.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for quick_flask-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7198f6e0285711dd2337d74157abf695785bebd90c066aacf2d005aee0b711d1
MD5 bcaa607c8849f665567c230f9d1fbafe
BLAKE2b-256 eb135ca00d018c0d6d0f86e6516de97eff3176cdd483a086ae6eaad521e7118b

See more details on using hashes here.

File details

Details for the file quick_flask-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: quick_flask-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for quick_flask-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7aa21e9881d9a610c8228cab67c4220b48ba2f92da8cd38ff4fe82b6b4954f4
MD5 f3a281702d57e9c6b080c80cdc3c5b74
BLAKE2b-256 bf3aecc7551b08ba836cbe34e4befe5ed450142f4e0626510bb6248024e36615

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