Metadata-Version: 2.3
Name: fw-client
Version: 2.1.1
Summary: Flywheel HTTP API client.
License: MIT
Keywords: Flywheel,API,HTTP,client
Author: Flywheel
Author-email: support@flywheel.io
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: backoff (>=2.2.1,<3.0.0)
Requires-Dist: fw-utils (>=5.0.3,<6.0.0)
Requires-Dist: httpx[http2] (>=0,<1)
Requires-Dist: packaging (>=23)
Project-URL: Documentation, https://gitlab.com/flywheel-io/tools/lib/fw-client
Project-URL: Repository, https://gitlab.com/flywheel-io/tools/lib/fw-client
Description-Content-Type: text/markdown

# fw-client

Flywheel HTTP JSON API client hardened for production with transport and HTTP error retries.

## Installation

```bash
# installing into a venv
pip install fw-client

# adding as a project dependency
poetry add fw-client
```

## Usage

```python
from fw_client import FWClient
fw = FWClient("site.flywheel.io:djEuU79cNFk8pk4tLwxybb1YHqhzhyEXAMPLE")
project_labels = [project.label for project in fw.get("/api/projects")]
```

## Linting

```bash
pre-commit run -a
```

## Testing

```bash
poetry install
poetry run pytest
```

## License

[![MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)

