semvec/pypi-packages huggingface dataset:
ArtCollection 0.0.3
Metropolian MuseumAPI objects which converts in json form and then json to html,xml,csv formats and html to pdf
Requires Python: >=3.7
Keywords: ArtCollection,Metropolian Art Collection,Art Collection API



Converts Museum_API objectIDs into pdf, html, csv and xml files.

## usage

Make sure you have python installed in your system

Run following command in command prompt

pip install Museum_API_conversions 

## Example

import ArtCollection

var = ArtColection.MuseumAPI(Museum_API_url)

df = var.api_to_dataframe(1, 5)

The above step is must in order to convert dataframe into html, csv and xml

csv_file = 'Museum_API_5to8.csv'

html_file = 'Museum_API_5to8.html'

xml_file = 'Museum_API_5to8.xml'

pdf_file = 'Museum_API_5to8.pdf'

api.dataframe_to_csv(df, csv_file)


var.dataframe_to_html(df, html_file)


var.html_to_pdf(html_file, pdf_file)


var.dataframe_to_xml(df, xml_file)

## parameters

Museum_API(url=Museum_API_url)

url contains the url of Museum_API objectIDs

var.api_to_dataframe(st=None, sp=None)

default st and sp will be 0 to 50

if st parameter is None then by default it will be 0

if sp parameter is None then by default it will be st+50

## Note

objectIDs are between 0 and 830985
json2Xconverter 0.0.2
Convert Api responst to CSV, XML, PDF or HTML file
Keywords: python

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