72 Commits

Author SHA1 Message Date
Jakub Miazek
f3db7aa33c fix lint 2024-05-12 19:55:00 +02:00
Jakub Miazek
e7b24d5d7e - fix 2024-05-11 16:36:29 +02:00
Jakub Miazek
c8efc0596c - add decorator to compile sql for pool or return scalar from statement 2024-05-11 16:29:00 +02:00
Jakub Miazek
e003454647 - split endpoint to find stuff for pool and traditional 2024-05-11 16:09:10 +02:00
Jakub Miazek
514eea7231 - implement postgres connection pool
- adapt current sqlalchemy based methods to produce raw sql
2024-05-11 16:03:33 +02:00
Jakub Miazek
918ab6c28c refactor 2024-05-08 12:27:18 +02:00
Jakub Miazek
c2975fd260 code format 2024-04-24 10:37:08 +02:00
Jakub Miazek
09674e45de wip: cache 2024-04-23 19:38:12 +02:00
Jakub Miazek
492ea79ea3 refactor: add log 2024-04-02 19:25:07 +02:00
Jakub Miazek
68e73d60ec refactor: introduce pydantic SecretStr to protect sensitive information like user password 2024-03-29 14:12:32 +01:00
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