Skip to main content

Flarevel is a command-line interface (CLI) tool that quickly scaffolds Flask projects with a robust Model-View-Controller (MVC) architecture. It generates a well-organized project structure, including dedicated folders for models, views, controllers, and configurations, enabling developers to start building scalable and maintainable Flask applications in no time. Flarevel streamlines the setup process, saving you time and ensuring a clean, modular foundation for your projects.

Project description

Flarevel

flarevel is a Python command-line tool that helps you quickly create a Flask project with a predefined folder structure. It generates the necessary files for a basic Flask application with SQLAlchemy support, a home page, and a user model.

Features

  • Generates a Flask project with a predefined structure.
  • Includes a sample HomeController and User model.
  • Includes basic project setup with templates and static assets.
  • Automatically creates the necessary directories and files.
  • Simple command-line interface to create the project.

Installation

To install flarevel, you can use pip:

pip install flarevel

Usage

To create a new Flarevel project, simply run the following command:

flarevel create <project_name>

You can install the necessary dependencies by running:

pip install -r requirements.txt

Run the application

After generating the project, you can run it by executing the following command in the project directory:

python run.py

This will start the Flask development server, and you can view the project in your browser at http://localhost:5000

Database Migration

The migrate command in Flarevel automates the process of handling database migrations. It uses Flask-Migrate under the hood to manage changes in the database schema.

Usage

Run the following command in your project path terminal:

flarevel forge migrate

Create Model

The make:model command allows you to easily create a new model file in your Flarevel project. It automatically generates a model with default fields (id, created_at, updated_at) and a structure ready for customization.

Usage

Run the following command in your project path terminal:

flarevel forge make:model ModelName

Create Controller

The make:controller command allows you to easily create a new controller file in your Flarevel project. It supports creating controllers with directories, making it easy to organize your application into submodules.

Usage

Run the following command in your project path terminal:

flarevel forge make:controller ControllerName

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

flarevel-5.0.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

flarevel-5.0.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file flarevel-5.0.0.tar.gz.

File metadata

  • Download URL: flarevel-5.0.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for flarevel-5.0.0.tar.gz
Algorithm Hash digest
SHA256 a3def0fe6ed6f5d3ac0a8b2e63ac58d5ce92c2a9666c4803ee861a8ab75f8a07
MD5 e1936ed3873a74470c06f7d84e27e908
BLAKE2b-256 edbe8975d7d6137a9c01124dd11501043af4ac8a70d41a21261ba070cb728525

See more details on using hashes here.

File details

Details for the file flarevel-5.0.0-py3-none-any.whl.

File metadata

  • Download URL: flarevel-5.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for flarevel-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 033eca24053b09ed3911ddeaf6e0262539c37248f5e938c071202d930c3ec87b
MD5 a8c2710f7b4868b4255e7ad3ff377e79
BLAKE2b-256 78bdb087c8f30b0cee6fed2e81cce8e53983b96c1f2ed911d84b986262ff523e

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