Metadata-Version: 2.4
Name: fw-client
Version: 2.2.0
Summary: Flywheel HTTP API client.
Project-URL: Repository, https://gitlab.com/flywheel-io/tools/lib/fw-client
Project-URL: Documentation, https://gitlab.com/flywheel-io/tools/lib/fw-client
Author-email: Flywheel <support@flywheel.io>
License-Expression: MIT
License-File: LICENSE
Keywords: API,Flywheel,HTTP,client
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: <4,>=3.10
Requires-Dist: backoff<3,>=2.2.1
Requires-Dist: fw-utils<6,>=5.0.3
Requires-Dist: httpx[http2]<1,>=0
Requires-Dist: packaging>=23
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)
