Python wrappers for working with the Sierra ILS
Project description
sierra-ils-utils
sierra-ils-utils is a Python library / wrapper around HTTPX -- providing largely the same fully featured HTTP client for Python 3).
The library provides convenient synchronous and asynchronous methods for working with the Sierra ILS REST API. The client provided by the library automatically handles the token-based authentication (client-credentials flow) and includes configurable retry and backoff logic.
Installation
# You can install sierra-ils-utils from PyPI:
pip install sierra-ils-utils
Quick Start
from sierra_ils_utils import SierraAPI
client = SierraRESTClient(
base_url="https://catalog.library.org/iii/sierra-api/v6/",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET"
)
# Make a synchronous request (returns a httpx.Response)
response = client.request("GET", "info/token") # <Response [200 200]>
response.raise_for_status()
# Or, make an async request (returns a httpx.Response)
response = await client.async_request("GET", "info/token") # <Response [200 200]>
response.raise_for_status()
The request() and async_request() client methods will return httpx.Response objects.
License
This project is released under the MIT License.
Authors
Ray Voelker – ray.voelker@gmail.com
Issues and Support
Please open an issue on GitHub if you encounter problems, bugs, or have feature requests. We welcome all contributions and feedback!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sierra_ils_utils-0.0.1a20250126.tar.gz.
File metadata
- Download URL: sierra_ils_utils-0.0.1a20250126.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81e45b2340f4e5d3d84d3ebafd4a36a42bceee07e5394087cfbcb5809b5ee7d0
|
|
| MD5 |
75ca575cbc34ae9d86cddf0f286199bd
|
|
| BLAKE2b-256 |
e4709a189efcd28cf9e16989a6fc11e2ba0630d12051df1f0730545b715dd4c2
|
File details
Details for the file sierra_ils_utils-0.0.1a20250126-py3-none-any.whl.
File metadata
- Download URL: sierra_ils_utils-0.0.1a20250126-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1edc72ead9b7b155e02d479419c8ca60cafb2e7068fdedf15878ade71d03f3f7
|
|
| MD5 |
828905f2dbee6f4e1ebd0588b9698454
|
|
| BLAKE2b-256 |
1424159b991b86436eeb406d09e581c16fc19ec2c7a17e6409f12124cb7e40ce
|