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 Json_X_Converter.api_resp_flat import ApiCallFlat
from Json_X_Converter.x_converter import XConverter
data=ApiCallFlat.api_call(url)
print(data)
df =ApiCallFlat.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
ApiCallFlat.api_call(url)
flatten_json(data)- Take data of type <class: dict> as parameter flatten it and converts to pandas dataframe
ApiCallFlat.flatten_json(data)
api_callflat(url)- Take url of type <class: str> make HTTP request, flatten response and convert to pandas dataframe
ApiCallFlat.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
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 Json_X_Converter-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ede03bc20e2309d119f6a288d54f0b3329e5b6771b05aa5b3d8209c606280874 |
|
MD5 | 629f8cdad40e618220f4db5931efe909 |
|
BLAKE2b-256 | 4f128b1212a54a23eb4e9450700c1830e90a6f3e87863cdf3b5ae60d5e990b4c |