Metadata-Version: 2.4
Name: dragxcel
Version: 1.0.0
Summary: Official Python SDK for the DragXcel API Platform
Home-page: https://github.com/dragxcel/dragxcel-python-sdk
Author: DragXcel Team
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.25.0
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# DragXcel Python SDK

Official Python client for the **DragXcel API Platform** â€” automate personalized certificate and email generation at scale.

## Installation

```bash
pip install dragxcel
```

## Quick Start (Connect your Data)

```python
from dragxcel import DragXcel

dxl = DragXcel()

# Connect your external API to DragXcel
dxl.connect(
    user_key='dxl_user_xxx',
    protection_key='dxl_prot_xxx',
    endpoint='https://your-api.com/members'
)
```

## Usage

### Automate Bulk Sending
```python
dxl = DragXcel(server_key='dxl_srv_xxx')

dxl.send(
    subject='Your Certificate',
    filter_rules=[
        {'column': 'Attendance%', 'operator': 'gte', 'value': 75}
    ],
    smtp=[
        {'email': 'sender@gmail.com', 'password': 'xxx', 'host': 'smtp.gmail.com', 'port': 465}
    ]
)
```

### Local Filtering Utility
```python
data = [
    {'name': 'Arun', 'score': 85},
    {'name': 'Sita', 'score': 60}
]

rules = [{'column': 'score', 'operator': 'gte', 'value': 75}]

filtered = DragXcel.filter_data(data, rules)
# [{'name': 'Arun', 'score': 85}]
```

## License
MIT
