Skip to main content

cbrapitools

Python API clients and auth helpers for CBR platforms: CMP, Keystone and Keycloak.

Install

pip install cbrapitools

Requires Python 3.11 or newer.

Usage

from cbrapitools.cmp import CmpApiClient
from cbrapitools.keystone import KeystoneApiClient

Base URLs and credentials are passed in by the caller (constructor arguments or environment variables). Nothing environment-specific is hard-coded in the package.

Modules

Module Purpose
http_client Shared HTTP layer used by the API clients
keycloak Token acquisition and refresh against Keycloak
cmp Client for the Cohort Management Portal API
keystone Client for the Keystone API

Development

python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest

Releasing

  1. Bump version in pyproject.toml (PyPI never accepts the same version twice).

  2. Build and check:

    rm -rf dist
    python -m build
    twine check dist/*
    
  3. Upload: twine upload dist/*

  4. Users upgrade with pip install -U cbrapitools.

Metadata

Release files for cbrapitools 0.1.9

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

Source distribution (sdist)

Source distribution for cbrapitools 0.1.9
File Size Uploaded Provenance Actions
cbrapitools-0.1.9.tar.gz 12.9 kB Without provenance Details for cbrapitools-0.1.9.tar.gz

Built distribution (wheel)

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

Total release size: 27.1 kB

Release files / cbrapitools-0.1.9.tar.gz

Download URL cbrapitools-0.1.9.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0a8f12f16d2189ecd6589bbc20cd399ecab9713857f86a93ac374f0e04deb8c8
BLAKE2b-256 checksum
How to use checksums
f771a0ad5da2b361b753771203ea41bf442e5e53a63ee8bb9832d30be80fde70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / cbrapitools-0.1.9-py3-none-any.whl

Download URL cbrapitools-0.1.9-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e068d17e632710bc8b2e5ead1406f5f85f4e7480fd745d935fdfe3ee073da5fb
BLAKE2b-256 checksum
How to use checksums
a793c90c48d0e4ea7a15e806a802264df7cdaa82d001ab2d237afa0ad3fb6c62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for cbrapitools 0.1.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.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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