Metadata-Version: 2.4
Name: qondor-cli
Version: 0.1.0
Summary: CLI for calling the Qondor API
Project-URL: Homepage, https://qondor.com
Project-URL: Repository, https://github.com/Qondor-AS/qondor-cli
Project-URL: Issues, https://github.com/Qondor-AS/qondor-cli/issues
Project-URL: Changelog, https://github.com/Qondor-AS/qondor-cli/blob/main/CHANGELOG.md
Author-email: Qondor AS <support@qondor.com>
License: MIT License
        
        Copyright (c) 2026 Qondor AS
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: api,cli,qondor
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development
Requires-Python: >=3.12
Requires-Dist: qondor-api-sdk<0.2,>=0.1.0
Requires-Dist: rich<14,>=13
Requires-Dist: typer<1,>=0.12
Description-Content-Type: text/markdown

# qondor-cli

A command-line interface for the [Qondor API](https://qondor.com), built on
[Typer](https://typer.tiangolo.com/) and the
[`qondor-api-sdk`](https://pypi.org/project/qondor-api-sdk/).

## Install

```bash
pip install qondor-cli
```

Requires Python 3.12+.

## Configuration

The CLI reads credentials from environment variables (or equivalent flags):

| Variable                   | Required | Default | Description                                     |
| -------------------------- | -------- | ------- | ----------------------------------------------- |
| `QONDOR_SUBSCRIPTION_KEY`  | yes      | —       | Azure APIM subscription key for the Qondor API. |
| `QONDOR_ENV`               | no       | `prod`  | One of `prod`, `test`, `dev`.                   |

Every command also accepts `--subscription-key/-k` and `--env/-e` flags if you
prefer to pass them explicitly.

```bash
export QONDOR_SUBSCRIPTION_KEY="..."
export QONDOR_ENV="prod"
```

## Quick start

```bash
# List all top-level command groups.
qondor --help

# Fetch a single offer by ID (human-readable output).
qondor offer get 12345

# Same call, compact JSON suitable for piping into jq.
qondor offer get 12345 --raw | jq '.title'

# List offers for a project.
qondor offer list --project-id 678
```

## Command groups

- `qondor offer`          — offers and offer currencies
- `qondor project`        — projects
- `qondor customer`       — customers
- `qondor product`        — products
- `qondor product-group`  — product groups
- `qondor supplier`       — suppliers
- `qondor contact-person` — contact persons
- `qondor office`         — office queries
- `qondor statistics`     — statistics queries

Run `qondor <group> --help` for the sub-commands in each group.

## License

MIT. See [LICENSE](LICENSE).
