fastapi-alembic-sqlmodel-async
fastapi-alembic-sqlmodel-async copied to clipboard
This is a project template which uses FastAPI, Pydantic 2.0, Alembic and async SQLModel as ORM. It shows a complete async CRUD using authentication and role base access control.
I suggest to convert this repository into Github template repository or you can support `cookiecutter` for better approach to this template.
I see on your todo list to use KeyCloak. Might I suggest a cloud solution instead such as: - Auth0 - highly recommend - Cognito - good, but can get...
RT https://github.com/agnirudrasil/avault/blob/c6ca7037a5a99d97fcf43eb6b9ef935439171c02/backend/app/api/utils/snowflake.py
``` celery.conf.update({ "beat_dburi": settings.SYNC_CELERY_BEAT_DATABASE_URI, 'beat_schedule': { 'run-periodic-task-every-60-seconds': { 'task': 'tasks.periodic', 'schedule': timedelta(seconds=10), }, } }) ``` ``` async def get_hero(hero_id: UUID) -> list[HeroRead]: async with SessionLocal() as session: await asyncio.sleep(5)...
Good afternoon. Have you ever had a chance to add code verification via mypy to the project?
During use, I noticed that Refresh and Access tokens do not get into the Redis database try to connect and see what data is in the redis database During authorization,...
Hi @jonra1993, I am using `logger = logging.getLogger(__name__)` to do my logging at `DEBUG` level. How do I dump these logs daily to disk? Thank you.
Hi @jonra1993, my frontend developer says that he is unable to upload any user image due to CORS blocking. In my `.env` file, I already have the following: ``` ......
Right now we can use syncify with the CRUD functions inside celery, but aysncpg is still in charge of the session. This seems suboptimal but switching into psychopg seems like...
How about replacing Celery with Prefect? I find Prefect more suitable for this build and it is in many ways more convenient than Celery. At least Prefect supports asyncio