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
- csv2graph - CSV visualization and plotting pipeline
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 10 11 | |
Legacy callbacks that accept
RdeInputDirPathsandRdeOutputResourcePathas two separate arguments continue to work during the compatibility period. Accessors such aspaths.invoice,paths.invoice_org, andpaths.metadata_def_jsonmirror the most commonly used paths.
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 |
| 1.4.x | Backward compatible | CSV-to-graph API, config generator CLI, SmartTable metadata automation |
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 | |
Next Steps
- Specific module details: Refer to the module links above
- Practical usage examples: User Guide
- Contributing to development: Developer Guide