API Reference¶
Auto-generated API documentation for Dashtam's Python codebase.
This API reference is generated from Google-style docstrings in the source code using mkdocstrings. It provides complete documentation for all internal classes, functions, and methods.
What's Documented Here¶
This section documents the internal Python API - the classes, services, and utilities that make up Dashtam's backend. If you're looking for the REST API (HTTP endpoints), see /docs or /redoc when running the application.
For Developers¶
Use this reference to:
- Understand service layer architecture (
AuthService,TokenService, etc.) - Learn about database models (
User,Provider,Token) - Explore utility functions (encryption, validation, etc.)
- See complete method signatures and parameters
- Understand return types and exceptions
Sections¶
Services¶
Business logic and service layer classes:
AuthService- User authentication and registrationTokenService- OAuth token managementPasswordService- Password hashing and validationJWTService- JWT token generation and validationEmailService- Email sending via AWS SESEncryptionService- Token encryption/decryption
Models¶
SQLModel database models:
User- User accounts and authenticationProvider- OAuth provider connectionsToken- OAuth access/refresh tokensRefreshToken- User refresh tokensProviderAuditLog- Audit trail
Core¶
Core utilities and configuration:
Settings- Application configuration- Database session management
- Core initialization utilities
Quick Links¶
Related Documentation:
- FastAPI Documentation - Web framework reference
- SQLModel Documentation - ORM patterns
- Pydantic Documentation - Data validation
Project Documentation:
- Architecture Overview - System design
- Testing Strategy - Testing approach
- Development Guides - How-to guides