Skip to main content

Okapi/Folio Manager and Library

Project description

PyPI version Supported Python versions Documentation Status

FolioLib is an API-Client for Folio. The API is generated from the RAML and OAS files from the Folio-Modules.

Documentation can be found here.

Features:

  • Python Folio API

  • Commandline interface

  • Install and manage Folio

  • Install and manage Folio on Kubernetes

  • Manage multiple Folio servers

Quickstart

The installation requires python 3.6 or higher.

pip install foliolib

Define a config for your Folio server:

foliolib server create --help
foliolib server create myServer -H okapi.server.url -p 9130

Make a Folio-API request:

>>> from foliolib import server
>>> from foliolib.folio.users import Users
>>> from foliolib.folio.api.inventory import Inventory
>>>
>>> server("myServer")
>>>
>>> Users("TenantId").login("UserId","Password")
>>> inventory = Inventory("TenantId")
>>> instances = inventory.get_instances(query="title==*")
>>> print(instances)

Also foliolib provides a command line interface:

foliolib --help

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

foliolib-0.3.5a1.tar.gz (182.6 kB view hashes)

Uploaded Source

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