Convert Api responst to CSV, XML, PDF or HTML file
Project description
Json_X_Converter
Under construction! Not ready for use yet! Currently experimenting and planning!
Developed by Snehal Borkar (c) 2022
Examples of How To Use (Buggy Alpha Version)
Import classes
from json2Xconverter.api_call_flat import ApiCall, Flatten
from json2Xconverter.x_converter import XConverter
data=ApiCall.api_call(url)
print(data)
df =Flatten.flatten_json(data)
print(df)
XConverter(df,"test.csv").df_csv()
Methods available in api_resp_flat module - ApiCallFlat class
api_call(url)-Call Api and returns json data
ApiCall.api_call(url)
flatten_json(data)- Take data of type <class: dict> as parameter flatten it and converts to pandas dataframe
Flatten.flatten_json(data)
##Methods available in x_converter module - XConverter class
obj = XConverter(df,file_name)
obj.df_csv()
obj.df_xml()
obj.df_html()
obj.df_pdf(html_filename)
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
json2Xconverter-0.0.2.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for json2Xconverter-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c54cb72c3e3c4ff1245838e80462894c9aca8d6472cae14511d603eb2ff95c46 |
|
MD5 | d7d3c6250f3ca65f039649d6a8235af4 |
|
BLAKE2b-256 | 90581537b2318ea76cdaeb13e34000b940842355e6be7d0b3d605716a350a7e3 |