No description
Find a file
2020-03-01 11:39:06 -05:00
.github/workflows Switch CI to Github. 2020-02-24 12:10:13 -05:00
docs Rename repository. 2020-01-21 09:32:55 -05:00
mocks Add ListMetadataFormats mock. 2020-03-01 11:37:06 -05:00
src Remove token echo. 2020-02-19 11:25:25 -05:00
tests Add sketchy http tests with no mocks or patches. 😟 2020-02-24 12:49:44 -05:00
.gitignore Ignore tests binary. 2020-03-01 11:35:53 -05:00
oaitools.nimble Remove token echo. 2020-02-19 11:25:25 -05:00
README.md Switch CI to Github. 2020-02-24 12:10:13 -05:00

Nim OAI Tools

Build and Test

A high-level OAI-PMH library for Nim.

Installation

nimble install https://github.com/markpbaggett/oaitools.nim

Examples

Get number of records in a request

import oaitools

var x = newOaiRequest("https://dpla.lib.utk.edu/repox/OAIHandler")
echo x.get_complete_size("MODS")

Get metadata prefixes from a provider

import oaitools

var x = newOaiRequest("https://dpla.lib.utk.edu/repox/OAIHandler")
echo x.list_metadata_formats()

Get a list of identifiers as a sequence that match a request

import oaitools

var x = newOaiRequest("https://dpla.lib.utk.edu/repox/OAIHandler", "utk_wderfilms")
echo x.list_identifiers("MODS")

More Documentation

All documentation and code examples can be found in this repository.