Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sierra_ils_utils-0.0.1a20250126.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

sierra_ils_utils-0.0.1a20250126-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file sierra_ils_utils-0.0.1a20250126.tar.gz.

File metadata

File hashes

Hashes for sierra_ils_utils-0.0.1a20250126.tar.gz
Algorithm Hash digest
SHA256 81e45b2340f4e5d3d84d3ebafd4a36a42bceee07e5394087cfbcb5809b5ee7d0
MD5 75ca575cbc34ae9d86cddf0f286199bd
BLAKE2b-256 e4709a189efcd28cf9e16989a6fc11e2ba0630d12051df1f0730545b715dd4c2

See more details on using hashes here.

File details

Details for the file sierra_ils_utils-0.0.1a20250126-py3-none-any.whl.

File metadata

File hashes

Hashes for sierra_ils_utils-0.0.1a20250126-py3-none-any.whl
Algorithm Hash digest
SHA256 1edc72ead9b7b155e02d479419c8ca60cafb2e7068fdedf15878ade71d03f3f7
MD5 828905f2dbee6f4e1ebd0588b9698454
BLAKE2b-256 1424159b991b86436eeb406d09e581c16fc19ec2c7a17e6409f12124cb7e40ce

See more details on using hashes here.

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