Smithsonian Open Access
Python module to query the Smithsonian Institution Open Access API.
A project of the Digitization Program Office, OCIO, Smithsonian.
For details of the developer tools for the Open Access API: https://www.si.edu/openaccess/devtools
For details about Smithsonian Open Access: https://www.si.edu/openaccess
Installation
To install using pip:
pip install si_openaccess
Or:
python3 -m pip install si_openaccess
Requirements
- The module requires Python 3.11 or higher.
- The API requires you to provide your own 'api_key' value. Please register with https://api.data.gov/signup/ to get a key.
Usage
Load module
from si_openaccess import si_openaccess
Get Content
To fetch content based on id/url of an object (docs):
si_openaccess.content(id=[ITEM ID], api_key=[YOUR API KEY])
Fetch statistics
To fetch stats for CC0 objects/media (docs):
si_openaccess.metrics_stats(api_key=[YOUR API KEY])
Search contents based on category
To fetch content based on a query against a category. art_design, history_culture or science_technology (docs):
si_openaccess.category_search(q=[SEARCH TERMS], category=[CATEGORY], start=0, rows=10, sort=[SORT], api_key=[YOUR API KEY])
Values for category are:
art_designhistory_culturescience_technology
Values for sort are:
relevancyidnewestupdatedrandom
Search
To fetch content based on a query (docs):
si_openaccess.search(q=[SEARCH TERMS], start=0, rows=10, sort=[SORT], type=[TYPE], row_group=[ROW_GROUP], api_key=[YOUR API KEY])
Values for sort are:
relevancyidnewestupdatedrandom
Values for type are:
edanmdmead_collectionead_componentall
Values for row_group are:
objectsarchives
Search Terms
To Fetches an array of terms based term category (docs):
si_openaccess.search_terms(category=[CATEGORY], starts_with=None, api_key=[YOUR API KEY])
Values for category are:
culturedata_sourcedateobject_typeonline_media_typeplacetopicunit_code
The value for starts_with is optional.
Metadata
Release files for si-openaccess 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| si_openaccess-0.1.2.tar.gz | 8.2 kB | Without provenance | Details for si_openaccess-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| si_openaccess-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for si_openaccess-0.1.2-py3-none-any.whl |
Total release size: 15.8 kB
Release files / si_openaccess-0.1.2.tar.gz
| Download URL | si_openaccess-0.1.2.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c27033a20c951fb43653921a22e7998de957407f1fcfc7e66340a5d5358811e
|
|
BLAKE2b-256 checksum How to use checksums |
25872bc225118c9334d525a95717b68b10f344ee153465703e2c2512d25270b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / si_openaccess-0.1.2-py3-none-any.whl
| Download URL | si_openaccess-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
853170eebf2b8c6605e7e35dd81e9df0da711a2dd70308e10719c4f3f001987a
|
|
BLAKE2b-256 checksum How to use checksums |
ed348c5aea41bb055fd7f1a09612fc9ac77f072206088ac96ef26f8150b0f919
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for si-openaccess 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.