Skip to main content

A Scythe for harvesting OAI-PMH repositories.

Project description

oaipmh-scythe: A Scythe for harvesting OAI-PMH repositories.

Welcome to oaipmh-scythe, an updated and modernized version of the original sickle, now with additional features and ongoing maintenance.

CI pre-commit.ci status ci coverage codeql
Package pypi-version pypi-python-versions all-downloads monthly-downloads
Meta doi OpenSSF Scorecard uv ruff mypy License

oaipmh-scythe is a lightweight OAI-PMH client library written in Python. It has been designed for conveniently retrieving data from OAI interfaces the Pythonic way:

from oaipmh_scythe import Scythe

with Scythe("https://zenodo.org/oai2d") as scythe:
    records = scythe.list_records()
    next(records)
# <Record oai:zenodo.org:4574771>

Features

  • Easy harvesting of OAI-compliant interfaces
  • Support for all six OAI verbs
  • Convenient object representations of OAI items (records, headers, sets, ...)
  • Automatic de-serialization of Dublin Core-encoded metadata payloads to Python dictionaries
  • Option for ignoring deleted items

Requirements

Python >= 3.10

oaipmh-scythe is built with:

  • httpx for issuing HTTP requests
  • lxml for parsing XML responses

Installation

You can install oaipmh-scythe via pip from PyPI:

python -m pip install oaipmh-scythe

Documentation

The documentation is made with Material for MkDocs and is hosted by GitHub Pages.

Similar Projects

There are a couple of similar projects available on PyPI and GitHub, e.g. via the topics oai-pmh and oai-pmh-client. Among them are these implementations in Python:

Project Description Last commit
sickle oaipmh-scythe is a fork of sickle last-commit
pyoai sickle was inspired by pyoai last-commit
pyoaiharvester oai-pmh harvester CLI last-commit
ddblabs-ometha oai-pmh harvester with CLI and TUI last-commit
oai-harvest uses pyoai internally last-commit
oai-pmh-harvester uses sickle internally last-commit

There are also similar projects available in Java and PHP.

Acknowledgments

This is a fork of sickle which was originally written by Mathias Loesch.

License

oaipmh-scythe is distributed under the terms of the BSD license.

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

oaipmh_scythe-0.14.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oaipmh_scythe-0.14.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file oaipmh_scythe-0.14.0.tar.gz.

File metadata

  • Download URL: oaipmh_scythe-0.14.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oaipmh_scythe-0.14.0.tar.gz
Algorithm Hash digest
SHA256 e513728597d1db82be6b5775e45e7935c375805f5475aa90372e4f111cf1a784
MD5 a95580abde6b558166d1661ae9b9191d
BLAKE2b-256 37b8ccd4bb88798ae7a90e800953feff6d3d9446e3e7950fa404352b545e8390

See more details on using hashes here.

Provenance

The following attestation bundles were made for oaipmh_scythe-0.14.0.tar.gz:

Publisher: publish.yml on afuetterer/oaipmh-scythe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file oaipmh_scythe-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: oaipmh_scythe-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oaipmh_scythe-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f8033ba36b5215ab57e9410d72ed3186825f1bd7a1641c959a1ad0ccbb46621
MD5 d02d5af330d0ebc7843ce84b17e1c8d8
BLAKE2b-256 e4d4f5436ec045da19111a6f65f794d30c3056e35ff5938b0ae1f02575f24c64

See more details on using hashes here.

Provenance

The following attestation bundles were made for oaipmh_scythe-0.14.0-py3-none-any.whl:

Publisher: publish.yml on afuetterer/oaipmh-scythe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page