settings-doc
settings-doc copied to clipboard
Fix module/class not found error
When following the docs,
settings-doc generate --class src.settings.AppSettings --output-format markdown
Usage: settings-doc generate [OPTIONS]
Try 'settings-doc generate --help' for help.
Error: Invalid value for '--class' / '-c': Cannot read the settings class: No module named 'src'
Folder structure:
.
└── src/
├── __init__.py
└── settings.py
settings.py
from pydantic_settings import BaseSettings
class AppSettings(BaseSettings):
logging_level: str