This release is a pre-release and may not be stable for production use.
cosmos-hub-pipelines-core
Cosmos Hub Pipelines - Core utilities.
Installation
pip install cosmos-hub-pipelines-core
Quick Start
from cosmos_hub.pipelines.core import ...
Development
uv sync
uv run pytest # runs with coverage, gated at 80% (excludes _generated/)
uv run ruff check .
uv run ruff format .
Tests use pytest-httpx to mock the wire (never a real network call) and
pytest-asyncio for the couple of tests that exercise a generated service's
raw async client directly. Coverage is measured only over hand-written code
(auth.py, client.py, settings.py, __init__.py) — _generated/ is
excluded since it's vendor code we don't maintain.
Regenerating the API clients
Each file in specs/ is an OpenAPI 3 spec for one CosmosID SaaS microservice. Every
spec is generated independently into its own submodule under
src/cosmos_hub/pipelines/core/_generated/<service>/ using the
OpenAPI Generator python generator with the
httpx library — never hand-edit anything under _generated/, it is wholesale
replaced on every run.
docker pull openapitools/openapi-generator-cli:v7.24.0 # one-time
python scripts/generate_clients.py # regenerate everything
python scripts/generate_clients.py admin charge # regenerate just these
To onboard a new service, drop its spec as specs/<service>_api.{json,yaml} and rerun
the script — the submodule name and package path are derived automatically from the
filename.
License
CosmosID SaaS API Client License. Use of this software is licensed, not sold, for the purpose of interoperating with CosmosID's SaaS platform — see LICENSE for full terms. Modification and redistribution are not permitted without CosmosID's written consent.
Release files for cosmos-hub-pipelines-core 0.0.2a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cosmos_hub_pipelines_core-0.0.2a1.tar.gz | 333.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cosmos_hub_pipelines_core-0.0.2a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.0 MB
Release files / cosmos_hub_pipelines_core-0.0.2a1.tar.gz
| Download URL | cosmos_hub_pipelines_core-0.0.2a1.tar.gz |
|---|---|
| Size | 333.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0401dbf05d069767f336c7cc5940a63214c20d62011e208902b8f35c5edd994f
|
|
BLAKE2b-256 checksum How to use checksums |
b3fed16fcb6b9d9f2b5b0a129340eddbee24d7630a41a84bfe56b12681c2367d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / cosmos_hub_pipelines_core-0.0.2a1-py3-none-any.whl
| Download URL | cosmos_hub_pipelines_core-0.0.2a1-py3-none-any.whl |
|---|---|
| Size | 695.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7095a75423299c9ae039ffc43ab511c360e632646d5d6228a5dc41fd69b26691
|
|
BLAKE2b-256 checksum How to use checksums |
d5127024fbb272164a657413c2b349ddf317662e3ece6dc3971c439a9a291d50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|