This is a create-react-app analog that creates a base Flask Aplication structure with boilerplates.
Project description
Create Flask API
An simple to use cli to create your Flask API's!
Explore the docs »
Table of Contents
About The Project
Always when I wanted to start a new Flask API project I had to go through the same repetitive steps of creating a lot of folders, __init__.py's, configurations etc... and only then I would start coding. So I decided to create a Flask API factory that can very easily and fast create a base project that I can work on top of, increasing my productivity!
With this tool you can not only start a new project but also configure some features, listed down below:
- Start git versioning
- Choose a testintig package
- Choose a authentication package/configs
- Choose a serializer package
- Include Heroku config
Built With
This project was built using pure python and two packages, listed as follows:
Getting Started
This is a command line interface. When you install create-flask-api, it should be added to your local python modules folder, so then you can run it anytime in your machine using python -m command. But first you need to fulfill some prerequisites.
Prerequisites
To use this tool you will need to have pip (package intaller for python) and venv (python virtual environments provider) installed on your machine. If you don't have them installed take a look at their documentation: pip, venv Of course, you'll also need python (>=3.7).
Installation
The only thing you'll have to do is install this package using the following command:
pip install create-flask-api
Just like that.
NOTE: If you pip install this package inside a venv you'll be able to use it only inside the venv, so don't do that
Usage
To use it is very simple, just type the following command with your desired project name in your shell and it will automatically generate your project
python -m create_flask_api [-h] project_name
Positional arguments:
- project_name Here you should insert the project name.
Optional arguments:
- -h, --help show this help message and exit
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Pedro Henrique Germano Silva - pedrohenriquegs2001@gmail.com
Project Link: https://github.com/peedrooh/create-flask-api
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for create_flask_api-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca3da851453911db98b1c338a4b71d9d294d905d34ba6ae454d6968b4fdacc0b |
|
MD5 | fe1870687b54e9260c7c85cb714c21cf |
|
BLAKE2b-256 | f00fae77d767222cbc19a6529ddfd37f84bf0f01617e1ac508a328d51da94bfc |