Z39.50 integration for Flask applications.
Project description
A Flask plugin for Z3950 integration.
Quickstart
Initialise a Z3950Manager object and start performing searches with your chosen Z3950Database, like so:
from flask import Flask
from flask.ext.z3950 import Z3950Manager
app = Flask(__name__)
db_config = {"db": "Voyager", "host": "z3950.loc.gov", "port": 7090}
app.config["Z3950_DATABASES"] = {"loc": db_config}
z3950_manager = Z3950Manager(app)
z3950_db = z3950_manager.databases['loc']
records = z3850_db.search("ti=1066 and all that")
print records.data
Configuration
Z39.50 connection details can be specified by adding the following variable to your Flask configuration file:
Z3950_DATABASES = {'name': {'host': '', 'db': '', 'port': '', 'user': '', 'password': '', 'syntax': ''}}
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
Flask-Z3950-0.1.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for Flask_Z3950-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baabb9712db1b7e29efdeffa612691d2b444674d371dbcfec755bb6e7620da23 |
|
MD5 | 853d54b39e692683f5ec939560070755 |
|
BLAKE2b-256 | 6e7d60f42885a1f3c10030d9da93977ca1aecc725a87e6cfe5334724f52478db |