A Python client to interact with a Quetz server.
Project description
quetz-client
A Python client to interact with a Quetz server.
Installation
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.1.2.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file quetz_client-0.1.2.tar.gz
.
File metadata
- Download URL: quetz_client-0.1.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5ac7afe11d3c7160eb9d0780fdbdba051565d852d0bae4bbe34fcd88fcc4eb5 |
|
MD5 | b8028c2c153f69ceaabfff5e1780cb3c |
|
BLAKE2b-256 | bd38148c8208432d5cb258d1b8656c43c99ebf04bd1cc21bc980c2ee0f2d30f8 |
Provenance
File details
Details for the file quetz_client-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: quetz_client-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76c24c70eca5b712a6ec2973b7e78dbedbf151e6200ca1a320e8c128e0967343 |
|
MD5 | a9c3cbdf61d384820114d3ea18016444 |
|
BLAKE2b-256 | 2b99918eef2c876ec694055a9efc961d4880a6b51617fa604d8b265c3dfe3639 |