Metadata-Version: 2.5
Name: apila
Version: 0.1.0
Summary: Python SDK for the Apila API
Author-email: Apila Manage Oy <support@apilamanage.fi>
License-Expression: MIT
License-File: LICENSE
Keywords: api,apila,azure-ad,entra-id,sdk
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
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-Python: >=3.9
Requires-Dist: requests>=2.28
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == 'dev'
Description-Content-Type: text/markdown

# apila

Python SDK for the Apila Partner API.

```python
import apila

client = apila.Client(
    tenant_id="<apila-tenant-id>",
    azure_tenant_id="<azure-ad-tenant-id>",
    client_id="<azure-ad-app-client-id>",
    client_secret="<azure-ad-app-client-secret>",
    scope="api://<apila-app-id>/.default",
)
```

Authentication uses Azure AD (Entra ID) client credentials flow.
The client fetches and caches access tokens automatically.

## Install

```
pip install apila
```

## Requirements

- Python >= 3.9
- `requests` (only runtime dependency)

## Apila sandbox compatibility

Designed to run inside the Apila sandbox (RestrictedPython).
`requests` is the only runtime dependency; no other packages are added.
