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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vipwrap-0.1.4.tar.gz
  • Upload date:
  • Size: 7.6 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.4.tar.gz
Algorithm Hash digest
SHA256 6284ce207c68a2fc5ca260d0c13f92edad287b95d269535156f597ffaa3210da
MD5 6c6627e683875eeecff5f9b9d782cd0d
BLAKE2b-256 234f4facad276f2cf77f58c65f340ed987499e57d9767ab7b3d259aea65b842c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: vipwrap-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3fab7bbfef8bba320d7e595adae00710baa2cff473290db976eb09ce6e0a0481
MD5 35151879c7a5a22561fd4dfa60f3db61
BLAKE2b-256 fdaccaf1e3d745248f2e041c315740898af9707f11c1f5cb9890c7e6c0011529

See more details on using hashes here.

Provenance

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