Skip to main content

Omeka S Tools

Tools for working with data in an instance of Omeka S

Install

pip install omeka-s-tools

How to use

See the documentation for full details of the Omeka API Client.

from omeka_s_tools.api import OmekaAPIClient

omeka = OmekaAPIClient('http://timsherratt.org/collections/api')
items = omeka.get_resources('items')
items['total_results']
49
items['results'][0]
{'@context': 'http://timsherratt.org/collections/api-context',
 '@id': 'http://timsherratt.org/collections/api/items/671',
 '@type': ['o:Item', 'schema:Newspaper'],
 'o:id': 671,
 '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': "Newcastle Morning Herald and Miners' Advocate (NSW : 1876 - 1954)",
 'thumbnail_display_urls': {'large': None, 'medium': None, 'square': None},
 'o:created': {'@value': '2022-01-20T06:36:11+00:00',
  '@type': 'http://www.w3.org/2001/XMLSchema#dateTime'},
 'o:modified': {'@value': '2022-01-20T06:36:11+00:00',
  '@type': 'http://www.w3.org/2001/XMLSchema#dateTime'},
 'o:media': [],
 'o:item_set': [],
 'o:site': [],
 'schema:name': [{'type': 'literal',
   'property_id': 1116,
   'property_label': 'name',
   'is_public': True,
   '@value': "Newcastle Morning Herald and Miners' Advocate (NSW : 1876 - 1954)"}],
 'schema:url': [{'type': 'uri',
   'property_id': 393,
   'property_label': 'url',
   'is_public': True,
   '@id': 'http://nla.gov.au/nla.news-title356'}],
 'schema:identifier': [{'type': 'literal',
   'property_id': 190,
   'property_label': 'identifier',
   'is_public': True,
   '@value': '356'}]}

See the documentation for more examples.


Created by Tim Sherratt (@wragge) for the GLAM Workbench.

Metadata

Release files for omeka-s-tools 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omeka-s-tools 0.3.0
File Size Uploaded
omeka_s_tools-0.3.0.tar.gz 14.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for omeka-s-tools 0.3.0
File Interpreter ABI Platform
omeka_s_tools-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 24.4 kB

Release files / omeka_s_tools-0.3.0.tar.gz

Download URL omeka_s_tools-0.3.0.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6c10c2c1d5865ad1935ff74df6affb726ea252f212137096683f480a26815f44
BLAKE2b-256 checksum
How to use checksums
5dce0badfc1444fc27d98c56b2523b0a07b72c991e5a5ed263d2785f7a77e170
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / omeka_s_tools-0.3.0-py3-none-any.whl

Download URL omeka_s_tools-0.3.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45eff85725f11376dd5c056c918c6a1681629d6f621c25753d83f8a633b87fe2
BLAKE2b-256 checksum
How to use checksums
65b88958c785ae955f35e6b0bf011cc1b06f876e25563d8483fd32180b1948fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page