Skip to main content

A package to read Marc files obtained from Aleph, catalogue of the library of the University of Basel

Project description

alephmarcreader

General

Python library to read Marc obtained from Aleph, the catalogue of the library of the University of Basel.

This library supports Marc21, MARCXML, and AlephX.

Documentation

The docstrings can be displayed with pydoc (from the project root): pydoc alephmarcreader.abstractalephmarcreader.AbstractAlephMarcReader. For the inner classes such as Person, run pydoc alephmarcreader.abstractalephmarcreader.AbstractAlephMarcReader.Person.

Design

alephmarcreader.abstractalephmarcreader.AbstractAlephMarcReader provides methods to access Marc data. It is an abstract class that has two abstract methods __get_field and __get_subfield_text that have to be implemented in the subclass for the file format at hand.

Unit Tests

From the project root, run python -m unittest alephmarcreader.tests.test_[Marc[21|XML]|X]Reader.

Dependencies

  • pymarc: install with pip
  • lxml: install with pip

The library works both with python2 and python3.

Project details


Release history Release notifications

This version
History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
alephmarcreader-0.0.1-py3-none-any.whl (27.2 kB) Copy SHA256 hash SHA256 Wheel py3
alephmarcreader-0.0.1.tar.gz (9.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page