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

Json_X_Converter-0.0.4.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

Json_X_Converter-0.0.4-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file Json_X_Converter-0.0.4.tar.gz.

File metadata

  • Download URL: Json_X_Converter-0.0.4.tar.gz
  • Upload date:
  • Size: 5.1 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 Json_X_Converter-0.0.4.tar.gz
Algorithm Hash digest
SHA256 41d7c8895a7761dcb7ec01eba9b69229881e6da0566d4a487d49ca460cd0f48e
MD5 c814ffc936cff5affe5b6f7f8f9da588
BLAKE2b-256 5248394bf2d00b86c4e801163d1331ff2436c01fd8fc044e66c122f354bbcfe3

See more details on using hashes here.

File details

Details for the file Json_X_Converter-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: Json_X_Converter-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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 Json_X_Converter-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9f5b4c05dbc12de60fcaca51df757877244766ad0214386463491a7c6869b91f
MD5 ffc061be9f7622c5ecece0af219f1b04
BLAKE2b-256 ab64af04c6391083c60e292a99adb59ea117486ee776dbe3bb5d26fdfa264be8

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