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.

Change Log

For a detailed list of changes and version history, please see the CHANGELOG.md file.

Latest version = 1.0.1

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.1.tar.gz (13.0 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.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quick_flask-1.0.1.tar.gz
  • Upload date:
  • Size: 13.0 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.1.tar.gz
Algorithm Hash digest
SHA256 e463ca12690b91f0d62690b0aa0d631caec11af2cdffcd874bcbc31fc42aaf5e
MD5 b24c2bd7ca7be23038136d066c2efb5f
BLAKE2b-256 646130be48504fac194169ff3020fb83823fad9c0b9fa9a3de2da3f3b67b37bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quick_flask-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47916c71002eb2f87e55e09643286207e2edb3adbb149cb3b70a10598d0625e6
MD5 a62a712000c0712e466a6643e3e9e6f3
BLAKE2b-256 7263e267791d3704aa41f3a7a059db1112247361e24c8aba0d7b6b6e691342cb

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