ArtCollection-0.0.3
توضیحات
Metropolian MuseumAPI objects which converts in json form and then json to html,xml,csv formats and html to pdf
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ArtCollection-0.0.3 |
| نام | ArtCollection |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Affan |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/ArtCollection/ |
| مجوز | - |
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
نیازمندی
| مقدار | نام |
|---|---|
| - | pandas |
| - | requests |
| - | flatten-json |
| - | pdfkit |
| - | lxml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl ArtCollection-0.0.3:
pip install ArtCollection-0.0.3.whl
نصب پکیج tar.gz ArtCollection-0.0.3:
pip install ArtCollection-0.0.3.tar.gz