All configuration is available via theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/exegia/corpora-py/llms.txt
Use this file to discover all available pages before exploring further.
Settings class and pre-resolved constants in exegia.utils.constant. The module resolves the correct .env file at import time and exposes every value as a typed attribute — no manual os.getenv() calls needed in application code.
Importing Settings
Usesettings (the module-level singleton) for the common case, or call get_settings() explicitly when you need the factory:
Available Constants
All constants below are importable directly fromexegia.utils.constant. They are resolved once at import time from the active Settings instance.
Settings Class Fields
TheSettings class extends pydantic_settings.BaseSettings. Fields map directly to environment variable names (field names are lowercase; env variable names are uppercase).
| Field | Type | Env Variable | Default |
|---|---|---|---|
supabase_url | str | SUPABASE_URL | "" |
supabase_storage_bucket | str | — | "corpora" |
supabase_publishable_key | str | SUPABASE_PUBLISHABLE_KEY | "" |
supabase_secret_key | str | SUPABASE_SECRET_KEY | "" |
project_ref | str | PROJECT_REF | "" |
supabase_db_url | str | SUPABASE_DB_URL | "" |
supabase_db_password | str | SUPABASE_DB_PASSWORD | "" |
supabase_db_user | str | SUPABASE_DB_USER | "" |
supabase_storage_access_key | str | SUPABASE_STORAGE_ACCESS_KEY | "" |
supabase_storage_secret_key | str | SUPABASE_STORAGE_SECRET_KEY | "" |
environment | str | ENVIRONMENT | "development" |
cors_origins | str | CORS_ORIGINS | "" |
open_ai_key | str | OPENAI_KEY | "" |
development_team | str | DEVELOPMENT_TEAM | "" |
apple_team_id | str | APPLE_TEAM_ID | "" |
cors_origins_list Property
The cors_origins_list property parses the raw CORS_ORIGINS string into a Python list, stripping whitespace around each entry:
CORS_ORIGINS returns an empty list.
Local Supabase with OrbStack
When running Supabase locally using OrbStack,SUPABASE_URL is not used by the internal client. Instead, the SUPABASE_API_URL constant and database host are constructed automatically from PROJECT_REF:
- API (Kong gateway):
https://supabase_kong_{PROJECT_REF}.orb.local - Database host:
supabase_db_{PROJECT_REF}.orb.local - Studio URL:
supabase_studio_{PROJECT_REF}.orb.local
PROJECT_REF in your .env.development file to match your local Supabase container name.