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
- Sending emails using aiosmtplib or Amazon SES
- Optional integration with sentry for error logging
- Production Dockerfile included
- Integration with arq for background tasks
- Optional setup of HTML templates rendering using jinja2
- Procfile for deploying to heroku
- Implement the Health Check API patterns on your fastapi application
ORM/ODM options
Usage
Install the cookiecutter package:
pip install cookiecutter black isort
Note: Black
and isort
are used to format your project right after it has been generated.
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
Hashes for cookiecutter_fastapi-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3992c7bf3144bd44663ae935d0c382031baa3817c125f754886b73bb92fd620 |
|
MD5 | 222cf9738e2505eb70aff5a834f22140 |
|
BLAKE2b-256 | 7ae8dd56eba65a4d80ec3f4333053ecc77ef5b00c2caf69049fd0466afc1e1f4 |
Hashes for cookiecutter_fastapi-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0017517bcbd06683038c9c5fdc7c38c28f736531f33f0881e391937f3db80019 |
|
MD5 | 900ab1f4bc5daff1d1bab14fe3eff202 |
|
BLAKE2b-256 | 3c419d1034604030d8f98bd7e8e58ed6c2fee298bd8c7ea5d62218931bd697ff |