Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

json2Xconverter-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file json2Xconverter-0.0.2.tar.gz.

File metadata

  • Download URL: json2Xconverter-0.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for json2Xconverter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 88ce7aaae2f1655455b13bdd7a1822a5de87f4d3d03cde459b8e13c1d4aa496d
MD5 c7131c099fb5ef33b266bdd40acefa62
BLAKE2b-256 27cc6dd60653e3f9acc640fc63d5ffea4adc77d2a82d8a876304fc09ac4272ee

See more details on using hashes here.

File details

Details for the file json2Xconverter-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: json2Xconverter-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for json2Xconverter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c54cb72c3e3c4ff1245838e80462894c9aca8d6472cae14511d603eb2ff95c46
MD5 d7d3c6250f3ca65f039649d6a8235af4
BLAKE2b-256 90581537b2318ea76cdaeb13e34000b940842355e6be7d0b3d605716a350a7e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page