22[ ![ ] ( https://img.shields.io/pypi/dm/fastapi_template?style=for-the-badge )] ( https://pypi.org/project/fastapi-template/ )
33<div align =" center " >
44<img src =" https://raw.githubusercontent.com/s3rius/FastAPI-template/master/images/logo.png " width =700 >
5- <div ><i >Flexible and Lightweight general-purpose template for FastAPI.</i ></div >
5+ <div ><i >Flexible general-purpose template for FastAPI.</i ></div >
66</div >
77
88## Usage
1111
1212Poetry version must be greater or equal than 1.1.8. Otherwise it won't be able to install SQLAlchemy.
1313
14+ <div align =" center " >
15+ <img src =" https://user-images.githubusercontent.com/18153319/137182689-ce714440-7576-46a0-8f96-862a8469a28c.gif " />
16+ <p >Templator in action</p >
17+ </div >
18+
19+ You can install it directly from pypi with pip.
1420``` bash
1521python3 -m pip install fastapi_template
1622python3 -m fastapi_template
@@ -22,7 +28,7 @@ docker-compose -f deploy/docker-compose.yml --project-directory . build
2228docker-compose -f deploy/docker-compose.yml --project-directory . up --build
2329```
2430
25- If you want to install in from sources then try this:
31+ If you want to install it from sources, try this:
2632``` shell
2733python3 -m pip install poetry
2834python3 -m pip install .
@@ -34,33 +40,33 @@ Also you can use it with docker.
3440docker run --rm -it -v " $( pwd) :/projects" s3rius/fastapi_template
3541```
3642
37- <div align =" center " >
38- <img src =" https://user-images.githubusercontent.com/18153319/137182689-ce714440-7576-46a0-8f96-862a8469a28c.gif " />
39- <p >Templator in action</p >
40- </div >
41-
42-
4343## Features
4444
45- One of the coolest features is that this project is extremely small and handy.
46- You can choose between different databases and even ORMs.
47- Currently SQLAlchemy1.4, TortoiseORM and Ormar are supported.
45+ One of the coolest features is that this project is extremely configurable.
46+ You can choose between different databases and even ORMs, or
47+ you can even generate a project without a database!
48+ Currently SQLAlchemy1.4, TortoiseORM, Piccolo and Ormar are supported.
4849
49- TUI and CLI and excellent code documentation.
50+ This project can run as TUI or CLI and has excellent code documentation.
5051
5152Generator features:
5253- You can choose between GraphQL and REST api;
5354- Different databases support;
5455- Different ORMs support;
5556- Optional migrations for each ORM except raw drivers;
56- - redis support;
57- - rabbitmq support;
57+ - Optional redis support;
58+ - Optional rabbitmq support;
5859- different CI\CD;
59- - Kubernetes config generation;
60- - Demo routers and models;
61- - Pre-commit integrations;
62- - Generated tests;
63- - Tests for the generator itself.
60+ - Optional Kubernetes config generation;
61+ - Optional Demo routers and models (This helps you to see how project is structured);
62+ - Pre-commit integration;
63+ - Generated tests with almost 90% coverage;
64+ - Tests for the generator itself;
65+ - Optional Prometheus integration;
66+ - Optional Sentry integration;
67+ - Optional Loguru logger;
68+ - Optional Opentelemetry integration.
69+
6470
6571This project can handle arguments passed through command line.
6672
@@ -74,7 +80,8 @@ usage: FastAPI template [-h] [--version] [--name PROJECT_NAME]
7480 [--orm {ormar,sqlalchemy,tortoise,psycopg,piccolo}]
7581 [--ci {none,gitlab_ci,github}] [--redis] [--rabbit]
7682 [--migrations] [--kube] [--dummy] [--routers]
77- [--swagger] [--force] [--quite]
83+ [--swagger] [--prometheus] [--sentry] [--loguru]
84+ [--opentelemetry] [--force] [--quite]
7885
7986optional arguments:
8087 -h, --help show this help message and exit
@@ -98,6 +105,10 @@ optional arguments:
98105 Add dummy model
99106 --routers Add example routers
100107 --swagger Enable self-hosted Swagger
108+ --prometheus Add prometheus integration
109+ --sentry Add sentry integration
110+ --loguru Add loguru logger
111+ --opentelemetry Add opentelemetry integration
101112 --force Owerrite directory if it exists
102113 --quite Do not ask for features during generation
103114` ` `
0 commit comments