Setup a flask project using a single command, right from creating virtual environment to creating Procfile for deployment.

Overview

AutoFlask-Setup

About

AutoFlask-Setup can help you set up a new Flask Project, right from creating virtual environment to creating Procfile for deployment.

Requirements

  • Python (3.6+)

Usage

  • Just copy the setup.py file in your directory, wherever you want your project to be setup.

  • Important Commands:

    • python setup.py - About AutoFlask-Setup
    • python setup.py help - Get Necessary Commands List
    • python setup.py copyright - Get Copyright Information
    • python setup.py credits - Get Credits Information
    • python setup.py license - Get License Information
    • python setup.py initproject - Initialize Flask Project
  • Once the project setup is complete, you can delete the setup.py file safely.

Example

=2.0 Using cached itsdangerous-2.0.1-py3-none-any.whl (18 kB) Collecting Werkzeug>=2.0 Using cached Werkzeug-2.0.2-py3-none-any.whl (288 kB) Collecting click>=7.1.2 Using cached click-8.0.3-py3-none-any.whl (97 kB) Collecting Jinja2>=3.0 Using cached Jinja2-3.0.2-py3-none-any.whl (133 kB) Collecting alembic>=0.7 Using cached alembic-1.7.4-py3-none-any.whl (209 kB) Collecting SQLAlchemy>=0.8.0 Using cached SQLAlchemy-1.4.26-cp39-cp39-win_amd64.whl (1.5 MB) Collecting blinker Using cached blinker-1.4-py3-none-any.whl Collecting Mako Using cached Mako-1.1.5-py2.py3-none-any.whl (75 kB) Collecting colorama Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB) Collecting MarkupSafe>=2.0 Using cached MarkupSafe-2.0.1-cp39-cp39-win_amd64.whl (14 kB) Collecting greenlet!=0.4.17 Using cached greenlet-1.1.2-cp39-cp39-win_amd64.whl (101 kB) Installing collected packages: MarkupSafe, colorama, Werkzeug, Jinja2, itsdangerous, greenlet, click, SQLAlchemy, Mako, Flask, Flask-SQLAlchemy, blinker, alembic, python-decouple, Flask-Migrate, Flask-Mail Successfully installed Flask-2.0.2 Flask-Mail-0.9.1 Flask-Migrate-3.1.0 Flask-SQLAlchemy-2.5.1 Jinja2-3.0.2 Mako-1.1.5 MarkupSafe-2.0.1 SQLAlchemy-1.4.26 Werkzeug-2.0.2 alembic-1.7.4 blinker-1.4 click-8.0.3 colorama-0.4.4 greenlet-1.1.2 itsdangerous-2.0.1 python-decouple-3.5 All dependencies installed successfully Creating package Package created successfully Creating app runner... App runner created successfully Creating configurations file... Configurations file created successfully Creating templates and static directory... Templates and static directory created successfully Creating routes... Routes created successfully Creating models... Models created successfully Creating miscellaneous files... * Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them. Creating directory D:\Quarantine\Flask\Test\migrations ... done Creating directory D:\Quarantine\Flask\Test\migrations\versions ... done Generating D:\Quarantine\Flask\Test\migrations\alembic.ini ... done Generating D:\Quarantine\Flask\Test\migrations\env.py ... done Generating D:\Quarantine\Flask\Test\migrations\README ... done Generating D:\Quarantine\Flask\Test\migrations\script.py.mako ... done Please edit configuration/connection/logging settings in 'D:\\Quarantine\\Flask\\Test\\migrations\\alembic.ini' before proceeding. Miscellaneous files created successfully Project Setup Complete Please make necessary changes in '.env' file. Please run 'python setup.py help' for necessary commands. ">
$ py setup.py 

AutoFlask-Setup can help you set up a new Flask Project, right from creating virtual environment to creating Procfile for deployment.
AutoFlask-Setup(v1.0.0, Oct 20 2021, 8:25:39)
Add arguments like "help", "copyright", "credits" or "license" for more information.

