Omeka S Tools 2
This repository is based on Omeka S Tools by Tim Sherratt.
Install
pip install omeka-s-tools2
How to use
See the documentation for full details of the Omeka API Client.
from omeka_s_tools2.api import *
omeka = OmekaAPIClient('http://timsherratt.org/collections/api')
items = omeka.get_resources('items')
items['total_results']
140
items['results'][0]
{'@context': 'http://timsherratt.org/collections/api-context',
'@id': 'http://timsherratt.org/collections/api/items/677',
'@type': ['o:Item', 'schema:Newspaper'],
'o:id': 677,
'o:is_public': True,
'o:owner': {'@id': 'http://timsherratt.org/collections/api/users/1',
'o:id': 1},
'o:resource_class': {'@id': 'http://timsherratt.org/collections/api/resource_classes/161',
'o:id': 161},
'o:resource_template': {'@id': 'http://timsherratt.org/collections/api/resource_templates/5',
'o:id': 5},
'o:thumbnail': None,
'o:title': 'Manilla Express (NSW : 1899 - 1954)',
'thumbnail_display_urls': {'large': 'http://timsherratt.org/collections/files/large/aa1fb4063116fc889418ce6dc20af3cb7e7bd0db.jpg',
'medium': 'http://timsherratt.org/collections/files/medium/aa1fb4063116fc889418ce6dc20af3cb7e7bd0db.jpg',
'square': 'http://timsherratt.org/collections/files/square/aa1fb4063116fc889418ce6dc20af3cb7e7bd0db.jpg'},
'o:created': {'@value': '2022-01-20T06:37:50+00:00',
'@type': 'http://www.w3.org/2001/XMLSchema#dateTime'},
'o:modified': {'@value': '2022-01-20T06:37:50+00:00',
'@type': 'http://www.w3.org/2001/XMLSchema#dateTime'},
'o:media': [{'@id': 'http://timsherratt.org/collections/api/media/882',
'o:id': 882},
{'@id': 'http://timsherratt.org/collections/api/media/897', 'o:id': 897},
{'@id': 'http://timsherratt.org/collections/api/media/929', 'o:id': 929},
{'@id': 'http://timsherratt.org/collections/api/media/994', 'o:id': 994},
{'@id': 'http://timsherratt.org/collections/api/media/995', 'o:id': 995},
{'@id': 'http://timsherratt.org/collections/api/media/996', 'o:id': 996},
{'@id': 'http://timsherratt.org/collections/api/media/997', 'o:id': 997}],
'o:item_set': [],
'o:site': [],
'schema:name': [{'type': 'literal',
'property_id': 1116,
'property_label': 'name',
'is_public': True,
'@value': 'Manilla Express (NSW : 1899 - 1954)'}],
'schema:url': [{'type': 'uri',
'property_id': 393,
'property_label': 'url',
'is_public': True,
'@id': 'http://nla.gov.au/nla.news-title1006'}],
'schema:identifier': [{'type': 'literal',
'property_id': 190,
'property_label': 'identifier',
'is_public': True,
'@value': '1006'}],
'@reverse': []}
See the documentation for more examples.
Created by Tim Sherratt
(@wragge) for the GLAM
Workbench.
Created by @satoru196.
Metadata
Release files for omeka-s-tools2 0.0.5
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 | |
|---|---|---|---|---|
| omeka_s_tools2-0.0.5.tar.gz | 12.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| omeka_s_tools2-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.5 kB
Release files / omeka_s_tools2-0.0.5.tar.gz
| Download URL | omeka_s_tools2-0.0.5.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbc8596835b397efadcf8a38cc317bc0544e89f0c640a37abb38b4a2b327dd89
|
|
BLAKE2b-256 checksum How to use checksums |
bb9a1f23fc55911c9e8a0c8c9660a1e5d908dcf0f78221e67c8c1d2fbf6fd2e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.13
|
Release files / omeka_s_tools2-0.0.5-py3-none-any.whl
| Download URL | omeka_s_tools2-0.0.5-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac25ec1714c77befd426b7c0973744a05937bf57acde36ac77f79b14245e311b
|
|
BLAKE2b-256 checksum How to use checksums |
2152097c1ccc6ed9d70e2fc92479f4968cff05edbd0f180284e16b232ae3a70c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.13
|
Security for omeka-s-tools2 0.0.5
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.