Skip to main content

A Python client to interact with a Quetz server.

Project description

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 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.5.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

quetz_client-0.5.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file quetz_client-0.5.0.tar.gz.

File metadata

  • Download URL: quetz_client-0.5.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for quetz_client-0.5.0.tar.gz
Algorithm Hash digest
SHA256 c955f6e60f08340a42e30d15b318d54e1c70dd8be3cf454a195db30f6414c4e4
MD5 b244ecce75ab716199f71b616aad36f1
BLAKE2b-256 4c79c826fb308818bf9ee36c1e0bcf1a7a4dc13dcf1289ed62cb937d85a406f0

See more details on using hashes here.

Provenance

File details

Details for the file quetz_client-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: quetz_client-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for quetz_client-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b00d21ebdcfd2b01d64082b59d764f083883a5a320ce6f3c4617504f6abeb20
MD5 72dba778eb015e1709a496200bf92910
BLAKE2b-256 0c3e0ac0636547f657e38525fdb1e49a08994471bbc7665127f74c84e22c1f25

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page