Sickle
A lightweight OAI client library for Python
What it is and what it does
Sickle wraps the OAI-PMH protocol in a Pythonic interface, letting you query OAI-compliant digital repositories (typically institutional or subject-based archives) to retrieve structured metadata records. It handles the protocol's request-response cycle, pagination via resumption tokens, and automatic parsing of Dublin Core metadata into Python dictionaries, so you can focus on the data rather than XML parsing and HTTP state management.
The library is built on requests for HTTP communication and lxml for XML parsing. It supports all six OAI verbs (ListRecords, GetRecord, ListIdentifiers, ListSets, ListMetadataFormats, Identify), optional basic authentication, configurable retry logic, and filtering of deleted records. The last release was in May 2020, and the repository is no longer actively maintained.
Use it for:
- Harvest metadata from institutional repositories or digital libraries that expose OAI-PMH endpoints to build local search indexes or data pipelines.
- Bulk download Dublin Core records from academic archives for research data aggregation or analysis.
- Migrate metadata from one OAI-compliant repository to another by iterating through all records and transforming them.
- Monitor changes in a repository by periodically harvesting records and comparing against previous runs to detect new or deleted items.
- Build a metadata aggregator that combines records from multiple OAI sources into a unified catalog.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Sickle is a lightweight Python client library for harvesting metadata from OAI-PMH (Open Archives Initiative Protocol for Metadata Harvesting) compliant repositories, handling all six OAI verbs and automatically deserializing Dublin Core metadata.
Yes, if you need to harvest from an OAI-PMH repository and can accept that the package is no longer maintained. The low install friction, permissive license, and stable API make it suitable for production use in stable environments. However, verify that your target repositories still use OAI-PMH and that you are comfortable with no future updates or support for newer Python versions.
Install
sickle on PyPI
pip
pip install sickleuv
uv add sicklepoetry
poetry add sickleInstalling Sickle
Before you install
Low install friction with only two runtime dependencies (requests and lxml). However, the package is in abandoned maintenance status with no releases since May 2020 and the last commit in July 2023, so expect no bug fixes or updates for new Python versions.
License in practice
BSD license is permissive, allowing commercial and private use with minimal restrictions, making it safe to adopt from a licensing perspective.
Quickstart
pip install sickle
from sickle import Sickle
sickle = Sickle('http://elis.da.ulcc.ac.uk/cgi/oai2')
records = sickle.ListRecords(metadataPrefix='oai_dc')
first_record = records.next()
Verify before relying
- Current compatibility with modern Python versions (classifiers list up to Python 3.5) and whether lxml's security posture remains acceptable for production use.
- Whether the OAI-PMH protocol itself remains actively used in the repositories you intend to harvest from.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — requests, lxml |
| Maintenance | abandoned — 2,280 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 165,746/month — #10,517 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: Sickle-0.7.0-py3-none-any.whl
Keywords: oai, oai-pmh
Tags
More XML packages
Beautiful Soup parses HTML and XML documents…
permissive · top 100 on PyPI
lxmllxml provides Python bindings to libxml2 and…
permissive · top 1,000 on PyPI
defusedxmlDefusedxml hardens Python's standard XML…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
xmltodictConverts XML to Python dictionaries and back,…
permissive · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
ome-typesParse and manipulate OME-XML microscopy…
permissive · top 15,000 on PyPI
oxylabsOfficial Python client for Oxylabs web scraping…
permissive · top 15,000 on PyPI
extructExtracts structured metadata from HTML markup…
permissive · top 15,000 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
eml-parserParses EML (email) files and extracts…
agpl · top 15,000 on PyPI
cssselectcssselect parses CSS3 selectors and translates…
permissive · top 1,000 on PyPI
pyalexPyAlex is a Python interface to the OpenAlex…
permissive · top 15,000 on PyPI
prisma-saseLightweight Python SDK wrapper for the Palo…
permissive · top 15,000 on PyPI
lunrLunr is a lightweight, in-memory full-text…
permissive · top 15,000 on PyPI