A Python client to interact with a Quetz server.
Project description
quetz-client
A Python client to interact with a Quetz server. Compatible with quetz>=0.6.1
.
Installation
From conda-forge
mamba install quetz-client
From this repo
You can install the package in development mode using:
git clone git@github.com: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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quetz_client-0.3.0.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for quetz_client-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c80932651dea3a35289d1aa2e01fc2d1854777608ff4a00e08b87846000cd2fd |
|
MD5 | 1195de77d258c4c59377684e75bcd231 |
|
BLAKE2b-256 | 222ad4867ce6c82b8d9780a9e1cf7fabba7a4ef515379f81914a8e2cdbec9c6e |