Cookiecutter for fastapi projects
Project description
Fastapi Cookiecutter
A Cookiecutter for fastapi projects, inspired by cookiecutter-django.
Features
- Use fastapi-users for users authentication and management
- Pydantic for settings management
- Include a cli tool built with typer to simplify project management
- Pre-commit integration included by default
- Tortoise-orm and aerich database setup by default but switchable
- Fastapi-pagination included by default
- Run tests with unittest or pytest
- Sending emails using aiosmtplib
- Optional integration with sentry for error logging
- Docker and docker-compose for and production using Traefik
- Optional setup of HTML templates rendering using jinja2
- Optional static files serving using whitenoise
- Procfile for deploying to heroku
- Optional integration with fastapi-storages for media files storage
- Implement the Health Check API pattern on your FastAPI application
- Renders fastapi projects with 100% starting test coverage
Task queues manager options
Database options
Usage
Install the cookiecutter package:
pip install cookiecutter
Now run it against this repo:
cookiecutter https://github.com/Tobi-De/cookiecutter-fastapi
You'll be prompted for some values. Provide them, then a fastapi project will be created for you.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cookiecutter-fastapi-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3fa0c3f7412880858a03b02f6073a76587bd98c57d42afb941f3ae682109ec7 |
|
MD5 | a4920873f82bd6f29865e1392cf592a7 |
|
BLAKE2b-256 | 558eb572dc04672eb9b253803b556a573ec7d51f099377716f65647b129e6260 |
Close
Hashes for cookiecutter_fastapi-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 769c445d614b275c338682465aa8aa48d148af5d0747e759854f8bedb0bf1edf |
|
MD5 | dac3a4d346d244652a77ccd6e9c03daf |
|
BLAKE2b-256 | 0e495a25c3bd692887cbfa55474952300f0a961eaf06f9675f955eeb01d80b59 |