Skip to main content

Insight client

Python client & command line interface for Insight

Client Configuration

Before use, insight-client has to be configured. Configuration includes information about the OIDC provider, insight API and S3 storage backend. When you provide the client with a oidc.client-secret, the client will assume it's being used with a Service Account Role OIDC configuration. When no secret is provided it will try to authenticate using a Device Authorization Grant.

insight configure --help

The insight configuration file can be found $XDG_CONFIG_HOME/insight.conf (default ~/.config/insight.conf)

It is also possible to configure the client through environment variables:

INSIGHT_API_ENDPOINT
INSIGHT_OIDC_ENDPOINT
INSIGHT_OIDC_CLIENT_ID
INSIGHT_OIDC_CLIENT_SECRET
INSIGHT_STORAGE_STS_ENDPOINT
INSIGHT_STORAGE_IDENTITY_ROLE
INSIGHT_STORAGE_ENDPOINT
INSIGHT_STORAGE_BUCKET
INSIGHT_STORAGE_REGION

Development

You can configure the CLI for the default development setup like so, this will make use of the Device Authorization Grant:

poetry run insight configure \
    --api-endpoint=http://localhost:8080 \
    --oidc-endpoint=https://localhost:8000/realms/insight/protocol/openid-connect \
    --oidc-client-id=insight \
    --storage-sts-endpoint=http://localhost:9000 \
    --storage-endpoint=http://localhost:9000 \
    --storage-bucket=insight \
    --storage-region=insight

OAuth2Session does not trust our development certificates and doesn't connect to insecure endpoints be default. We can overload that behaviour like so:

OAUTHLIB_INSECURE_TRANSPORT=1 REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt poetry run insight file list

Metadata

Release files for insightclient 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for insightclient 0.4.1
File Size Uploaded
insightclient-0.4.1.tar.gz 20.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for insightclient 0.4.1
File Interpreter ABI Platform
insightclient-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 43.7 kB

Release files / insightclient-0.4.1.tar.gz

Download URL insightclient-0.4.1.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
24d6e93d61fbc54961449291f67978788a4fc347204a6585f4f0d76c90649872
BLAKE2b-256 checksum
How to use checksums
c7a4b478f097013143eb0f964bdb94c095459a9a0dbae1af25cfdcc0bd1bf6e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 12, 2025.

Transparency log

Release files / insightclient-0.4.1-py3-none-any.whl

Download URL insightclient-0.4.1-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4210e27271ebcf23881e936896328c89b245747274699e0e2c7b1c693303dde5
BLAKE2b-256 checksum
How to use checksums
1a77ef9712e9a44e8bb4ff380e534929ad68530a72ffff2994109ffe2f8a441b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 12, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page