Initial commit — PlantGuideScraper project

This commit is contained in:
Trey T
2026-04-12 09:54:27 -05:00
commit 6926f502c5
87 changed files with 29120 additions and 0 deletions

38
backend/app/config.py Normal file
View File

@@ -0,0 +1,38 @@
from pydantic_settings import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
# Database
database_url: str = "sqlite:////data/db/plants.sqlite"
# Redis
redis_url: str = "redis://redis:6379/0"
# Storage paths
images_path: str = "/data/images"
exports_path: str = "/data/exports"
imports_path: str = "/data/imports"
logs_path: str = "/data/logs"
# API Keys
flickr_api_key: str = ""
flickr_api_secret: str = ""
inaturalist_app_id: str = ""
inaturalist_app_secret: str = ""
trefle_api_key: str = ""
# Logging
log_level: str = "INFO"
# Celery
celery_concurrency: int = 4
class Config:
env_file = ".env"
extra = "ignore"
@lru_cache()
def get_settings() -> Settings:
return Settings()