How pawlisk/gmp works
GMP+ Export is a Python ETL importer: it fetches and normalizes company locations, saves location identifiers, fetches each location’s certificates, and exports results to JSON/XML and optionally SQL Server. The graph follows the documented run() workflow and sampled calls. XML, CSV, JSON, database, and logging capabilities are represented; some configuration and error-handling details are documented but their full runtime wiring was not sampled.
Main entry points: app/main.py Import workflow · api_client.py API client · main.py CLI launcher · exporter.py Location CSV
Components 16
Import control
- CLI launcher
main.py - Import workflow
app/main.py - Configuration
app/config.py
GMP+ acquisition
- API client
app/api_client.py - GMP+ API
- Data normalization
app/mappers.py
Exports
- Location CSV
app/exporter.py - Certificate JSON
app/exporter.py - XML exports
app/exporter.py - Local output files
Persistence and operations
- Database access
app/database.py - Microsoft SQL Server
- Logging setup
app/logger_config.py - Log files
- Import utilities
app/utils.py
Other components
- Operator
Connections 18
- Operator → CLI launcher: starts
README.md - CLI launcher → Import workflow: calls
main.py - Import workflow → Configuration: loads
app/main.py - Import workflow → API client: fetches locations
app/main.py - Import workflow → API client: fetches certificates
app/main.py - API client → GMP+ API: requests data
app/api_client.py - API client → Data normalization: normalizes responses
app/api_client.py - Import workflow → Location CSV: saves locations
app/main.py - Import workflow → Certificate JSON: saves certificates
app/main.py - Import workflow → XML exports: exports XML
app/main.py - Location CSV → Local output files: writes CSV
app/exporter.py - Certificate JSON → Local output files: writes JSON
app/exporter.py - XML exports → Local output files: writes XML
app/exporter.py - Import workflow → Database access: stores certificates
app/main.py - Database access → Microsoft SQL Server: reads and writes
app/database.py - Import workflow → Logging setup: configures logging
app/main.py - Logging setup → Log files: writes logs
app/logger_config.py - Import workflow → Import utilities: pauses requests
app/main.py