FastAPI-Backend-Template
FastAPI-Backend-Template copied to clipboard
A backend project template with FastAPI, PostgreSQL with asynchronous SQLAlchemy 2.0, Alembic for asynchronous database migration, and Docker.
updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.3.0 → 25.11.0](https://github.com/psf/black-pre-commit-mirror/compare/24.3.0...25.11.0) - [github.com/pycqa/isort: 5.13.2 → 7.0.0](https://github.com/pycqa/isort/compare/5.13.2...7.0.0) - [github.com/codespell-project/codespell: v2.2.6 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.4.1) - [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.18.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.9.0...v1.18.2)...
backend_app | File "/usr/backend/src/repository/database.py", line 42, in backend_app | async_db: AsyncDatabase = AsyncDatabase() backend_app | ^^^^^^^^^^^^^^^ backend_app | File "/usr/backend/src/repository/database.py", line 19, in __init__ backend_app | url=self.set_async_db_uri, backend_app | ^^^^^^^^^^^^^^^^^^^^^...
backend_app | File "/usr/backend/src/api/dependencies/session.py", line 11, in backend_app | from src.repository.database import async_db backend_app | File "/usr/backend/src/repository/database.py", line 43, in backend_app | async_db: AsyncDatabase = AsyncDatabase() backend_app | ^^^^^^^^^^^^^^^ backend_app...
backend_app | File "/usr/backend/src/api/dependencies/session.py", line 11, in backend_app | from src.repository.database import async_db backend_app | File "/usr/backend/src/repository/database.py", line 43, in backend_app | async_db: AsyncDatabase = AsyncDatabase() backend_app | ^^^^^^^^^^^^^^^ backend_app...
Show this errors in console at run ``` pydantic_core._pydantic_core.ValidationError: 11 validation errors for BackendDevSettings BACKEND_SERVER_HOST Extra inputs are not permitted [type=extra_forbidden, input_value='127.0.0.1', input_type=str] For further information visit https://errors.pydantic.dev/2.0.3/v/extra_forbidden BACKEND_SERVER_PORT Extra...
Astounding and Great Template for SQL-based Project with FastAPI. There's a small typo with `USERNAME` here: https://github.com/Aeternalis-Ingenium/FastAPI-Backend-Template/blob/571981c3d6af5feccb90de25a81e82442c22b40f/backend/src/config/settings/base.py#L35C11-L35C11 Consider making this for NoSQL-based aswell as it seems really becoming "Convention" to...
I apologize if I didn't understand correctly, but it seems that the authentication itself was not implemented, and we do not have protected routes. Is that correct?
Adding link to the raised issue here - [https://github.com/Aeternalis-Ingenium/FastAPI-Backend-Template/issues/38](url)
This error is encountered due to the type ``` backend_app | DB Connection -- Retrying . . . backend_app | DB Connection --- Successfully Established! backend_app | INFO: Will watch...
I would suggest to go from formatting with Isort and Black to formatting with Ruff. Why? Following some reasons why to use Ruff: - **Speed**: 10-100x faster than traditional linters....