GS1 GPC Import

User Guide

  • Installation
    • Requirements
    • Installing from PyPI
    • Installing from Source
    • PostgreSQL Support
    • Development Installation
  • Quickstart
    • Basic Usage
      • Basic Import
      • Download Latest Data
      • Specify Language
      • Custom Files
      • Export Database to SQL
      • Export Only (No Import)
      • PostgreSQL Support
    • Python API Usage
  • Command Line Interface
    • Commands
      • import-gpc
      • export-sql
    • Examples
      • Basic Import
      • Download Latest Data
      • Specify Language
      • Custom Files
      • Export Database to SQL
      • Export Only (No Import)
      • PostgreSQL Support
      • Verbose Logging
  • Database Schema
    • Tables
      • gpc_segments
      • gpc_families
      • gpc_classes
      • gpc_bricks
      • gpc_attribute_types
      • gpc_attribute_values
    • Example Queries
      • List all segments and families
      • List all hierarchy levels with limit
      • Filter by segment
  • Advanced Usage
    • PostgreSQL Support
    • Custom XML Files
    • Logging
    • Programmatic Usage

API Reference

  • CLI Module
  • Database Module
    • DatabaseConnection
      • DatabaseConnection.__init__()
      • DatabaseConnection.connect()
      • DatabaseConnection.close()
      • DatabaseConnection.commit()
      • DatabaseConnection.rollback()
    • setup_database()
    • insert_segment()
    • insert_family()
    • insert_class()
    • insert_brick()
    • insert_attribute_type()
    • insert_attribute_value()
  • Parser Module
    • process_gpc_xml()
  • Downloader Module
    • find_latest_xml_file()
    • download_latest_gpc_xml()
  • Exporter Module
    • dump_database_to_sql()

Development

  • Contributing
    • Setting Up Development Environment
    • Code Style
    • Pull Request Process
    • Testing
    • Documentation
  • Testing
    • Running Tests
    • Writing Tests
    • Test Data
    • Continuous Integration
  • Releasing
    • Version Numbering
    • Release Process
    • Release Checklist
    • Automating Releases with GitHub Actions
GS1 GPC Import
  • Search


© Copyright 2025, Michael McGarrah.

Built with Sphinx using a theme provided by Read the Docs.