Skip to content

Commit e69ece6

Browse files
committed
python-decouple replaced with starlette.config
1 parent f4a5057 commit e69ece6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/app/core/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
from enum import Enum
22

3-
from decouple import config
3+
#from decouple import config
4+
from starlette.config import Config
45
from pydantic_settings import BaseSettings
56

7+
config = Config(".env")
8+
69
class AppSettings(BaseSettings):
710
APP_NAME: str = config("APP_NAME", default="FastAPI app")
811
APP_DESCRIPTION: str | None = config("APP_DESCRIPTION", default=None)

src/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ passlib = "^1.7.4"
2424
SQLAlchemy = "^2.0.21"
2525
pytest = "^7.4.2"
2626
python-multipart = "^0.0.6"
27-
python-decouple = "^3.8"
2827
greenlet = "^2.0.2"
2928
httpx = "^0.25.0"
3029
pydantic-settings = "^2.0.3"

0 commit comments

Comments
 (0)