Python package that allows interacting with VIP.
Project description
Summary
TODO: Need to rename project. Conflicts with a a package on PyPI.
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
Import done as below. Will rewrite package with distribution name once I find a valid one that isn't too similar to existing package in PyPI.
import vippy
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.0.tar.gz
.
File metadata
- Download URL: vipwrap-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4de3d7b2aa5a301cb81869bc345736205ffcb748c914fea6ac5967d5d1ac062 |
|
MD5 | f1dd8e6aacee39863c756839b55c56b5 |
|
BLAKE2b-256 | e58e5ea117b014db23135707934cb39fde35c042c113af6355b7e367a0f36f53 |
File details
Details for the file vipwrap-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: vipwrap-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d157df730fdb63ca37ea680c59876782e67d2ca0121fb4471e0d6480c9712bb5 |
|
MD5 | 4214b0a936e3b97bc2272b1cb91fad9c |
|
BLAKE2b-256 | df209e9fd3f6429f7ab8ab9f405128cedd9da01fc4670916b8a695c4faf04596 |