Skip to content

Commit 3c630ed

Browse files
authored
Merge pull request #1 from ArielMAJ/wip
Wip
2 parents 7ad990c + c5c966e commit 3c630ed

15 files changed

Lines changed: 8039 additions & 263 deletions

api/.env-sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
ENVIRONMENT=DEV
2+
13
APPLICATION_HOST=127.0.0.1
24
APPLICATION_PORT=3000
35

api/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
--directory=api,
1515
--without-hashes,
1616
-o,
17-
requirements.txt,
17+
api/requirements.txt,
1818
-f,
1919
requirements.txt,
2020
]

api/poetry.lock

Lines changed: 155 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "api"
3-
version = "0.1.3"
3+
version = "0.1.0"
44
description = ""
55
authors = ["ArielMAJ <ariel.maj@hotmail.com>"]
66
readme = "README.md"
@@ -9,10 +9,13 @@ readme = "README.md"
99
python = "^3.9"
1010
fastapi = "^0.105.0"
1111
uvicorn = "^0.24.0.post1"
12+
requests = "^2.31.0"
13+
loguru = "^0.7.2"
1214

1315

1416
[tool.poetry.group.dev.dependencies]
1517
poetry-plugin-export = "^1.6.0"
18+
pre-commit = "^3.6.0"
1619

1720
[build-system]
1821
requires = ["poetry-core"]

api/requirements.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
annotated-types==0.6.0 ; python_version >= "3.9" and python_version < "4.0"
22
anyio==3.7.1 ; python_version >= "3.9" and python_version < "4.0"
3+
certifi==2023.11.17 ; python_version >= "3.9" and python_version < "4.0"
4+
charset-normalizer==3.3.2 ; python_version >= "3.9" and python_version < "4.0"
35
click==8.1.7 ; python_version >= "3.9" and python_version < "4.0"
4-
colorama==0.4.6 ; python_version >= "3.9" and python_version < "4.0" and platform_system == "Windows"
6+
colorama==0.4.6 ; python_version >= "3.9" and python_version < "4.0" and (sys_platform == "win32" or platform_system == "Windows")
57
exceptiongroup==1.2.0 ; python_version >= "3.9" and python_version < "3.11"
68
fastapi==0.105.0 ; python_version >= "3.9" and python_version < "4.0"
79
h11==0.14.0 ; python_version >= "3.9" and python_version < "4.0"
810
idna==3.6 ; python_version >= "3.9" and python_version < "4.0"
11+
loguru==0.7.2 ; python_version >= "3.9" and python_version < "4.0"
912
pydantic-core==2.14.5 ; python_version >= "3.9" and python_version < "4.0"
1013
pydantic==2.5.2 ; python_version >= "3.9" and python_version < "4.0"
14+
requests==2.31.0 ; python_version >= "3.9" and python_version < "4.0"
1115
sniffio==1.3.0 ; python_version >= "3.9" and python_version < "4.0"
1216
starlette==0.27.0 ; python_version >= "3.9" and python_version < "4.0"
1317
typing-extensions==4.9.0 ; python_version >= "3.9" and python_version < "4.0"
18+
urllib3==2.1.0 ; python_version >= "3.9" and python_version < "4.0"
1419
uvicorn==0.24.0.post1 ; python_version >= "3.9" and python_version < "4.0"
20+
win32-setctime==1.1.0 ; python_version >= "3.9" and python_version < "4.0" and sys_platform == "win32"

api/src/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44

55
import os
6+
from functools import lru_cache
67

78

89
class Config:
@@ -25,3 +26,8 @@ class TestConfig(Config):
2526
TESTING = True
2627
DEBUG = False
2728
PRESERVE_CONTEXT_ON_EXCEPTION = False
29+
30+
31+
@lru_cache()
32+
def get_settings():
33+
return Config()

0 commit comments

Comments
 (0)