feat: Add new tools and configurations for Castle platform
- Introduced `uv.lock` for dependency management with various packages including `pytest`, `colorama`, and `pluggy`. - Added `pyrightconfig.json` for Python type checking configuration. - Expanded `recommendations.md` with detailed scaling recommendations and project management strategies. - Created shared `ruff.toml` for consistent linting across projects. - Developed `Castle Tools` with various utilities including Android backup, browser automation, document conversion, and search tools. - Implemented `backup-collect` and `schedule` tools for system administration tasks. - Enhanced `search` functionality with indexing and querying capabilities using Tantivy. - Added comprehensive documentation for each tool, including usage examples and installation instructions.
This commit is contained in:
21
dashboard-api/src/dashboard_api/config.py
Normal file
21
dashboard-api/src/dashboard_api/config.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""Configuration for dashboard-api."""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
"""Service settings loaded from environment variables."""
|
||||
|
||||
castle_root: Path = Path("/data/repos/castle")
|
||||
host: str = "0.0.0.0"
|
||||
port: int = 9020
|
||||
|
||||
model_config = {
|
||||
"env_prefix": "DASHBOARD_API_",
|
||||
"env_file": ".env",
|
||||
}
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user