Cookiecutter for fastapi projects
Project description
Cookiecutter Fastapi
A Cookiecutter template for fastapi projects, inspired by cookiecutter-django.
✨📚✨ Read the full documentation
Features
- 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
- Limit-offset pagination helpers included
- Run tests with unittest or pytest
- Sending emails using aiosmtplib or Amazon SES
- Optional integration with sentry for error logging
- Docker and docker-compose for 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 patterns on your fastapi application
- Renders fastapi projects with 100% starting test coverage
Task queues manager options
ORM/ODM 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.
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, Cookiecutter Fastapi is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3d30afa94c740539e00767af3a7ca06ead1ed304d3d9fcc9372e52ed11db7a0 |
|
MD5 | 00d0ae68998f0cfa5e80cf837aa5309c |
|
BLAKE2b-256 | abe2f6d4d1e3b9135ba84e1ebd257a61ab718c789222f947d2c9202298cb89c5 |
Close
Hashes for cookiecutter_fastapi-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f0f3d2f92b3b0555d3fa06a49a26db9fe1d2659e0b6ecfa4e89599efa32e53e |
|
MD5 | 765b5c3575ddd0a59d7b7b433cd58cfa |
|
BLAKE2b-256 | aeaa31eaeb4c17e7e8f67e04aa6aa2f57735a5cfbcf6701efc4d8549222a33ff |