Python wrapper for Cleveland Museum of Art Open Access API
Project description
CMA
Python wrapper for the Cleveland Museum of Art API.
Install
pip install ClevelandMuseumArt
CLI Examples
List artwork with filters
cma artwork list --female_artists --created_after 1998 --limit 10
Get artwork by ID
cma artwork get --id 1944.485 --preview
################################################################################
###############################*******************##############################
#########################*********************************######################
#################**********************************************#################
############********************************************************############
########****************************************************************########
###**************************************************************************###
*************************************++*****************************************
***********######*+#*+++*+**++=+***++++=++-*++++++++*=+*++++***##%%*************
***********#*****+***+*++++++==+***++==+=+==++-=+++=++=*==++****##%*************
***********#****+***++*+=+=++==++===+=+**++=====+=**+*++=++***+*##%*************
***********######***#+*+**+++==+++==+=++++=++=+=+++++++++******####*++**********
+++++++++++++***+***+******+++**+*****++++=+**++++++++******###**+++++++++++++++
==============+******+++**+++**++**++++*++****+=+**+++++*++****+===============+
===-----------==+*****++++*++++++*+++++++++++++*+++*+++++***+==------------=====
-------------:::-=+***********++**++++*+++=-*=++++**++++*=++=-::::::------------
:::::::::::::::::::-=+***#***********+++***+*******+=++*+=-:::::::::::::::::::::
:::::::::::::::.......:--=+***#############%#%###*++==-:...............:::::::::
............................::-*####%##########*=:..............................
..............................:*******+**+****#*-...............................
..........:::::::::::::::::::-*##*#***+*=***#*###-:::::::::.....................
......:::::::::::::::::::::=*%##%%%%%%#%#%#%%%%%%%#+::::::::::..................
.............:::::::::::::::--=====++++++++=====--::::..........................
................................................................................
................................................................................
Python Examples
from CMA.api import Handler
artwork_id = 1953.424
creator_id = 7978
exhibit_id = 206339
cma = Handler()
# get artwork, creator, or exhibition by ID
artwork = cma.get_artwork(rid=artwork_id, preview=True)
creator = cma.get_creator(rid=creator_id)
exhibit = cma.get_exhibition(rid=exhibit_id)
# list artwork, creator, or exhibition with filters
artworks = cma.list_artworks(limit=3, female_artists=True)
creators = cma.list_creators(limit=3, birth_year_after=1980)
exhibits = cma.list_exhibitions(limit=3, opened_before='2020-12-31')
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
Close
Hashes for ClevelandMuseumArt-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25089063bcf8fe465343217228f6b1acf1760bdd02a4244057ebb38288e8d1e3 |
|
MD5 | ce5a483db472ea12b10200c95d63f021 |
|
BLAKE2b-256 | c49de2076eadcde3519d862439261e74bd9ac8a9eb3183cf2931b821de05e416 |