Welcome to the Tux API Reference! This section provides comprehensive auto-generated documentation for the entire codebase.
Quick Navigation
📖 Documentation Types
- CLI Reference - Command-line interface documentation
- Configuration Reference - Configuration schema and options
- Source Code - View source code on GitHub
API Documentation
The API reference is automatically generated from the codebase using mkdocstrings. It includes:
- Type hints for all parameters and return values
- Docstrings with detailed explanations
- Source code links to view implementations
- Cross-references between related components
Navigation
Use the navigation menu to browse by module:
- Core - Core bot functionality (app, bot, cogs, permissions)
- Database - Database models, controllers, and services
- Services - Service layer (wrappers, handlers, Sentry)
- Modules - Command modules (moderation, utility, features)
- UI - User interface components (embeds, views, modals)
- Shared - Shared utilities (config, exceptions, constants)
Or use the search function to find specific classes, functions, or modules.
CLI Reference
Command-line tools for development and administration:
Includes documentation for:
uv run tux
- Bot managementuv run db
- Database operationsuv run dev
- Development toolsuv run tests
- Test runneruv run docker
- Docker managementuv run docs
- Documentation toolsuv run config
- Config generation
Configuration Reference
Complete configuration schema with all available options:
Auto-generated from the pydantic models, includes:
- Environment variable definitions
- Config file options (TOML/YAML/JSON)
- Default values
- Type information
- Descriptions
For Developers
Using the API Reference
When developing:
- Browse by Module - Explore related functionality
- Search - Find specific functions or classes
- Read Docstrings - Understand parameters and behavior
- Check Source - Click "Source" links to view implementation
- Follow Cross-References - Navigate to related code
Documentation Standards
All code should include:
- Type hints on all functions and methods
- Numpy-style docstrings with descriptions
- Parameter documentation with types and descriptions
- Return value documentation
- Exception documentation (Raises section)
- Usage examples (Examples section, where applicable)
External References
Python Standard Library
Discord.py
Database
Other Dependencies
Need Help?
Finding What You Need
- Use Search - Press
/
to search the docs - Check Index - Browse the navigation sidebar
- Follow Links - Cross-references link related code
- Read Examples - Look for Examples sections in docstrings
Getting Support
- Developer Guide - Development documentation
- Discord Server - Ask in #development
- GitHub Discussions - Technical discussions
Note: This reference is auto-generated from the source code. For conceptual documentation and guides, see the Developer Guide.