No project description provided
Project description
StatSuite-lib
StatSuite-lib is an opinionated library to interact with dotStatSuite components. There is no full coverage of the APIs, it will be completed as needed.
Installation
Use the package manager pip to install statsuite-lib.
pip install statsuite-lib
Usage
Check the documentation, mainly the statsuite-cli repo can serve as example on how to use this library Keycloak client must be initialized and pass to any other client requiring authentication to manage the token creation and renewal
from statsuite_lib import SFSClient, KeycloakClient
OPENID_URL = "http://localhost:8080/auth/realms/demo/.well-known/openid-configuration"
KEYCLOAK_USER = 'test-admin'
KEYCLOAK_PASSWORD = 'admin'
SFS_API_KEY = 'secret'
SFS_URL = 'http://localhost:3004'
keycloak = KeycloakClient(openid_url=OPENID_URL,
username=KEYCLOAK_USER,
password=KEYCLOAK_PASSWORD)
sfs = SFSClient(sfs_url=SFS_URL, sfs_api_key=SFS_API_KEY)
id = sfs.index()
print(f"Index started with id {id}")
sfs.wait_for_reindex_to_finish(loading_id=id, tenant='default')
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
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 statsuite_lib-0.2.6.tar.gz.
File metadata
- Download URL: statsuite_lib-0.2.6.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0985c79622ad747e2f06305073ea0fcaa9ec8f00023ad2b719735564ad5a7ea6
|
|
| MD5 |
a644dbb0570295e646d04dd5a5b91ad0
|
|
| BLAKE2b-256 |
bb165dcb91e80db55dfe5591681846faf3bea6992f6948d5b098131b996a2545
|
Provenance
The following attestation bundles were made for statsuite_lib-0.2.6.tar.gz:
Publisher:
workflow.yml on sergiopena/statsuite-lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
statsuite_lib-0.2.6.tar.gz -
Subject digest:
0985c79622ad747e2f06305073ea0fcaa9ec8f00023ad2b719735564ad5a7ea6 - Sigstore transparency entry: 757353716
- Sigstore integration time:
-
Permalink:
sergiopena/statsuite-lib@f66eec9a5fce4745f96c75cbb464f6b73a91f716 -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/sergiopena
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@f66eec9a5fce4745f96c75cbb464f6b73a91f716 -
Trigger Event:
push
-
Statement type:
File details
Details for the file statsuite_lib-0.2.6-py3-none-any.whl.
File metadata
- Download URL: statsuite_lib-0.2.6-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6eda0bbb467be466194d31e71e14729022bfd8d8407f0d14016ff92fe3fb0d06
|
|
| MD5 |
4d1e3b5b5680f4957dfecf5ecab90a00
|
|
| BLAKE2b-256 |
bf5030c66bbc63dde4bfc7136b6a81fffaef7bd9152b99f566bdf9b754f303b3
|
Provenance
The following attestation bundles were made for statsuite_lib-0.2.6-py3-none-any.whl:
Publisher:
workflow.yml on sergiopena/statsuite-lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
statsuite_lib-0.2.6-py3-none-any.whl -
Subject digest:
6eda0bbb467be466194d31e71e14729022bfd8d8407f0d14016ff92fe3fb0d06 - Sigstore transparency entry: 757353723
- Sigstore integration time:
-
Permalink:
sergiopena/statsuite-lib@f66eec9a5fce4745f96c75cbb464f6b73a91f716 -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/sergiopena
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@f66eec9a5fce4745f96c75cbb464f6b73a91f716 -
Trigger Event:
push
-
Statement type: