Fetch data from https://gpc-browser.gs1.org/.
Project description
gpcc
Python library and CLI tool to fetch information from GCP Browser.
This is a standardized classifier of products used across companies. The classification, however, cannot be inferred from the product barcode or even packaging. Companies use it only internally.
Installation
python3 -m pip install gpcc
CLI usage
# download latest JSONs for all languages
python3 -m gpcc
# download latest JSON for a specified language
python3 -m gpcc --lang nl
# download into a specified directory
python3 -m gpcc --output ./gpc-dump/
# download files in XML format
python3 -m gpcc --format xml
# download files in XLSX format
python3 -m gpcc --format xlsx
Python usage
import asyncio
import gpcc
from pathlib import Path
async def run():
langs = await gpcc.get_languages()
output = Path('gpc-dump')
# Default format is JSON
await gpcc.fetch_files(output, langs)
# Download files in XML format
# await gpcc.fetch_files(output, langs, format='xml')
# Download files in XLSX format
# await gpcc.fetch_files(output, langs, format='xlsx')
asyncio.run(run())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gpcc-1.1.0.tar.gz
(5.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gpcc-1.1.0-py3-none-any.whl
(6.5 kB
view details)
File details
Details for the file gpcc-1.1.0.tar.gz.
File metadata
- Download URL: gpcc-1.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.29.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f656e7939c26f700af601472f3150c9188b25ce33108db83ef8ec3d3e0b1f79
|
|
| MD5 |
a7b98e84d926ac1c41c7c15cfbda9459
|
|
| BLAKE2b-256 |
d9f0d57cd3e1bd26fa55d6cc55a353be1c0ff95cee4e628e506b3174411bff72
|
File details
Details for the file gpcc-1.1.0-py3-none-any.whl.
File metadata
- Download URL: gpcc-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.29.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ff7c8268d156c0702571041eb4a187b157c5cf54b400dc4fe12d8edea04341d
|
|
| MD5 |
a228e594d3ae01935e92a7897844d04b
|
|
| BLAKE2b-256 |
126e847455cb43c0f170fcc970cde610b1c17c6549340f8c5438cfa0204c21c2
|