Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1021 Bytes

README.md

File metadata and controls

53 lines (35 loc) · 1021 Bytes

quetz-client

A Python client to interact with a Quetz server. This client is compatible with all quetz versions listed here.

Installation

From conda-forge

mamba install quetz-client

From this repo

You can install the package in development mode using:

git clone [email protected]:mamba-org/quetz-client.git
cd quetz-client

# create and activate a fresh environment named quetz-client
# see environment.yml for details
mamba env create
conda activate quetz-client

pre-commit install
pip install --no-build-isolation -e .

Usage

Python Client

from quetz_client import QuetzClient

url = ""  # URL to your Quetz server
token = ""  # API token for your Quetz server

client = QuetzClient.from_token(url, token)

for channel in client.yield_channels():
    print(channel)

CLI Client

export QUETZ_SERVER_URL=""  # URL to your Quetz server
export QUETZ_API_KEY=""  # API token for your Quetz server

quetz-client --help