[email protected] MINGW64 /d/Quarantine/Flask/Test (main)
$ py setup.py initproject

Initiating Project Setup

Creating and activating a virtual environment...
Installing virtualenv on Windows ... 

[+] virtualenv installed.

Creating A New virtualenv ...
Virtual environment activated successfully

Installing required dependencies...
Collecting Flask
  Using cached Flask-2.0.2-py3-none-any.whl (95 kB)
Collecting Flask-Migrate
  Using cached Flask_Migrate-3.1.0-py3-none-any.whl (20 kB)
Collecting Flask-SQLAlchemy
  Using cached Flask_SQLAlchemy-2.5.1-py2.py3-none-any.whl (17 kB)
Collecting Flask-Mail
  Using cached Flask_Mail-0.9.1-py3-none-any.whl
Collecting python-decouple
  Using cached python_decouple-3.5-py3-none-any.whl (9.6 kB)
Collecting itsdangerous>=2.0
  Using cached itsdangerous-2.0.1-py3-none-any.whl (18 kB)
Collecting Werkzeug>=2.0
  Using cached Werkzeug-2.0.2-py3-none-any.whl (288 kB)
Collecting click>=7.1.2
  Using cached click-8.0.3-py3-none-any.whl (97 kB)
Collecting Jinja2>=3.0
  Using cached Jinja2-3.0.2-py3-none-any.whl (133 kB)
Collecting alembic>=0.7
  Using cached alembic-1.7.4-py3-none-any.whl (209 kB)
Collecting SQLAlchemy>=0.8.0
  Using cached SQLAlchemy-1.4.26-cp39-cp39-win_amd64.whl (1.5 MB)
Collecting blinker
  Using cached blinker-1.4-py3-none-any.whl
Collecting Mako
  Using cached Mako-1.1.5-py2.py3-none-any.whl (75 kB)
Collecting colorama
  Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.0.1-cp39-cp39-win_amd64.whl (14 kB)
Collecting greenlet!=0.4.17
  Using cached greenlet-1.1.2-cp39-cp39-win_amd64.whl (101 kB)
Installing collected packages: MarkupSafe, colorama, Werkzeug, Jinja2, itsdangerous, greenlet, click, SQLAlchemy, Mako, Flask, Flask-SQLAlchemy, blinker, alembic, python-decouple, Flask-Migrate, Flask-Mail
Successfully installed Flask-2.0.2 Flask-Mail-0.9.1 Flask-Migrate-3.1.0 Flask-SQLAlchemy-2.5.1 Jinja2-3.0.2 Mako-1.1.5 MarkupSafe-2.0.1 SQLAlchemy-1.4.26 Werkzeug-2.0.2 alembic-1.7.4 blinker-1.4 click-8.0.3 colorama-0.4.4 greenlet-1.1.2 itsdangerous-2.0.1 python-decouple-3.5
All dependencies installed successfully

Creating package
Package created successfully

Creating app runner...
App runner created successfully

Creating configurations file...
Configurations file created successfully

Creating templates and static directory...
Templates and static directory created successfully

Creating routes...
Routes created successfully

Creating models...
Models created successfully

Creating miscellaneous files...
 * Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.
Creating directory D:\Quarantine\Flask\Test\migrations ...  done
Creating directory D:\Quarantine\Flask\Test\migrations\versions ...  done
Generating D:\Quarantine\Flask\Test\migrations\alembic.ini ...  done
Generating D:\Quarantine\Flask\Test\migrations\env.py ...  done
Generating D:\Quarantine\Flask\Test\migrations\README ...  done
Generating D:\Quarantine\Flask\Test\migrations\script.py.mako ...  done
Please edit configuration/connection/logging settings in 'D:\\Quarantine\\Flask\\Test\\migrations\\alembic.ini' before proceeding.
Miscellaneous files created successfully

Project Setup Complete

Please make necessary changes in '.env' file.
Please run 'python setup.py help' for necessary commands.
Python example making use of best practice file structure and multithreading.

Python example making use of best practice file structure and multithreading.

Bob 1 Oct 13, 2021
A Boilerplate repo for Scientific Python Open Science projects

A Boilerplate repo for Scientific Python Open Science projects Installation Clone this repo If you need a fresh python environment, run $ conda env cr

Vincent Choqueuse 2 Dec 23, 2021
Combine the power of FastAPI and Django to build a production-ready application capable of utilizing all of the best features of both worlds.

FastAPI and Django Combo This projects aims to combine FastAPI and Django to build a Production ready application capable of utilizing all of the feat

Nsikak Imoh 33 Dec 27, 2022
A template repo for use in the Advent of Code

AoC-Template A template repo for use in the Advent of Code The README_template.md must contain "STATS_TABLE" to be replaced by the generated table, an

0 Jan 14, 2022
Template repository to build PyTorch projects from source on any version of PyTorch/CUDA/cuDNN.

Template repository to build PyTorch projects from source on any version of PyTorch/CUDA/cuDNN.

Joonhyung Lee/이준형 651 Dec 12, 2022
PyPC is a very simple tool that creates Python projects from templates.

PyPC (Python Project Creator) PyPC is a very simple tool that creates Python projects from templates. In 0.1v#alpha, custom template creation will be

art3m1s 1 Nov 26, 2021
Ultimate Django3.2 Template for starting any project from not zero!

Ultimate Django3.2 Template for starting any project from not zero!

TheAliBigdeli 37 Dec 20, 2022
Flask Boilerplate - Material Kit Design | AppSeed

Flask Boilerplate - Material Kit Design | AppSeed

App Generator 45 Nov 18, 2022
Boilerplate for starting a python project

Python Project Boilerplate Simple boilerplate for starting a python proect. Using the repo Follow following steps to install client on server Create a

Prajwal Dahal 1 Nov 19, 2021
This is a boilerplate for a basic backend app using Python, Django and SQLite, as developed after tutorials with Programming with Mosh

This is a boilerplate for a basic backend app using Python, Django and SQLite, as developed after tutorials with Programming with Mosh

Gustavo Catala Sverdrup 1 Jan 07, 2022
Forkable, Minimal Template for Starknet Projects.

Forkable, Minimal Template for Starknet Projects.

velleity.eth 44 Oct 09, 2022
A Project Template With Python

File Structure . ├── LICENSE ├── Makefile # commands ├── README.md ├──

Annotation AI 61 Jan 02, 2023
Mad-cookiecutter - Cookiecutter templates for MaD projects

MaD Cookiecutter Templates A set of templates that can be used to quickly get st

Machine Learning and Data Analytics Lab FAU 1 Jan 10, 2022
Project template layout for Django 3.0+

Django 3.0+ project template This is a simple Django 3.0+ project template with my preferred setup. Most Django project templates make way too many as

José Padilla 649 Dec 30, 2022
Generic python project template

generic-python-project-template generic-python-project-template STEPS - STEP 01- Create a repository by using template repository STEP 02- Clone the n

SUNNY BHAVEEN CHANDRA 3 Oct 03, 2022
A full stack boilerplate for FastAPI

A full stack boilerplate for FastAPI

Tyler M. Kontra 94 Dec 13, 2022
Python-boilerplate - Python Boilerplate Project Structure

python-boilerplate Python Boilerplate Project Structure Folder Structure .github

1 Jan 18, 2022
A test Django application with production-level docker setup

DockerApp A test Django application with production-level docker setup. Blog: https://medium.com/@siddharth.sahu/the-near-perfect-dockerfile-for-djang

Siddharth Sahu 44 Nov 18, 2022
King is a simple boilerplate from a bigger Discord Bot project created for my Discord Server.

King A simple Discord bot boilerplate. King is a simple boilerplate from a bigger Discord Bot project created for my Discord Server. I intend to showc

Xminent 0 Aug 21, 2021
Django Boilerplate - Material Kit Design | AppSeed

Django Boilerplate - Material Kit Design | AppSeed

App Generator 45 Dec 23, 2022