Skip to main content

Flask App Initializer.

Project description

flinit

Flinit ( flask init ) is a Python Command-Line Tool to Initialize a Python-Flask Project with Boilerplate Code and other required tools.

Flinit is a create-react-app like tool for Flask Projects.

Features

  • Creates Project Working Directory
  • Spins up a Python Virtual Environment
  • Generates Flask App File, app.py
  • Installs Flask and CORS (optional)
  • Adds Flask and CORS Helper Methods
  • Adds Boilerplate Code to app.py
  • Generates initial environment requirments file
  • Adds README.md to the project
  • Generates .gitignore for Python Project
  • Initializes Git for Project.

Usage

Flinit can be used on any system with Python and PIP installed and PIP added to the OS Environment Path.

Installation

Flinit can be installed using Pip.

pip install flinit

Using Flinit to Create a Flask Project

After installing flinit using pip, goto any CLI and use the flinit command to setup the Flask App.

flinit [projectName] [location] -g -r -c

flinit [projectName] [location] -gt -rd -cr

flinit [projectName] [location] --git --readme --cors

projectName - The Name of the Project.

location - Path where Project is to be setup.

Flags

-h or --help - Provides Instruction about how to use Flinit.

-g or -gt or --git - Flag to add git to project. If this flag is used, git will be initialized for the project.

-r or -rd or --readme - Flag to add README.md to project. If this flag is used, a README file is generated.

-c or -cr or --cors - Flag to install and CORS to project. If this flag is used, CORS is installed and added a helper method is added to the app.py file.

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

flinit-0.2.4.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

flinit-0.2.4-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page