VAI toolkit, to add data in our platform
Project description
VAI toolkit
Quickstart
- To add data to our platform use this package like below
pip install vai-toolkit
- then add import statement like this
from vai_toolkit import vai
here is the code to use the plugin
Data has to be in a dictionary. With time stamps in the indicated 'dd-mm-yr'
data = { "id": [11111, 1], "Capital Gain": [10000, 15000] } # Columns data
dates = ["12-15-2021", "12-16-2021"] # Dates
times = ["11:08:50", "11:09:50" ] # Times
We have implemented a series of security measurements including pipeline id and security secrets which can be accessed using the following.
pipeline = os.getenv("PIPELINE") # Pipeline
user_secret = os.getenv("USER_SECRET") # UserSecret
Then finally, upload the data.
res = vai.upload_data(data, dates, times, pipeline, user_secret, allow_new_columns=True, allow_duplicate=True, allow_new_category=True)
Note:
Last 3 fields are optionals (allow_new_columns, allow_duplicate, allow_new_category)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vai_toolkit-0.0.5.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for vai_toolkit-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0173060fec162973741c07a8c60c576d1d61224a04a14c52a71063d258174ff3 |
|
MD5 | 73952b543034e2abb957b20d083bd8c6 |
|
BLAKE2b-256 | c768cba17d62ca72e8e88a272637bc1f2b898dcb254704a50443779b4d667dd2 |