# quetz-client
A Python client to interact with a Quetz server. This client is compatible with all `quetz` versions listed [here](./.quetz-server-versions).
## Installation
### From conda-forge
```bash
mamba install quetz-client
```
### From this repo
You can install the package in development mode using:
```bash
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
```py
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
```sh
export QUETZ_SERVER_URL="" # URL to your Quetz server
export QUETZ_API_KEY="" # API token for your Quetz server
quetz-client --help
```
Raw data
{
"_id": null,
"home_page": "https://github.com/mamba-org/quetz-client",
"name": "quetz-client",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "QuantCo, Inc.",
"author_email": "noreply@quantco.com",
"download_url": "https://files.pythonhosted.org/packages/4c/79/c826fb308818bf9ee36c1e0bcf1a7a4dc13dcf1289ed62cb937d85a406f0/quetz_client-0.5.0.tar.gz",
"platform": null,
"description": "# quetz-client\n\nA Python client to interact with a Quetz server. This client is compatible with all `quetz` versions listed [here](./.quetz-server-versions).\n\n## Installation\n\n### From conda-forge\n\n```bash\nmamba install quetz-client\n```\n\n### From this repo\n\nYou can install the package in development mode using:\n\n```bash\ngit clone git@github.com:mamba-org/quetz-client.git\ncd quetz-client\n\n# create and activate a fresh environment named quetz-client\n# see environment.yml for details\nmamba env create\nconda activate quetz-client\n\npre-commit install\npip install --no-build-isolation -e .\n```\n\n## Usage\n\n### Python Client\n\n```py\nfrom quetz_client import QuetzClient\n\nurl = \"\" # URL to your Quetz server\ntoken = \"\" # API token for your Quetz server\n\nclient = QuetzClient.from_token(url, token)\n\nfor channel in client.yield_channels():\n print(channel)\n```\n\n### CLI Client\n\n```sh\nexport QUETZ_SERVER_URL=\"\" # URL to your Quetz server\nexport QUETZ_API_KEY=\"\" # API token for your Quetz server\n\nquetz-client --help\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "A Python client to interact with a Quetz server.",
"version": "0.5.0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0c3e0ac0636547f657e38525fdb1e49a08994471bbc7665127f74c84e22c1f25",
"md5": "72dba778eb015e1709a496200bf92910",
"sha256": "8b00d21ebdcfd2b01d64082b59d764f083883a5a320ce6f3c4617504f6abeb20"
},
"downloads": -1,
"filename": "quetz_client-0.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "72dba778eb015e1709a496200bf92910",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5821,
"upload_time": "2023-04-12T06:33:47",
"upload_time_iso_8601": "2023-04-12T06:33:47.054480Z",
"url": "https://files.pythonhosted.org/packages/0c/3e/0ac0636547f657e38525fdb1e49a08994471bbc7665127f74c84e22c1f25/quetz_client-0.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4c79c826fb308818bf9ee36c1e0bcf1a7a4dc13dcf1289ed62cb937d85a406f0",
"md5": "b244ecce75ab716199f71b616aad36f1",
"sha256": "c955f6e60f08340a42e30d15b318d54e1c70dd8be3cf454a195db30f6414c4e4"
},
"downloads": -1,
"filename": "quetz_client-0.5.0.tar.gz",
"has_sig": false,
"md5_digest": "b244ecce75ab716199f71b616aad36f1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 7002,
"upload_time": "2023-04-12T06:33:49",
"upload_time_iso_8601": "2023-04-12T06:33:49.133116Z",
"url": "https://files.pythonhosted.org/packages/4c/79/c826fb308818bf9ee36c1e0bcf1a7a4dc13dcf1289ed62cb937d85a406f0/quetz_client-0.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-12 06:33:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "mamba-org",
"github_project": "quetz-client",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "quetz-client"
}