Installation
Requirements
Python 3.8 or higher
GPCC library (custom GitHub version)
Installing from PyPI
Before installing this package, you must install the GPCC module from GitHub:
pip install git+https://github.com/mcgarrah/gpcc.git@v1.0.1
Then install the package:
pip install gs1-gpc
Installing from Source
git clone https://github.com/mcgarrah/gs1_gpc_import.git
cd gs1_gpc_import
# Create and activate a virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies including gpcc from GitHub
pip install -r requirements.txt
# Install the package in development mode
pip install -e .
PostgreSQL Support
To use PostgreSQL instead of SQLite, install the PostgreSQL extra:
pip install gs1-gpc[postgresql]
Or when installing from source:
pip install -e ".[postgresql]"
Development Installation
For development, you can install additional dependencies:
pip install -e ".[dev]"
This will install testing and code quality tools like pytest, black, flake8, etc.