Museum_API_conversions
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 Museum_API_conversions
api = Museum_API_conversions.MuseumAPI(Museum_API_url)
df = api.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)
api.dataframe_to_html(df, html_file)
api.html_to_pdf(html_file, pdf_file)
api.dataframe_to_xml(df, xml_file)
parameters
Museum_API(url=Museum_API_url)
url contains the url of Museum_API objectIDs
api.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
Metadata
Release files for Museum-API-conversions 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Museum_API_conversions-0.0.6.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Museum_API_conversions-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / Museum_API_conversions-0.0.6.tar.gz
| Download URL | Museum_API_conversions-0.0.6.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa599d02ae35bb3faad9aa9a8e0b6ca98eb9a94ed741839ef2c7893e94dd9b01
|
|
BLAKE2b-256 checksum How to use checksums |
59aa8c9578b4f8078cda37a13b99a3939553e2f03cc01d3389c0dae0c829838f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / Museum_API_conversions-0.0.6-py3-none-any.whl
| Download URL | Museum_API_conversions-0.0.6-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f84e62324b4fc54c4d40dffd9b80e701a3586f4ac4ae2d4027870dc1f845e971
|
|
BLAKE2b-256 checksum How to use checksums |
fbe3dce4a93a86466716125ddd3a2bdf7c5a7d617329b65cc0461f3dbd02795a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|