Metropolian MuseumAPI objects which converts in json form and then json to html,xml,csv formats and html to pdf
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ArtCollection-0.0.3.tar.gz
.
File metadata
- Download URL: ArtCollection-0.0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae7571729a9214dcbb3dd2895cc236cfaf1d7ffe6139c53af837ae73f2f51322 |
|
MD5 | aa5cb5b8e692f270196126402eff1790 |
|
BLAKE2b-256 | a33d3f361568f0f3656bfaaffd9c86e55c780415939620047eda5bcacda393f1 |
File details
Details for the file ArtCollection-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: ArtCollection-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.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.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b1d03c40dcbb50c0dc159d26622456036784e04cda864cb3f14f4ec2a4ebeb6 |
|
MD5 | 193ab66aa23be65c01fc0375b6adeece |
|
BLAKE2b-256 | 4d2820839e74ab5ed9e132a1f84ed62b3dac93907968522dbe94e91c1e3d883e |