Skip to main content

Python library for Ex Libris Primo (OMNIS) API

Project description

omnis-py

Biblioteka Python do obsługi API Ex Libris Primo (sieć OMNIS) oraz narzędzie CLI do zarządzania kontami bibliotecznymi.


Opis (PL)

omnis-py to biblioteka umożliwiająca programistyczny dostęp do kont czytelnika w bibliotekach korzystających z systemu Ex Libris Primo (w Polsce działających głównie w ramach sieci OMNIS).

Główne funkcjonalności

  • Autentykacja: Logowanie do systemów bibliotecznych przy użyciu numeru karty i hasła.
  • Wypożyczenia: Pobieranie listy aktywnych wypożyczeń wraz ze szczegółami (data zwrotu, autor, tytuł, filia).
  • Informacje o użytkowniku: Pobieranie stanu konta, liczby wypożyczeń, rezerwacji oraz naliczonych kar.
  • Prolongata: Możliwość przedłużania terminu zwrotu książek.
  • Narzędzie CLI: Wygodna aplikacja terminalowa do monitorowania wielu kont na raz.

Obsługiwane biblioteki (znane tenany)

Biblioteka jest uniwersalna i obsługuje m.in.:

  • Biblioteka Raczyńskich (Poznań)
  • Biblioteka Narodowa (Warszawa)
  • Biblioteka UAM (Poznań)
  • Dolnośląska Biblioteka Publiczna (Wrocław)
  • Uniwersytet Jagielloński (Kraków)
  • Uniwersytet Mikołaja Kopernika (Toruń)
  • Wojewódzka Biblioteka Publiczna (Kielce)
  • Koszalińska Biblioteka Publiczna
  • Książnica Zamojska
  • ...oraz każdą inną bibliotekę Primo po podaniu jej adresu URL i kodu instytucji.

Instalacja

pip install omnis-py

Dla narzędzia CLI zalecane jest użycie pipx:

pipx install omnis-py

Użycie CLI

Po instalacji dostępne jest polecenie omnis-cli.

Przy pierwszym uruchomieniu program poprowadzi Cię przez kreator dodawania konta. Konfiguracja jest przechowywana w ~/.config/omnis-py/config.yaml.

  • omnis-cli - wyświetla podsumowanie dla wszystkich kont i listę książek pogrupowaną według filii.
  • omnis-cli --add - dodaje nowe konto do konfiguracji.

Description (EN)

omnis-py is a Python library providing programmatic access to patron accounts in libraries using the Ex Libris Primo system (widely used in Poland under the OMNIS network).

Key Features

  • Authentication: Login using card number and password.
  • Loans: Fetch active loans with details (due date, author, title, branch).
  • User Info: Get account status, number of loans, requests, and fines.
  • Renewal: Support for renewing book loan terms.
  • CLI Tool: A convenient terminal application to monitor multiple accounts at once.

Supported Libraries

The library is generic and supports various institutions including:

  • Raczyński Library (Poznań)
  • National Library of Poland (Warszawa)
  • Adam Mickiewicz University Library (Poznań)
  • Lower Silesian Public Library (Wrocław)
  • Jagiellonian University (Kraków)
  • Nicolaus Copernicus University (Toruń)
  • ...and any other Primo library by providing its URL and institution code.

Installation

pip install omnis-py

For the CLI tool, using pipx is recommended:

pipx install omnis-py

CLI Usage

Once installed, the omnis-cli command becomes available.

On first run, it will guide you through adding an account. Configuration is stored in ~/.config/omnis-py/config.yaml.

  • omnis-cli - shows a summary for all accounts and a book list grouped by branch.
  • omnis-cli --add - adds a new account to the configuration.

Home Assistant

Istnieje również integracja dla Home Assistant korzystająca z tej biblioteki: omnis-ha.

There is also a Home Assistant integration using this library: omnis-ha.

License

MIT

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

omnis_py-0.1.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omnis_py-0.1.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file omnis_py-0.1.1.tar.gz.

File metadata

  • Download URL: omnis_py-0.1.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for omnis_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f70574159b541ad6ee9a91ac3149d5b179cd5bb50d8dcd9fc98e98ba1d811dff
MD5 b26845788e80a271a45e9cd19b7e7fd6
BLAKE2b-256 acbd893012ecd38a2a938ceb2be2fa106997f53777c68b8ad7145f88fdd75596

See more details on using hashes here.

Provenance

The following attestation bundles were made for omnis_py-0.1.1.tar.gz:

Publisher: ci.yml on theundefined/omnis-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omnis_py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: omnis_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for omnis_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 022e440f9fbd6ff36175d42cb0384080c743ebcfcae0dc8862517ce7d3aac6a5
MD5 58b514ce205921ae6eb6e509ae002341
BLAKE2b-256 582878f0d340ec837b487ce61f894b11520b945eb9468705c29e5809b749da3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for omnis_py-0.1.1-py3-none-any.whl:

Publisher: ci.yml on theundefined/omnis-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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