How tfrancoi/odoo_csv_import works
This is a Python library for moving CSV data to and from Odoo and for transforming CSV data before import. The main workflows are parallel, batched import through Odoo’s model load API and batched export through model searches and export calls; the transformation framework supplies field mapping and file-processing capabilities. The graph includes the central modules named by the source index. Several modules, including workflow and checker, were not excerpted, so their internal relationships are left unspecified.
Main entry points: import_threaded.py Batch importer · export_threaded.py Batch exporter · transform.py CSV processor · io.py File I/O
Components 18
CSV transfer
- Import command
odoo_import_thread.py - Batch importer
odoo_csv_tools/import_threaded.py - Export command
odoo_export_thread.py - Batch exporter
odoo_csv_tools/export_threaded.py - Import checker
odoo_csv_tools/lib/checker.py
CSV transformation
- CSV processor
odoo_csv_tools/lib/transform.py - Field mappers
odoo_csv_tools/lib/mapper.py - CSV workflows
odoo_csv_tools/lib/workflow.py
Shared runtime
- Connection config
odoo_csv_tools/lib/conf_lib.py - RPC threading
odoo_csv_tools/lib/internal/rpc_thread.py - CSV reader
odoo_csv_tools/lib/internal/csv_reader.py - File I/O
odoo_csv_tools/lib/internal/io.py - Batch utilities
odoo_csv_tools/lib/internal/tools.py - Skip exceptions
odoo_csv_tools/lib/internal/exceptions.py
Other components
- Library user
- CSV input
- CSV output
- Odoo server
Connections 23
- Library user → Import command: runs import
README.md - Import command → Batch importer: dispatches
odoo_import_thread.py - CSV input → Batch importer: reads rows
odoo_csv_tools/import_threaded.py - Batch importer → Connection config: gets connection
odoo_csv_tools/import_threaded.py - Batch importer → RPC threading: extends
odoo_csv_tools/import_threaded.py - Batch importer → CSV reader: reads CSV
odoo_csv_tools/import_threaded.py - Batch importer → File I/O: opens files
odoo_csv_tools/import_threaded.py - Batch importer → Batch utilities: batches rows
odoo_csv_tools/import_threaded.py - Batch importer → Odoo server: loads records
odoo_csv_tools/import_threaded.py - Batch importer → CSV output: writes failures
odoo_csv_tools/import_threaded.py - Library user → Export command: runs export
README.md - Export command → Batch exporter: dispatches
odoo_export_thread.py - Batch exporter → Connection config: gets connection
odoo_csv_tools/export_threaded.py - Batch exporter → RPC threading: extends
odoo_csv_tools/export_threaded.py - Batch exporter → Batch utilities: batches IDs
odoo_csv_tools/export_threaded.py - Batch exporter → Odoo server: searches and exports
odoo_csv_tools/export_threaded.py - Batch exporter → CSV output: writes rows
odoo_csv_tools/export_threaded.py - Library user → CSV processor: transforms CSV
README.md - CSV processor → CSV input: reads file
odoo_csv_tools/lib/transform.py - CSV processor → Field mappers: applies mappings
odoo_csv_tools/lib/transform.py - CSV processor → File I/O: writes files
odoo_csv_tools/lib/transform.py - Field mappers → Skip exceptions: raises skip
odoo_csv_tools/lib/mapper.py - CSV reader → File I/O: supports CSV I/O
odoo_csv_tools/lib/internal/csv_reader.py