Skip to main content

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

MIT

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

statsuite_lib-0.2.3.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

statsuite_lib-0.2.3-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file statsuite_lib-0.2.3.tar.gz.

File metadata

  • Download URL: statsuite_lib-0.2.3.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for statsuite_lib-0.2.3.tar.gz
Algorithm Hash digest
SHA256 87571b796fd665cc9f0ca500dd5b92de79ac1ebca1dd1620e5d8cfca3d41f16b
MD5 82411b82b46bfa2ee93d248f9ef4e08a
BLAKE2b-256 c4a77efc306d8f31a4e5c0d0ed69fdc86f7862d4e5ded85b605ac45c5ba07ed5

See more details on using hashes here.

Provenance

The following attestation bundles were made for statsuite_lib-0.2.3.tar.gz:

Publisher: workflow.yml on sergiopena/statsuite-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file statsuite_lib-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: statsuite_lib-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for statsuite_lib-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a87c83f7ef9aff6f45a051c1f5b54fc266639c27719d4246a2cfdfca7e87a086
MD5 a2cc25c915e8d7e9b4580395a50d8af7
BLAKE2b-256 099c614f3668b0c19d0b89e8bc890edf46db2826aebe6b10f79c18b912e55424

See more details on using hashes here.

Provenance

The following attestation bundles were made for statsuite_lib-0.2.3-py3-none-any.whl:

Publisher: workflow.yml on sergiopena/statsuite-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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