Python client and CLI for Insight
Project description
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
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
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 insightclient-0.3.8.tar.gz.
File metadata
- Download URL: insightclient-0.3.8.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f26fcea0bb95e68184035676f88f014eaa161c5384606a3ac26107c654b008f6
|
|
| MD5 |
fa5248a722360ede9c5cfdec361da056
|
|
| BLAKE2b-256 |
c771cdd6aa8b1b5277c2e0c1530c2162c20dd15bd117f64b5fe2026c09c06b96
|
Provenance
The following attestation bundles were made for insightclient-0.3.8.tar.gz:
Publisher:
publish.yml on resolve-works/insight-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
insightclient-0.3.8.tar.gz -
Subject digest:
f26fcea0bb95e68184035676f88f014eaa161c5384606a3ac26107c654b008f6 - Sigstore transparency entry: 153277983
- Sigstore integration time:
-
Permalink:
resolve-works/insight-client@a08d65c0b3e51ca40675c18872fa178be574e25b -
Branch / Tag:
refs/tags/v0.3.8 - Owner: https://github.com/resolve-works
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a08d65c0b3e51ca40675c18872fa178be574e25b -
Trigger Event:
release
-
Statement type:
File details
Details for the file insightclient-0.3.8-py3-none-any.whl.
File metadata
- Download URL: insightclient-0.3.8-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd9530ba46e03d88165045d2e7b9704bde722e4d80f3416c6d4c66654eab4a09
|
|
| MD5 |
33eab7286409ba0695d721b402c79ca2
|
|
| BLAKE2b-256 |
4ecdfd5f355a0564d0ca7b36bda01685cd121b86fb53b5b86fc96d4f6f58351c
|
Provenance
The following attestation bundles were made for insightclient-0.3.8-py3-none-any.whl:
Publisher:
publish.yml on resolve-works/insight-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
insightclient-0.3.8-py3-none-any.whl -
Subject digest:
cd9530ba46e03d88165045d2e7b9704bde722e4d80f3416c6d4c66654eab4a09 - Sigstore transparency entry: 153277984
- Sigstore integration time:
-
Permalink:
resolve-works/insight-client@a08d65c0b3e51ca40675c18872fa178be574e25b -
Branch / Tag:
refs/tags/v0.3.8 - Owner: https://github.com/resolve-works
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a08d65c0b3e51ca40675c18872fa178be574e25b -
Trigger Event:
release
-
Statement type: