MCPcopy
hub / github.com/GetBindu/Bindu / ProjectSettings

Class ProjectSettings

bindu/settings.py:89–120  ·  view source on GitHub ↗

Project-level configuration settings. Contains general application settings like environment, debug mode, and project metadata.

Source from the content-addressed store, hash-verified

87
88
89class ProjectSettings(BaseSettings):
90 """
91 Project-level configuration settings.
92
93 Contains general application settings like environment, debug mode,
94 and project metadata.
95 """
96
97 model_config = SettingsConfigDict(
98 env_file=".env",
99 env_prefix="PROJECT__",
100 extra="allow",
101 )
102
103 environment: str = Field(
104 default="development",
105 validation_alias=AliasChoices("ENVIRONMENT", "PROJECT__ENVIRONMENT"),
106 )
107 name: str = "bindu Agent"
108 version: str = "0.1.0"
109
110 @computed_field
111 @property
112 def debug(self) -> bool:
113 """Compute debug mode based on environment."""
114 return self.environment != "production"
115
116 @computed_field
117 @property
118 def testing(self) -> bool:
119 """Compute testing mode based on environment."""
120 return self.environment == "testing"
121
122
123class DIDSettings(BaseSettings):

Callers 1

SettingsClass · 0.85

Calls 1

FieldFunction · 0.50

Tested by

no test coverage detected