VAI utils
Project description
VAI utils
Quickstart
- To use common Standardized code for develop use this package like below
pip install vai-utils
- then add import statement like this
from vai_utils import data
from vai_utils import plot
here is the code to use the plugin for converting html to json
Data has to be in a string containing html tags.
data = "<h1>Machine Learning </h1> <p>Machine learning is a field devoted to understanding and building methods that let machines learn – that is, methods that leverage data to improve computer performance on some set of tasks</p>"
res = data.html_to_json(data)
here is the code to use the plugin for converting json to html
Data has to be in a dictionary.
data = { "urls": { "id" :0 , "url" : "https://www.virtuousai.com/" } }
res = data.json_to_html(data)
here is the code to use the plugin for eprint with flush true
data.eprint("data")
here is the code to use the plugin for getting html of given url
data.get_url_to_html(URL)
here is the code to use the plugin for getting json of given url
data.get_url_to_json(URL)
here is the code to use the plugin for storing html of given url
data.store_url_to_html(URL, input_dir)
here is the code to use the plugin for storing html of stored urls json file on given path
data.store_url_files_to_html(input_dir, output_dir)
here is the code to use the plugin for getting listing corrupted files
data.list_corrupted(PATH)
here is the code to use the plugin for getting listing duplicate files
data.list_duplicate(PATH)
here is the code to use the plugin for removing corrupted files
files = data.list_corrupted(PATH) #Result return by list_corrupted
data.remove_corrupted(files)
here is the code to use the crop images
data.crop_images(path,height, width)
here is the code to use the college images
data.collage_images(path,height, width)
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
Built Distribution
Hashes for vai_utils-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c8695375f46c737a356d94335d6e167404dbc694cacd6a3a6ad305d05d44d4b |
|
MD5 | 06f33250d31400efdeb01759e78e2e45 |
|
BLAKE2b-256 | ec8d5bf40f79646cc3d73e313810838057e6a650d824299a8822bdaf3132e0ef |