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

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 VIP-specific happening in it. models contains two pandera models that describe order or sales history data. Has not been fully built out. At the moment, can be used for dataframe validation.

Send File to GDI

Takes standard parameters expected of uploading an existing local file to a remote location via FTP or SFTP.

parameter type description
ftp_method str 'ftp' or 'sftp'
host str the FTP server host
port int the SFTP server port, not used with FTP
user str username to authenticate with
password str password to authenticate with
folder str The base folder location to upload the file to, usually "/in/" or "/TO_GDI/"
file IO[str] File stream being uploaded. Usually the output of an open() function

Download Files from GDI

Takes standard paramers expected for connecting to a remote FTP/SFTP server as well as the file string to search for. This is being used to mass-download files that start with a given string.

parameter type description
ftp_method str 'ftp' or 'sftp'
host str the FTP server host
port int the FTP/SFTP server port
user str username to authenticate with
password str password to authenticate with
folder str the folder to download the files from, usually "/out/" or "/FROM_VIP/"
file_string str string in file name to search for
delete_after_download bool whether to delete the files from the remote location once downloaded.

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.1.5.tar.gz (7.7 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.1.5-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vipwrap-0.1.5.tar.gz
Algorithm Hash digest
SHA256 345bb36ab87785e812da04e906beb37445615c8379490ec31fdb2c6f135d7bdc
MD5 dc031d0f275835834c92a8d0d63d40a2
BLAKE2b-256 d79ce0b8b68b1622d571d3e2a05668910116f79c08c85ac19e5ebc159c03b28d

See more details on using hashes here.

Provenance

The following attestation bundles were made for vipwrap-0.1.5.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.1.5-py3-none-any.whl.

File metadata

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

File hashes

Hashes for vipwrap-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8d885ac7324d7452161d466bf1e3b75bd33b8309443e9ac10a2ae8e29eae91df
MD5 de4ae2f4dace1c6bad8f16cc0d79ddf8
BLAKE2b-256 3611a66a27ad7c4069a0f3adba2fa30b946afc42573fec71a5fbb24c7fb8e1b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for vipwrap-0.1.5-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