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
This is a FastAPI, React, MongoDB stack Boilerplate. It's as glorious as a highland coo.

Coo - F.A.R.M stack BoilerPlate F.A.R.M - FastAPI, React, MongoDB This boilerplate utilizes FastAPI to build a REST API, MongoDB for data storage, and

Peter Waters 2 Feb 06, 2022
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
A low dependency and really simple to start project template for Python Projects.

Python Project Template A low dependency and really simple to start project template for Python Projects. HOW TO USE THIS TEMPLATE DO NOT FORK this is

Yurii Dubinka 5 Jan 21, 2022
Cookiecutter to create a Google Function. Powered by Poetry, GitHub actions, and Google Cloud Platform

Cookiecutter Google Function Cookiecutter template for a Google Function. Powered by Poetry, and GitHub actions. Quickstart Install the latest Cookiec

Arthur 1 Jan 07, 2022
Generic template for python service

Cookie cutter template example Technology stack Flask Gevent UWSGI Poetry Docker Docker-compose Installation pip install cookiecutter cookiecutter git

Churkin Oleg 11 Oct 22, 2022
Get a Django app up and running in dev, test, and production with best practices in 10 minutes

Django template for Docker + Heroku This is how I set up Django projects to get up and running as quick as possible. In includes a few neat things: De

Ben Firshman 30 Oct 13, 2022
Creating Templates and components so those can be reusable some time and makes workflow a lot easier!

TEMPLATES AND COMPONENTS IN ANY LANG! This is an Open Repository For Students to Contribute code in Hackoctoberfest in different Languages and Tech me

SriSravyaN 9 Feb 19, 2022
Template for creating ds simple projects

ds-project-template Template for creating ds simple projects Requirements pyenv python==3.9.4 Setup For this purpose you use following commands: pytho

1 Dec 17, 2021
A python starter package to be used as a template for creating your own python packages.

Python Starter Package This is a basic python starter package to be used as a template for creating your own python packages. Github repo: https://git

Mystic 1 Apr 04, 2022
Backend Boilerplate using Django,celery,Redis

Backend Boilerplate using Django,celery,Redis

Daniel Mawioo 2 Sep 14, 2022
Boilerplate code for a Python Flask API

MrMat :: Python :: API :: Flask Boilerplate code for a Python Flask API This variant of a Python Flask API is code-first and using native Flask Featur

0 Dec 26, 2021
Basic Docker Compose template application with Flask, Celery, Redis, MySQL, SocketIO, Nginx and Gunicorn.

Nginx / Gunicorn / Flask 🐍 / Celery / SocketIO / MySQL / Redis / Docker 🐳 sample application Basic Docker Compose template application for orchestat

Alex Oarga 8 Aug 06, 2022
Vue + Django with no compromises. Django Templates and Vue SFCs in harmony without sacrificing the full power of either.

Cookiecutter Vue Django Vue + Django with no compromise. Cookiecutter Vue Django is a framework for jumpstarting production-ready Django + Vue project

Mike Hoolehan 122 Dec 22, 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
A boilerplate for Django web applications

Django Hackathon Starter A boilerplate application for Django web applications. If you've attented hackathons, you already know how much time can be w

David Leonard 1.6k Dec 31, 2022
Launchr is an open source SaaS starter kit, based on Django.

Launchr Launchr is an open source SaaS starter kit. About Launchr is a fully-equipped starter template, ready to start a SaaS web app. It implements t

Jannis Gebauer 183 Jan 06, 2023
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
Bleeding edge django template focused on code quality and security.

wemake-django-template Bleeding edge django2.2 template focused on code quality and security. Purpose This project is used to scaffold a django projec

wemake.services 1.6k Jan 08, 2023
The starter for the Flask React project

Flask React Project This is the starter for the Flask React project. Getting started Clone this repository (only this branch) git clone https://github

Parker Bolick 2 May 14, 2022