FolioLib
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 at https://foliolib.readthedocs.io/.
Python packages can be found at https://pypi.org/project/foliolib/.
Debian packages can be found at https://github.com/tobi-weber/foliolib/releases/latest/.
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