Metadata-Version: 2.4
Name: devlio
Version: 1.0.0
Summary: Official Python SDK for Devlio software licensing and digital marketplace API.
Author-email: Devlio Team <support@devlio.store>
License-Expression: MIT
Project-URL: Homepage, https://devlio.store
Project-URL: Documentation, https://devlio.store/docs
Project-URL: Repository, https://github.com/devlio/devlio-python-sdk
Project-URL: Issues, https://github.com/devlio/devlio-python-sdk/issues
Keywords: devlio,licensing,software-protection,marketplace,api-sdk
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Security
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# Devlio Python SDK

Official Python library for the Devlio digital marketplace and license verification engine.

## Installation

```bash
pip install devlio
```

## Quick Start: Software License Verification

Verify buyer license keys in your Python apps, CLI tools, scripts, or backend services with built-in 24-hour caching and automatic offline grace periods:

```python
from devlio import DevlioLicense

# Initialize with your Devlio project slug
lic = DevlioLicense("your-project-slug")

# Verify license
if lic.verify("DEV-XXXX-XXXX-XXXX"):
    print("License active!")
else:
    print("Invalid or expired license.")
```

### Activation & Deactivation

```python
# Activate on installation
lic.activate("DEV-XXXX-XXXX-XXXX", instance_name="Production Server")

# Deactivate on uninstall to free up a slot
lic.deactivate("DEV-XXXX-XXXX-XXXX")
```

---

## Creator & Store API

Manage your marketplace account, inspect sales, and reply to support tickets programmatically:

```python
from devlio import Devlio

client = Devlio(api_token="devlio_tok_...")

# Get user info
me = client.me()

# View published projects
projects = client.my_projects()

# Inspect earnings
earnings = client.earnings_summary()
```
