Grab data from Atom API with Python
Project description
Python AtoM API
This is a simple library for interacting with an AtoM archive within Python. This library works with Python version 3, and has been tested with AtoM version 2.5. All of the API interactions specified in the AtoM documentation all have easy-to-call python functions associated with them in this library. This includes:
- Browsing Taxonomies
- Browsing Information Objects
- Reading Information Objects
This library also implements a virtual endpoint that can be used to retrieve all of the authorities stored in the archive. It does this by treating the front-end application as an API endpoint. For this reason, this operation is more fragile than calling the API directly and is not guaranteed to work with every version of AtoM and every theme.
Install
python -m pip install atomapi
Usage
To use the API, you will require an AtoM API key. To use the virtual API, you do not need an API key, but please use it responsibly since the virtual API can easily make over 100 requests depending on how many items you have in AtoM. This may or may not put undue stress on the server.
There are three concrete API endpoint classes that use the actual API:
endpoints.BrowseTaxonomyEndpointendpoints.BrowseInformationObjectEndpointendpoints.ReadInformationObjectEndpoint
There are also three concrete Virtual API endpoint classes that make use of the front end application and treat is as an API:
virtualendpoints.VirtualBrowseTaxonomyEndpointvirtualendpoints.VirtualBrowseAuthorityEndpointvirtualendpoints.VirtualBrowseAuthorityRefCodeEndpoint
Note that the virtual endpoints have been tested on AtoM version 2.5, with the default arDominionPlugin theme. The virtual endpoints are not guaranteed to work with other versions of AtoM or highly customized themes. That being said, it would be easy to create a new endpoint that takes into account the modifed markup or CSS in a custom theme.
To view examples for each, go to the examples folder.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atomapi-0.0.1.tar.gz.
File metadata
- Download URL: atomapi-0.0.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31f3f14f5ce6206976dde7ccad03c81a70eeb604a7c15953a938f3309f452927
|
|
| MD5 |
e9e23b82ddc494509c1de435141ac577
|
|
| BLAKE2b-256 |
3d08dd2933a9275980da57ab2e087e59ee50af2662b33a3dc2020213b22aab6c
|
File details
Details for the file atomapi-0.0.1-py3-none-any.whl.
File metadata
- Download URL: atomapi-0.0.1-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c5dc99a75b9be0388d4896d67923717e1771f21d5c37da6a325916cca04ba7e
|
|
| MD5 |
630e8817af59f35abdb042aec7d0032f
|
|
| BLAKE2b-256 |
8a0f3a7cedddeee18fdd6a8822364bbf89c8ab47cdd4d4687a04aad5d39f12bf
|