Okapi/Folio Manager and Library
Project description
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 --host okapi.server.url --port 9130 --admin
Make a Folio-API request:
>>> from foliolib import server
>>> from foliolib.folio.usersImpl import UsersImpl
>>> from foliolib.folio.api.inventory import Inventory
>>>
>>> server("myServer")
>>>
>>> UsersImpl("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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file foliolib-0.3.12a4.tar.gz
.
File metadata
- Download URL: foliolib-0.3.12a4.tar.gz
- Upload date:
- Size: 245.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09d8afa8ad26c4969992c3ceaf325cbc03427115cb05b3daba7e56bb98c1c462 |
|
MD5 | e126172bfe560defba7da812b89374c3 |
|
BLAKE2b-256 | baec11d9af4dd4d0a34527c4372c88670a1667ca606f94f8a2dcf62f4a5348bc |