pyAtoM
Python Library for the AtoM Archival Description Platform API
This library provides a Python class for working with the AtoM Archival Description Rest API
https://accesstomemory.org/en/docs/2.8/dev-manual/api/api-intro/
The Library provides APIs for the following:
- Get a record by its Slug
- Get a record by its identifier
- Search for records
- Download a digital object attached to a record
- List taxonomy terms
License
The package is available as open source under the terms of the Apache License 2.0
Installation
pyAtoM is available from the Python Package Index (PyPI)
https://pypi.org/project/pyAtoM/
To install pyAtoM, simply run this simple command in your terminal of choice:
$ pip install pyAtoM
Examples
Finding records by Slug
from pyAtoM import *
client = AccessToMemory(username="demo@example.com", password="demo", server="demo.accesstomemory.org")
slug: str = "my-slug"
item: dict = client.get(slug)
Searching for all Records
from pyAtoM import *
client = AccessToMemory(username="demo@example.com", password="demo", server="demo.accesstomemory.org")
for result in client.search():
print(result)
Searching for Records with Query terms
from pyAtoM import *
client = AccessToMemory(username="demo@example.com", password="demo", server="demo.accesstomemory.org")
queries: list = []
queries.append(Query(query_value="horses", query_field=QueryField.title))
queries.append(Query(query_value='Sudbury', query_operator=QueryOperator.or_terms, query_field=QueryField.all))
for result in client.search(query_terms=queries):
print(result)
Metadata
Release files for pyAtoM 0.4.1
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 | |
|---|---|---|---|---|
| pyatom-0.4.1.tar.gz | 9.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyatom-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / pyatom-0.4.1.tar.gz
| Download URL | pyatom-0.4.1.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9686090845d0abddd8d9ff8c96478bec8594bb1c70127b8b0ea640d58dbc54fc
|
|
BLAKE2b-256 checksum How to use checksums |
463c98a8b3bc6fc06a789133b6ac715e6e1920588e278508f792e39ea17ffaba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / pyatom-0.4.1-py3-none-any.whl
| Download URL | pyatom-0.4.1-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c21c8e59fb6cda83b61fa50a0b424b4a7c195b485444251594ea95e555a7ecb4
|
|
BLAKE2b-256 checksum How to use checksums |
e4c3f6008df4551e98bf63609a3d6ab565f78a4904ec0392fdfe19ae05621023
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for pyAtoM 0.4.1
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.