Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Consiliency_treesitter-chunker /examples /sample_project /config.py
| """Configuration module.""" | |
| import os | |
| from pathlib import Path | |
| class Config: | |
| """Application configuration.""" | |
| BASE_DIR = Path(__file__).parent | |
| DATA_DIR = BASE_DIR / "data" | |
| LOG_DIR = BASE_DIR / "logs" | |
| # Database settings | |
| DB_HOST = os.getenv("DB_HOST", "localhost") | |
| DB_PORT = int(os.getenv("DB_PORT", 5432)) | |
| DB_NAME = os.getenv("DB_NAME", "myapp") | |
| # API settings | |
| API_KEY = os.getenv("API_KEY", "") | |
| API_TIMEOUT = 30 | |
| def get_db_url(cls): | |
| """Get database connection URL.""" | |
| return f"postgresql://{cls.DB_HOST}:{cls.DB_PORT}/{cls.DB_NAME}" | |
Xet Storage Details
- Size:
- 622 Bytes
- Xet hash:
- 1fbe74f78a39fc2e897275a01ad4a355a19b4de303443445bc9930be1aca9c33
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.