Skip to main content

Python package that allows interacting with VIP.

Project description

Summary

At the moment, the package is mainly just a wrapper around FTP and SFTP libraries. It's used to upload and download files from VIP's GDI/GDI2 system. But could be expanded on with SQL functionality or if VIP ever added a genuine API in the future.

Installation

pip install vipwrap

Usage

Vipwrap contains two modules, gdi and models.

gdi covers the actual connection to VIP's GDI servers and the downloading/uploading of files. Largely just a wrapper around ftp libraries. Nothing that's necessarily VIP-specific happening in it. Use of the GDI2 class is recommended. VIP has largely phased out the GDI1 system. See their documentation for more details.

models contains various classes for working with order or sales history data. Has not been fully built out yet. Intention is to be able to construct order or sales history as python objects rather than as raw flat files and include methods for conversion to .DAT format that the GDI system expects.

Example usage:

from vipwrap.gdi import GDI2

gdi = GDI2(
    host=os.environ["FTP_HOST"],
    port=int(os.environ["FTP_PORT"]),
    username=os.environ["FTP_USER"],
    password=os.environ["FTP_PASS"],
)
gdi.download_file("./FILENAME.csv", "LOCAL_PATH.csv")

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

vipwrap-0.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vipwrap-0.2-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file vipwrap-0.2.tar.gz.

File metadata

  • Download URL: vipwrap-0.2.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vipwrap-0.2.tar.gz
Algorithm Hash digest
SHA256 0c3e17b031f9e7c39223bd34ca4ee532887fee647af67935f5c30657af3c0743
MD5 eca46eb4496b7818a64fee005167c0f1
BLAKE2b-256 05740e53bd082909081b13978b6047dc666f06014223e64dc10f6a825eef5767

See more details on using hashes here.

Provenance

The following attestation bundles were made for vipwrap-0.2.tar.gz:

Publisher: python-publish.yml on pepsimidamerica/vipwrap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vipwrap-0.2-py3-none-any.whl.

File metadata

  • Download URL: vipwrap-0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vipwrap-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2bde79ba8b054b09ba677144d16ff7dc7f3f153a90d64499d8eb9cd2eb43040d
MD5 642f5a9c63dc10304dc36bfa8a4af111
BLAKE2b-256 21bf8ee2b47277dc533e65b8137f0b94900de6a5583628ba6808af4e40b43420

See more details on using hashes here.

Provenance

The following attestation bundles were made for vipwrap-0.2-py3-none-any.whl:

Publisher: python-publish.yml on pepsimidamerica/vipwrap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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