Skip to main content

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.

Metadata

Release files for ardent-sdk 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ardent-sdk 0.8.0
File Size Uploaded Provenance
ardent_sdk-0.8.0.tar.gz 8.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ardent-sdk 0.8.0
File Interpreter ABI Platform
ardent_sdk-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / ardent_sdk-0.8.0.tar.gz

Download URL ardent_sdk-0.8.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8fc994ebeb6970a88609036dbb0ce6e47dcbaffa67e22f8c2e344b45bcc1b1d8
BLAKE2b-256 checksum
How to use checksums
87a8274362345386f622705948cefad479bcf60eda64985e571faf69da49a7b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / ardent_sdk-0.8.0-py3-none-any.whl

Download URL ardent_sdk-0.8.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b11e0d6fd13a0ed57dba646fe9ac3fb99f4a5e573664bff4e7bc48cee3cdf8f1
BLAKE2b-256 checksum
How to use checksums
c415683014ae284e9be18110bf5bb978bea9990ab4045ef221e163ddb9f33b66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for ardent-sdk 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page