• Stars
    star
    121
  • Rank 293,924 (Top 6 %)
  • Language
    Python
  • License
    The Unlicense
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DO NOT FORK, CLICK "Use this template" - A github template to start a Flask Project - this uses github actions to generate your project based on the template.

Flask Project Template

A full feature Flask project template.

See also

HOW TO USE THIS TEMPLATE

DO NOT FORK this is meant to be used from Use this template feature.

  1. Click on Use this template
  2. Give a name to your project
    (e.g. my_awesome_project recommendation is to use all lowercase and underscores separation for repo names.)
  3. Wait until the first run of CI finishes
    (Github Actions will process the template and commit to your new repo)
  4. If you want codecov Reports and Automatic Release to PyPI
    On the new repository settings->secrets add your PIPY_API_TOKEN and CODECOV_TOKEN (get the tokens on respective websites)
  5. Read the file CONTRIBUTING.md
  6. Then clone your new project and happy coding!

NOTE: WAIT until first CI run on github actions before cloning your new project.

What is included on this template?

  • ๐Ÿพ A full feature Flask application with CLI, API, Admin interface, web UI and modular configuration.
  • ๐Ÿ“ฆ A basic setup.py file to provide installation, packaging and distribution for your project.
    Template uses setuptools because it's the de-facto standard for Python packages, you can run make switch-to-poetry later if you want.
  • ๐Ÿค– A Makefile with the most useful commands to install, test, lint, format and release your project.
  • ๐Ÿ“ƒ Documentation structure using mkdocs
  • ๐Ÿ’ฌ Auto generation of change log using gitchangelog to keep a HISTORY.md file automatically based on your commit history on every release.
  • ๐Ÿ‹ A simple Containerfile to build a container image for your project.
    Containerfile is a more open standard for building container images than Dockerfile, you can use buildah or docker with this file.
  • ๐Ÿงช Testing structure using pytest
  • โœ… Code linting using flake8
  • ๐Ÿ“Š Code coverage reports using codecov
  • ๐Ÿ›ณ๏ธ Automatic release to PyPI using twine and github actions.
  • ๐ŸŽฏ Entry points to execute your program using python -m <project_name> or $ project_name with basic CLI argument parsing.
  • ๐Ÿ”„ Continuous integration using Github Actions with jobs to lint, test and release your project on Linux, Mac and Windows environments.

Curious about architectural decisions on this template? read ABOUT_THIS_TEMPLATE.md
If you want to contribute to this template please open an issue or fork and send a PULL REQUEST.


project_name Flask Application

project_description

Installation

From source:

git clone https://github.com/author_name/project_urlname project_name
cd project_name
make install

From pypi:

pip install project_name

Executing

This application has a CLI interface that extends the Flask CLI.

Just run:

$ project_name

or

$ python -m project_name

To see the help message and usage instructions.

First run

project_name create-db   # run once
project_name populate-db  # run once (optional)
project_name add-user -u admin -p 1234  # ads a user
project_name run

Go to:

Note: You can also use flask run to run the application.

More Repositories

1

py2rs

A quick reference guide for the Pythonista in the process of becoming a Rustacean
CSS
2,022
star
2

python-week-2022

Template Para a Python Week 2002 - 25 a 29 de Abril na LINUXTips
Python
1,848
star
3

rust-python-example

Example of using Rust to Extend Python
Python
776
star
4

python-project-template

DO NOT FORK, CLICK ON "Use this template" - A github template to start a Python Project - this uses github actions to generate your project based on the template.
Makefile
753
star
5

fastapi-project-template

DO NOT FORK, CLICK "Use this template" - The base to start an openapi project featuring: SQLModel, Typer, FastAPI, JWT Token Auth, Interactive Shell, Management Commands.
Python
290
star
6

nameko-example

Code for example in this post: http://brunorocha.org/python/microservices-with-python-rabbitmq-and-nameko.html
Python
191
star
7

flask-powered

List of companies using Flask framework - who is using Flask?
134
star
8

python-base

https://www.linuxtips.io/products/python-base
Python
129
star
9

rust_memes

The best memes and stickers about #rust #rustlang - listed here for easy use on talks and share
Rust
106
star
10

learndynaconf

Learn Dynaconf - the best config library for Python :)
Python
61
star
11

talkshow

A Call 4 Papers System - A simple base app as example of Flask Architecture
Python
59
star
12

wtf

What The Flask - News App da parte 1 do artigo What the Flask
Python
50
star
13

vegan_recipes

100% vegan recipes
48
star
14

dotfiles

My Environment Configurations
Lua
42
star
15

fastapi-workshop

Material do workshop - Criando API com FastAPI da LINUXtips
Python
36
star
16

python-hello-world

Hello World
28
star
17

rochacbruno

My Profile
20
star
18

i_am_learning_rust

My Rust exercices with notes (mostly based on Rust Essentials and TRPL books + exercism)
Rust
20
star
19

dundie-api

Projeto do Treinamento Python Web API LINUXtips
Shell
18
star
20

dundie-rewards

point rewards system for dunder mifflin company
Python
17
star
21

makectl

WIP - Generate and Manage targets in your makefiles.
Rust
16
star
22

python-web-api

https://cursodepython.com.br
15
star
23

DURC

Declarative Understandable Reproducible Cases - Powered by Ansible
Python
11
star
24

aprenda-rust

https://bit.ly/aprendarust
Rust
10
star
25

thunar-actions

My actions used in Thunar (XFCE file manager)
Shell
9
star
26

dynaconf_ng

You know... when a repo is created having `_ng` suffix it means the main project will evolve or is going to die...
Python
6
star
27

Postgre

A Database System Inspired by Postgres
6
star
28

rust-dynaconf

GO TO https://github.com/rubik/hydroconf
Rust
5
star
29

discord_classroom

Discord bot to work as a Learning Management System - LMS
Rust
5
star
30

python-base-1

Codigos do Treinamento Python Expert Modulo Base
Python
4
star
31

bruno-api-done

Python
4
star
32

exercism

My exercism solutions, don't COPY it!!! :) try yourself at -> https://exercism.io/
Rust
3
star
33

fastapi-workshop-template

โฌ…๏ธ Click on Use This Template - Template para o workshop de FastAPI da Codecon 2021
Python
3
star
34

rust-intro

Rust Intro Repository for Data Umbrella Workshop - This repository is almost empty, only some instructions on the readme.
3
star
35

web-api-example

Python
2
star
36

micro-rust-plugin

Micro Editor rust plugin
Lua
2
star
37

trivia

Python TUI for Open Trivia Database
Python
2
star
38

smarter

Some objects could be smarter
Python
2
star
39

make-me-a-blog

One click blog
2
star
40

ansible-test

ansible.test.case is a testing framework and test runner within ansible tasks, it talks to API using openapispec, to Selenium using pageObjects and CLI using pexpect.
HTML
2
star
41

flask_admin_example

FlaskConf 2018 talk code
Python
1
star
42

dataclass-validator

Python
1
star
43

wagd

Workspace for Ansible Galaxy Development
1
star
44

conffee-maker

`$cm` or Confee Maker is a command terminal interface TUI to generate configuration files for different applications based on templates.
Rust
1
star