🕸️ Iris Python Client
Minimalist Python client for the Iris API, built on top of Authlib and httpx.
Installation
pip install dioptra-iris-client
Usage
from iris_client import IrisClient, AsyncIrisClient
base_url = "https://api.iris.dioptra.io"
username = "user@example.org"
password = "password"
# Synchronous client
with IrisClient(base_url, username, password) as client:
measurements = client.get("/measurements/").json()
# Asynchronous client
async with AsyncIrisClient(base_url, username, password) as client:
measurements = (await client.get("/measurements/")).json()
# Helper function to fetch all the results from a paginated endpoint,
# available for both clients:
all_measurements = client.all("/measurements/")
Credential provider chain
The Iris client looks for credentials in a way similar to the AWS SDK:
- If one of
base_url,usernameorpasswordis specified, these values will be used. - If none of the previous values are specified, and one of
IRIS_BASE_URL,IRIS_USERNAMEorIRIS_PASSWORDenvironment variables are present, these values will be used. - If none of the previous values are specified, and the file
~/.config/iris/credentials.jsonexists, the fieldsbase_url,usernameandpasswordwill be used.
Metadata
Release files for dioptra-iris-client 0.5.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dioptra_iris_client-0.5.10.tar.gz | 3.6 kB | Without provenance | Details for dioptra_iris_client-0.5.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dioptra_iris_client-0.5.10-py3-none-any.whl | Python 3 | none | any | Details for dioptra_iris_client-0.5.10-py3-none-any.whl |
Total release size: 8.5 kB
Release files / dioptra_iris_client-0.5.10.tar.gz
| Download URL | dioptra_iris_client-0.5.10.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d935de60e26c857597a6a53c57fb384a9c8677206e078cabbec31fd54793bb6a
|
|
BLAKE2b-256 checksum How to use checksums |
f8b9d8a9a4c5a97e4c7f484c41074d5eafc54491dc3ebed7ab9eb509a197e7f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / dioptra_iris_client-0.5.10-py3-none-any.whl
| Download URL | dioptra_iris_client-0.5.10-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93bbde043c9124112eee21b6aa2f06920e0c6d766af22f4e244aec77a7db332c
|
|
BLAKE2b-256 checksum How to use checksums |
ee61261ddb9c08d0e1e90dae41320e41af69ff6d24d3689eb0bf237581903ee6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for dioptra-iris-client 0.5.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.