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 get data from the API, create an instance of the Atom class:
import atomapi
atom = atomapi.Atom('https://youratom.com', api_key='1234567890')
Fetch taxonomies, and view information objects like so:
subjects = atom.taxonomies.browse('subjects')
info_obj = atom.taxonomies.read('some-reference-code')
results = atom.taxonomies.browse(sq={'sq0': 'School'}, so={}, sf={'sf0': 'title'}, filters={})
For more examples, check out the examples folder.
Metadata
Release files for atomapi 0.1.0
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 | |
|---|---|---|---|---|
| atomapi-0.1.0.tar.gz | 11.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atomapi-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.2 kB
Release files / atomapi-0.1.0.tar.gz
| Download URL | atomapi-0.1.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b44ce4b9542dfe1df24fa2f6596c086c4e04fe6795b081b500e99cd21fc190c
|
|
BLAKE2b-256 checksum How to use checksums |
831db7e616f60aa53cc8f192ee7d766446f002e1dabe3b82dc2c3781c6da318f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / atomapi-0.1.0-py3-none-any.whl
| Download URL | atomapi-0.1.0-py3-none-any.whl |
|---|---|
| Size | 28.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
562d1eeb5391f468c55845acca8819a62a86f036550fd4d0286e727a30d8bc0e
|
|
BLAKE2b-256 checksum How to use checksums |
d1d9de232bcd58b8e727f9206abb3155a8b62ec09dca09c8ae5d247aaeb575c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for atomapi 0.1.0
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.