Commit Graph

112 Commits

Author SHA1 Message Date
Jakub Miazek 7e34800d78 refactor: simplify postgresql env vars 2024-03-24 18:19:19 +01:00
Jakub Miazek f7abc9f3b7 refactor: redis url as computed config attr 2024-03-24 11:05:22 +01:00
Jakub Miazek 053fbe00ce drop SQL_URL 2024-03-24 10:51:35 +01:00
Jakub Miazek 17ebcc5ae3 wip: setting refactor 2024-03-23 21:04:35 +01:00
Jakub Miazek e65b57e7ad wip: docs 2024-02-17 12:21:55 +01:00
Jakub Miazek 45e1c3d5a8 wip: document import endpoint 2024-02-17 12:12:28 +01:00
Jakub Miazek a95991a6cb wip: document import endpoint 2024-02-17 09:47:14 +01:00
Jakub Miazek 101fa05515 wip: add import endpoint 2024-02-17 08:40:49 +01:00
Jakub Miazek 51aa79788b reset alembic 2024-01-02 21:14:38 +01:00
Jakub Miazek d2c17a21d4 add sqlalchemy declarative base 2023-11-13 19:50:35 +01:00
Jakub Miazek 97a9cde3e8 add doc strings for shakespeare models 2023-11-13 19:41:48 +01:00
Jakub Miazek a6b6725eaf The Redis database operations are abstracted into separate functions 2023-11-09 21:43:53 +01:00
Jakub Miazek 32367d783d This ensures that the Redis connection is always properly closed. 2023-11-09 21:32:01 +01:00
Jakub Miazek 4d79561f8d instantiate logger in a standard way 2023-11-09 21:25:40 +01:00
Jakub Miazek 4e2d3026c8 refactor 2023-10-24 20:28:30 +02:00
Jakub Miazek e75a4cce05 format code 2023-10-21 15:37:12 +02:00
Jakub Miazek 3291fa784e adapt shakespeare models to sqlalchemy 2.0 2023-10-21 15:33:40 +02:00
Jakub Miazek 3294839b2a use DeclarativeBase class for models Base 2023-09-18 08:20:58 +02:00
Jakub Miazek 5469121dfe fix imports 2023-09-17 16:01:19 +02:00
Jakub Miazek c4ced870cd drop redundant lru cache 2023-09-17 15:22:08 +02:00
Jakub Miazek bacd7ba6de fix code lint 2023-09-17 15:18:42 +02:00
Jakub Miazek 92249e1b8b remove directive with no parameters 2023-09-17 14:42:15 +02:00
Jakub Miazek d0372e4420 apply sqlalchemy 2.0 declarative base and mapped columns 2023-09-17 11:05:21 +02:00
Jakub Miazek 76b0d427e7 user pass to be hash with bcrypt 2023-09-02 15:15:36 +02:00
Jakub Miazek f6b3958d12 user pass to be hash with bcrypt 2023-09-02 15:14:31 +02:00
Jakub Miazek 93a32bdd9c fix lint UP008 2023-08-13 08:59:35 +02:00
Jakub Miazek aaa8d9faf2 remove unused imports 2023-08-02 10:47:38 +02:00
Levi Notik 4c8d783289 Update to use async_sessionmaker 2023-08-02 01:37:04 -04:00
Jakub Miazek f77ab40352 lint and format 2023-07-24 19:29:31 +02:00
Jakub Miazek 89595175e6 add uni tests for user auth 2023-07-24 15:07:44 +02:00
Jakub Miazek 32346cd7e7 add auth and redis endpoints 2023-07-24 15:07:29 +02:00
Jakub Miazek 0b2d2e7933 introduce pydantic config dict 2023-07-24 12:53:57 +02:00
Jakub Miazek 603225a0de add auth user pydantic schemas 2023-07-24 12:51:55 +02:00
Jakub Miazek d13d5abcda add auth bearer service and create token meth 2023-07-24 12:50:43 +02:00
Jakub Miazek a1fbb86bab update project setting with new env vars 2023-07-24 12:49:07 +02:00
Jakub Miazek 0032f4418a add user migration 2023-07-22 14:24:14 +02:00
Jakub Miazek a865abcdb3 add user model 2023-07-22 14:24:06 +02:00
Jakub Miazek d05f2cdb2e migrate to pydantic 2 2023-07-07 20:32:41 +02:00
Jakub Miazek fce74a0016 logger refactor 2023-06-03 15:34:31 +02:00
Jakub Miazek 63014e11db refactor base model crud meths 2023-04-28 13:19:03 +02:00
Jakub Miazek ee1d241d23 format 2023-04-10 21:42:13 +02:00
Jakub Miazek aa1b9ec867 unify logging with rich 2023-04-10 21:42:06 +02:00
Jakub Miazek 429909344d unify logging with rich 2023-04-10 21:42:00 +02:00
Jakub Miazek 8af785be98 add singleton design pattern 2023-04-10 21:41:30 +02:00
Jakub Miazek 2bcd95556d lint code 2023-03-29 21:50:34 +02:00
Jakub Miazek 1c2223424d save and update 2023-03-29 21:43:25 +02:00
Jakub Miazek 30267c782a save and update 2023-03-28 22:11:37 +02:00
Jakub Miazek e215112430 test ci 2023-03-27 21:32:58 +02:00
Jakub Miazek fbf2b339ad try query param annotations 2023-03-22 21:20:02 +01:00
Jakub Miazek d274b0bfa9 refactor alembic migrations 2023-03-11 21:19:47 +01:00