Skip to main content

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


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)

Uploaded Source

Built Distribution

Flask_Z3950-0.1.1-py2-none-any.whl (6.8 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page