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 piplxml
: install with pip
The library works both with python2 and python3.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for alephmarcreader-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d06045c897606f0298c424e62a5380adf1169fa30d9dacc1085643c827150b7b |
|
MD5 | d29fb0c99e8dc3f15f10b8180b38302c |
|
BLAKE2b-256 | cb6f6c46fc7ecb471698cf9da945f5635171fd0ace2c83444aaf2ae7d1d9792e |