herreio / picaplain

Parser for plain serialized PICA data from K10plus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

picaplain

picaplain is a Python package that allows to parse plain serialized PICA data from K10plus.

Installation

... via SSH

pip install -e git+ssh://git@github.com/herreio/picaplain.git#egg=picaplain

... or via HTTPS

pip install -e git+https://github.com/herreio/picaplain.git#egg=picaplain

Usage Example

Date source: K10plus UnAPI

import picaplain
import urllib.request
unapi_url = "https://unapi.k10plus.de/?format=pp&id=opac-de-627:ppn:84738084X"
connection = urllib.request.urlopen(unapi_url)
plain = connection.read().decode("UTF-8")
connection.close()
title = picaplain.K10plus(plain)
items = title.get_holdings_via_eln("DDSU")

About

Parser for plain serialized PICA data from K10plus

License:GNU General Public License v3.0


Languages

Language:Python 98.9%Language:Shell 1.1%