Metadata-Version: 2.4
Name: openskin_client
Version: 0.1.0
Summary: OpenSkin Platform API
Home-page: 
Author: OpenAPI Generator community
Author-email: OpenSkin <hello@openskin.dev>
License-Expression: MIT
Project-URL: Repository, https://github.com/wlchrist/openskin-python
Keywords: OpenAPI,OpenAPI-Generator,OpenSkin Platform API
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: httpx>=0.28.1
Requires-Dist: pydantic>=2.11
Requires-Dist: typing-extensions>=4.7.1
Dynamic: author
Dynamic: license-file

# OpenSkin Python SDK

Async Python client for the OpenSkin Platform API. Python 3.10 or newer is
required.

## Install

```sh
pip install openskin-client
```

## Example

```python
import asyncio
import os

import openskin_client
from openskin_client.openskin import client


async def main() -> None:
    api_key = os.environ.get("OPENSKIN_API_KEY")
    if not api_key:
        raise RuntimeError("set OPENSKIN_API_KEY before running")

    async with client(api_key) as api_client:
        platform = openskin_client.PlatformV2Api(api_client)
        account = await platform.get_v2_principal()
        print(account.tier)


asyncio.run(main())
```

The client uses `https://api-v2.openskin.dev` by default. Create an API key in
the [OpenSkin dashboard](https://platform.openskin.dev/dashboard).

See the [API reference](https://platform.openskin.dev/docs/platform) for the
available operations. Requests and responses are typed with Pydantic.
Endpoints that require `Idempotency-Key` or `If-Match` expose those headers as
required method arguments.

Licensed under the MIT License.
