conda-broker
conda-broker is a conda plugin that supervises user-visible,
opt-in long-running services for conda-adjacent workflows.
It provides:
conda brokerandcbCLI entry points- a local user-scoped broker process
- process supervision with restart policies, health checks, logs, and events
- a private pluggy broker-provider API owned by this package
- a lightweight
BrokerAPI for other plugins to check service state without starting the broker
Install
Add conda-broker as a PyPI dependency with Pixi:
pixi add --pypi conda-broker
pixi run cb --help
Or, in a conda installation, use conda-pypi from the base environment:
conda activate base
conda install conda-pypi
conda pypi install conda-broker
conda broker --help
See the documentation for a quickstart, tutorials, task-focused guides, API and CLI reference, and architecture explanations.
Provider API
Broker providers expose services through the conda_broker pluggy project,
not through conda's own hook API:
import sys
from conda_broker.hookspec import hookimpl
from conda_broker.models import CondaService, ProcessSpec
@hookimpl
def conda_broker_services():
yield CondaService(
name="package-cache",
summary="Local conda package metadata cache",
source="conda-package-cache",
process=ProcessSpec(
argv=(sys.executable, "-m", "conda_package_cache", "--serve")
),
)
Register the provider module under:
[project.entry-points.conda_broker]
"my-provider" = "my_provider.broker"
Plugins can make runtime decisions without starting the broker:
from conda_broker import Broker
if endpoint := Broker.current().service("package-cache").endpoint(ready=True):
use_package_cache(endpoint.url)
Development
pixi install
pixi run cb status
pixi run -e test test
pixi run -e dev check
pixi run -e dev demo-check
pixi run -e docs docs
Release files for conda-broker 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| conda_broker-0.1.1.tar.gz | 2.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| conda_broker-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.6 MB
Release files / conda_broker-0.1.1.tar.gz
| Download URL | conda_broker-0.1.1.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e0fa11c6ebb38f2c93b2610ef19a233ded867749047586e8f702c37c941bce9
|
|
BLAKE2b-256 checksum How to use checksums |
66c78fb8dcecdfdcbfd873ae7b0f3cd3a41c7ab91d4a0ab2aaa1b5fb3fa95c4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.
Transparency logRelease files / conda_broker-0.1.1-py3-none-any.whl
| Download URL | conda_broker-0.1.1-py3-none-any.whl |
|---|---|
| Size | 59.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0f1f450a508902d499538703e03658b3caf6f6077e54ecd028a8b60350602db
|
|
BLAKE2b-256 checksum How to use checksums |
f752688b94d962329f60c84778f60bd40b67608b5d5f82eaf633d1051ac37223
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.
Transparency log