Metadata-Version: 2.4
Name: ardent-sdk
Version: 0.6.0
Summary: Python SDK for Ardent AI - Simplify your data engineering tasks
Home-page: https://github.com/ArdentAILabs/ArdentAPI
Author: Ardent AI
Author-email: vikram@ardentai.io
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.24.0
Requires-Dist: python-dotenv>=0.19.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Ardent Python SDK

Official Python SDK for Ardent AI - Simplify your data engineering tasks with AI-powered automation.

[![PyPI version](https://badge.fury.io/py/ardent-sdk.svg)](https://badge.fury.io/py/ardent-sdk)
[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)

## Installation

```bash
pip install ardent-sdk
```

## Quick Start

```python
from ardent import ArdentClient

# Initialize the client
with ArdentClient("your-public-key", "your-secret-key") as client:
    # Create and execute a job
    job = client.create_job("Analyze sales data and generate report")
    result = client.execute_job(
        jobID=job["id"],
        message="Analyze sales data and generate report",
        files_share_name=job["files_share_name"],
        userID=job["userID"]
    )
    print(result)

    # Setup a data connector
    connector = client.setup_connector(
        service_name="postgresql",
        connection_details={
            "host": "localhost",
            "port": 5432,
            "database": "mydb",
            "username": "user",
            "password": "pass"
        },
        name="Production Database",
        selected_paths=["public.users", "public.orders"]
    )
```

## Features

- **Job Management**: Create and execute AI-powered data engineering tasks
- **Data Connectors**: Connect to PostgreSQL, MySQL, MongoDB, Airflow, and more
- **Data Discovery**: Automatically discover schemas and data structures
- **Intelligent Indexing**: Index and vectorize your data for AI operations
- **Context Management**: Automatic resource cleanup with context managers
- **Type Safety**: Full type hints for better IDE support

## Documentation

For comprehensive documentation, including:
- Complete API reference
- Advanced usage patterns
- Release process and versioning
- Development and contribution guidelines

**Visit: [docs/sdk/sdk-py.md](../docs/sdk/sdk-py.md)**

## Error Handling

```python
from ardent import ArdentClient, ArdentAPIError, ArdentAuthError

try:
    with ArdentClient(public_key, secret_key) as client:
        job = client.create_job("My task")
except ArdentAuthError:
    print("Authentication failed - check your API keys")
except ArdentAPIError as e:
    print(f"API error: {e}")
```

## Requirements

- Python 3.8+
- httpx >= 0.24.0
- python-dotenv >= 0.19.0

## Support

- **Documentation**: https://docs.ardentai.io
- **Issues**: [GitHub Issues](https://github.com/ArdentAILabs/ArdentAPI/issues)
- **Email**: vikram@ardentai.io

## License

MIT License - see the [LICENSE](LICENSE) file for details.
