orodha-user-sdk
Description
The Orodha User SDK is a Software Development Kit used in order to interact with the Orodha User Service.
Usage
In order to use the SDK you need to have an environment variable that contains the base url for the running user service. This variable is named
ORODHA_USER_SERVICE_BASE_URL
To use the SDK you must import the client class from the orodha_user_client module, like so:
from orodha_user_client import OrodhaUserClient
After importing the module, you simply instantiate the client with a special credentials object which you can create using orodha-keycloak.
The credentials object is called OrodhaCredentials and is an object containing the information needed to communicate with keycloak via orodha-keycloak.
Methods
The only available method currently is the bulk_get method.
This method will return a list of objects with the following structure:
{
"_id": str,
"keycloak_id": str,
"username": str,
}
It accepts a dictionary called request_args that contains the arguments for the request to the Orodha User Service.
The expected shape of the dictionary is as so:
{
"pageSize": int,
"pageNum": int,
"targets": list[str]
}
The targets list is used to query only for specific usernames and their values; if the targets list is empty, the query will be for all users in the database.
A dictionary is required to be passed into the function, but the dictionary need not contain any values; this is because the user service contains default values for this call.
Metadata
Release files for orodha-user-client 1.0
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 | |
|---|---|---|---|---|
| orodha_user_client-1.0.tar.gz | 5.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| orodha_user_client-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / orodha_user_client-1.0.tar.gz
| Download URL | orodha_user_client-1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4213ce145136060bfb94d695b17c31f38e12886527ab7ab9bb4db3436525c6c5
|
|
BLAKE2b-256 checksum How to use checksums |
55293d38838de94b96cc966539740a5722446bb01e3e14e103b6ab9bb5ed67a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / orodha_user_client-1.0-py3-none-any.whl
| Download URL | orodha_user_client-1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fbbac89442f0664b9ea31b0f149c8fdb244b6da069b2ae6fa056f5165d9955b
|
|
BLAKE2b-256 checksum How to use checksums |
446389a40ddae8f855dbaf6011236606f9512551e83d8c95b7b28d5940bbc87c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for orodha-user-client 1.0
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.