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

Uploaded Source

Built Distribution

vipwrap-0.1.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vipwrap-0.1.3.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for vipwrap-0.1.3.tar.gz
Algorithm Hash digest
SHA256 53ac68df5d6409dc2ce23b8d937f52cfa3aa75aeadb866e49db0bc2e540c514d
MD5 c3289f1b07fb8dc6482a10a9c60bd98e
BLAKE2b-256 e6c87a3ff9a4dd0363543d32816866c04a0aa50bd63fc0993a5eace5529cd1e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vipwrap-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for vipwrap-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2fbf77d6ff9ee7f1c1a5811e59fbb949160213075ab52f3d6c9bf342db227ff8
MD5 5bc80d48577cfdf7daa95a76be0953a0
BLAKE2b-256 3278675c238113df2e493df59217c8225db39d77f8c80d25944d737c4517de9b

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