-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Viktor Karamanis
committed
Dec 3, 2024
1 parent
7ffa529
commit 91f80bf
Showing
5 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.1.4" | ||
__version__ = "0.1.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
__all__ = ["settings"] | ||
|
||
from neu_users.config.settings import settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from dotenv import find_dotenv | ||
from neu_sdk.config.settings import Settings as DefaultSettings | ||
from pydantic import BaseModel, EmailStr, Field | ||
from pydantic_settings import SettingsConfigDict | ||
|
||
|
||
class Superuser(BaseModel): | ||
password: str = Field("Neu123@!") | ||
email: EmailStr = Field("info@neu.com") | ||
|
||
|
||
class Settings(DefaultSettings): | ||
model_config = SettingsConfigDict( | ||
env_nested_delimiter="_", | ||
env_file=find_dotenv(), | ||
env_file_encoding="utf-8", | ||
extra="ignore", | ||
) | ||
|
||
superuser: Superuser = Superuser() | ||
|
||
|
||
settings = Settings() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters