Metadata-Version: 2.1
Name: json2Xconverter
Version: 0.0.1
Summary: Convert Api responst to CSV, XML, PDF or HTML file
Author: Snehal Borkar
Author-email: borkarsnehal60@gmail.com
License: UNKNOWN
Keywords: python
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown
License-File: LICENSE


# 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



```python 

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

```python

ApiCall.api_call(url)

```



flatten_json(data)- Take data of type <class: dict> as parameter flatten it and  converts to pandas dataframe

```python

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)



 



