Skip to main content

Python SDK for Ardent AI - Simplify your data engineering tasks

Project description

Ardent Python SDK

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

PyPI version Python 3.8+

Installation

pip install ardent-sdk

Quick Start

from ardent import ArdentClient

# Initialize the client
with ArdentClient(api_key="sk-ard_test_xxxxx") 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

Error Handling

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

License

MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ardent_sdk-0.8.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ardent_sdk-0.8.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file ardent_sdk-0.8.0.tar.gz.

File metadata

  • Download URL: ardent_sdk-0.8.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for ardent_sdk-0.8.0.tar.gz
Algorithm Hash digest
SHA256 8fc994ebeb6970a88609036dbb0ce6e47dcbaffa67e22f8c2e344b45bcc1b1d8
MD5 afcc2b10eff09b2718c5b8bd5ecb3fd1
BLAKE2b-256 87a8274362345386f622705948cefad479bcf60eda64985e571faf69da49a7b3

See more details on using hashes here.

File details

Details for the file ardent_sdk-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: ardent_sdk-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for ardent_sdk-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b11e0d6fd13a0ed57dba646fe9ac3fb99f4a5e573664bff4e7bc48cee3cdf8f1
MD5 a2402f5a418d0752496f97f9efcb490e
BLAKE2b-256 c415683014ae284e9be18110bf5bb978bea9990ab4045ef221e163ddb9f33b66

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page