Metadata-Version: 2.4
Name: keyport
Version: 1.0.1
Summary: Official Python SDK for the live KeyPort public API
Project-URL: Homepage, https://keyport.sbs
Project-URL: Documentation, https://docs.keyport.sbs
License: MIT
Keywords: keyport,license,licensing,python,sdk,validation
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Description-Content-Type: text/markdown

# keyport-python

Official Python SDK for the live KeyPort public API.

## Install

```bash
pip install keyport
```

## Direct API key usage

```python
from keyport import KeyPort

client = KeyPort("kp_live_xxx")
result = client.validate("LICENSE-KEY", version="1.2.0")
```

## Config file usage

```json
{
  "api_key": "kp_live_xxx",
  "base_url": "https://api.keyport.sbs/api/v1",
  "timeout": 10
}
```

```python
from keyport import KeyPort

client = KeyPort.from_config_file("keyport.json")
detail = client.get_license("LICENSE-KEY")
```

## API key in code, rest from config

```python
from keyport import KeyPort

client = KeyPort.from_config_file(
    "keyport.json",
    api_key="kp_live_from_env",
)
```

## Supported operations

- `validate(license_key, version=None, device_id=None)`
- `get_license(license_key)`
