Skip to content

Commit

Permalink
add docstring to serversettings
Browse files Browse the repository at this point in the history
  • Loading branch information
eelcovdw committed Oct 9, 2024
1 parent 8363788 commit 35eb264
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions syftbox/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@


class ServerSettings(BaseSettings):
"""
Reads the server settings from the environment variables, using the prefix SYFTBOX_.
example:
`export SYFTBOX_DATA_FOLDER=data/data_folder`
will set the server_settings.data_folder to `data/data_folder`
see: https://docs.pydantic.dev/latest/concepts/pydantic_settings/#parsing-environment-variable-values
"""

model_config = SettingsConfigDict(env_prefix="SYFTBOX_")

data_folder: Path = Path("data")
Expand Down

0 comments on commit 35eb264

Please sign in to comment.