API Reference
Purpose
This section provides technical specifications for all features of RDEToolKit. It is a comprehensive reference including detailed functionality, parameters, return values, and usage examples for each module.
API Documentation Structure
RDEToolKit's API documentation is structured using a hybrid approach:
- Auto-generated parts: Detailed technical specifications generated from docstrings in source code
- Manually created parts: Practical usage examples and inter-module collaboration methods
Core Modules
Workflow Management
Configuration and File Operations
Data Processing
- invoicefile - Invoice file processing
- validation - Data validation
- rde2util - RDE-related utility functions
Representative Image Operations
- img2thumb - Image to thumbnail conversion
Error Handling and Logging
- rdelogger - Logging functionality
- errors - Error handling
- exceptions - Exception handling
Data Models
Configuration Models
- models.config - Configuration data structure definitions
RDE-related Models
- models.rde2types - RDE-related type definitions
- models.invoice - Invoice data structure
- models.metadata - Metadata management
Processing Result Models
- Processing result management functionality is integrated into each module
Implementation Modules
Controllers
- impl.input_controller - Input mode management
- impl.compressed_controller - Compressed file management
Interfaces
- interface.filechecker - File validation interface
Command Line
- CLI Commands - Command line interface usage
Usage Patterns
Basic Usage
basic_usage.py | |
---|---|
1 2 3 4 5 6 7 8 9 |
|
Configuration File Usage
config_usage.py | |
---|---|
1 2 3 4 5 6 7 8 |
|
Error Handling
error_handling.py | |
---|---|
1 2 3 4 5 6 7 8 |
|
API Version Information
Version | Compatibility | Major Changes |
---|---|---|
1.0.x | Stable | Initial release |
1.1.x | Backward compatible | New features added |
1.2.x | Backward compatible | Performance improvements |
API Stability
Backward compatibility is maintained within major versions. Breaking changes only occur during major version upgrades.
Developer Information
Type Hints
RDEToolKit supports complete type hints:
type_hints.py | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|
Next Steps
- Specific module details: Refer to the module links above
- Practical usage examples: User Guide
- Contributing to development: Developer Guide