Commit b75d123
committed
Refactor PDF Renaming Tool: Transition to YAML Configuration and Modularize Code
- Removed VERSION file and harmonized company names JSON example.
- Refactored autorename-pdf.py to utilize YAML configuration instead of .env and JSON files.
- Introduced new modules: _ai_clients.py, _ai_processing.py, _config_loader.py, _document_processing.py, _pdf_utils.py, and _utils.py for better code organization.
- Updated setup script to read OCR languages from YAML configuration.
- Enhanced PDF processing with improved error handling and logging.
- Added example YAML configuration files for both main configuration and harmonized company names.
- Removed deprecated pdf_processor.py and harmonized-company-names.json.
- Updated requirements.txt to reflect new dependencies.1 parent 68e430a commit b75d123
18 files changed
Lines changed: 793 additions & 707 deletions
File tree
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
0 commit comments