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
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c3e17b031f9e7c39223bd34ca4ee532887fee647af67935f5c30657af3c0743
|
|
| MD5 |
eca46eb4496b7818a64fee005167c0f1
|
|
| BLAKE2b-256 |
05740e53bd082909081b13978b6047dc666f06014223e64dc10f6a825eef5767
|
Provenance
The following attestation bundles were made for vipwrap-0.2.tar.gz:
Publisher:
python-publish.yml on pepsimidamerica/vipwrap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vipwrap-0.2.tar.gz -
Subject digest:
0c3e17b031f9e7c39223bd34ca4ee532887fee647af67935f5c30657af3c0743 - Sigstore transparency entry: 933783593
- Sigstore integration time:
-
Permalink:
pepsimidamerica/vipwrap@049a8cb37f622e9f333fa0f81e9604f89f711234 -
Branch / Tag:
refs/tags/v0.2 - Owner: https://github.com/pepsimidamerica
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@049a8cb37f622e9f333fa0f81e9604f89f711234 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bde79ba8b054b09ba677144d16ff7dc7f3f153a90d64499d8eb9cd2eb43040d
|
|
| MD5 |
642f5a9c63dc10304dc36bfa8a4af111
|
|
| BLAKE2b-256 |
21bf8ee2b47277dc533e65b8137f0b94900de6a5583628ba6808af4e40b43420
|
Provenance
The following attestation bundles were made for vipwrap-0.2-py3-none-any.whl:
Publisher:
python-publish.yml on pepsimidamerica/vipwrap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vipwrap-0.2-py3-none-any.whl -
Subject digest:
2bde79ba8b054b09ba677144d16ff7dc7f3f153a90d64499d8eb9cd2eb43040d - Sigstore transparency entry: 933783615
- Sigstore integration time:
-
Permalink:
pepsimidamerica/vipwrap@049a8cb37f622e9f333fa0f81e9604f89f711234 -
Branch / Tag:
refs/tags/v0.2 - Owner: https://github.com/pepsimidamerica
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@049a8cb37f622e9f333fa0f81e9604f89f711234 -
Trigger Event:
release
-
Statement type: