Skip to main content

Framework for client development for popular Prussian library computer system IRBIS64

Project description

PythonIrbis

PythonIrbis package is just ManagedIrbis package ported from C# to Python 3

Supported environments

PythonIrbis currently supports Python 3.6 and 3.7 on 32-bit and 64-bit Windows, Linux, Mac OS X and IRBIS64 server version 2014 or later.

Sample program

import irbis

# Connect to the server
client = irbis.Connection()  # pylint:disable=invalid-name
client.parse_connection_string('host=127.0.0.1;database=IBIS;' +
    'user=librarian;password=secret;')
client.connect()

if not client.connected:
    print("Can't connect")
    exit(1)

# Search for books written by Byron
found = client.search('"A=Byron$"')
print(f'Records found: {len(found)}')

# Take first 10 records
for mfn in found[:10]:
    # Read the record from the server
    record = client.read_record(mfn)

    # Extract the field and subfield from the record
    title = record.fm(200, 'a')
    print(f'Title: {title}')

    # Format the record by the server
    description = client.format_record(irbis.BRIEF, mfn)
    print(f'Description: {description}')

    print()  # Print empty line

# Disconnect from the server
client.disconnect()

Links

Build status

Issues Release Build status FOSSA Status GitHub Action

License

FOSSA Status

Documentation (in russian)

Project details


Download files

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

Files for irbis, version 0.1.131
Filename, size File type Python version Upload date Hashes
Filename, size irbis-0.1.131-py3-none-any.whl (53.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size irbis-0.1.131.tar.gz (41.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page