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 files to VIP's GDI system. But could be expanded on with SQL functionality or if VIP ever added a genuine API in the future.
As is, the point of the package is largely just defining how to upload a file to VIP in one place so it doesn't need to be rewritten every time a repo involving VIP is created and can instead just be imported.
There are also pandera models defined for an order and an invoice.
Installation
pip install vipwrap
Usage
Currently consists of one function.
Send File to VIP
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 |
file | IO[str] | File stream being uploaded. Usually the output of an open() function |
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
File details
Details for the file vipwrap-0.1.1.tar.gz
.
File metadata
- Download URL: vipwrap-0.1.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8851391f19d99f6a102be3fc4c214bbbb3442ba7b07551a66d3f8789dd9935b |
|
MD5 | f9fd1f76ce297abfcaa6aefe50bc3ac5 |
|
BLAKE2b-256 | b963c1a692db3060bb12f257fafa889da6850db668a3406360c339f50390779b |
File details
Details for the file vipwrap-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: vipwrap-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a64e2aec9a69ada632e7befef38745d737d7d7e8aa3c5571a77bc5590412d925 |
|
MD5 | bb39f06c01fdc9c6746fe8f35e0fb840 |
|
BLAKE2b-256 | 48ef86d27a4d2d8ac0498d652de485102d8d86d756ca74bdff7de33dd1bf8949 |