Skip to main content

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/

Python usage

import asyncio
import gpcc
from pathlib import Path

async def run():
    langs = await gpcc.get_languages()
    output = Path('gpc-dump')
    await gpcc.fetch_files(output, langs)

asyncio.run(run())

Project details


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.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

gpcc-1.0.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file gpcc-1.0.0.tar.gz.

File metadata

  • Download URL: gpcc-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for gpcc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 61159d4adc2a06e1bfa38aff3db28e86315f7cf51abd6080e14b8c6131dc58bb
MD5 c8fa69e892fc5a43c2e4a45bf679054e
BLAKE2b-256 87c11dc6bc1f98ecf1cc9e8b69feb2c871c6db07b70d6d595ea2db93c3e0f7c9

See more details on using hashes here.

File details

Details for the file gpcc-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: gpcc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for gpcc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c21917d674ca8131e96b37346f7a0e8789e1e7146b5faca9137c9395338df584
MD5 54ee1594112230d4d7722860d200f87c
BLAKE2b-256 552413ff679ae9d0b936b0e2961fd18bf6de44bade6736a705f3645c0bb4a9f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page