Skip to content

Commit b75d123

Browse files
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

.env.example

Lines changed: 0 additions & 32 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
/build/
33
/dist/
44
/venv/
5-
/dist/harmonized-company-names.json
6-
/dist/.env
5+
/dist/harmonized-company-names.yaml
6+
/dist/config.yaml
77
build.py
8-
.env
9-
harmonized-company-names.json
8+
config.yaml
9+
harmonized-company-names.yaml
1010
autorename-pdf-release.zip
1111
*.pdf
1212
*.exe

0 commit comments

Comments
 (0)