Official Python SDK for the ETL-D API - Stateless Data Middleware for AI Agents.
Project description
ETL-D SDK: The Agentic Data & Finance Middleware
Stop wasting LLM context windows and tokens on basic data parsing and complex financial logic. ETL-D is a stateless, deterministic middleware designed specifically for AI Agents, No-Code automation (n8n, Make), and high-performance integrations. We handle chaotic global data and B2B financial pipelines using algorithmic parsing with an LLM-Routing Fallback to guarantee 100% accuracy and perfect JSON schemas.
🚀 The Arsenal (Available Endpoints) ETL-D goes far beyond basic string manipulation. Your AI agents gain instant access to:
- B2B Parsing: Transform raw Norma 43 (N43) bank statements and complex nested XMLs into flat, queryable JSONs.
- Financial Operations: Generate SEPA Direct Debit (PAIN.008) XMLs, fetch historical Forex rates, and autonomously map messy transactions to GAAP/PGC accounting codes.
- Data Engineering Magic: Generate E-commerce Cartesian product variants, normalize physical measurement units, and intelligently split chaotic contact strings.
- Core Enrichment: E.164 phone validation, ISO 8601 relative date parsing (timezone-aware), and global address structuring with LLM-fallback for complex regions (e.g., UAE, Japan).
🤖 The Agentic Workflow (Autonomous Billing) ETL-D V1.0+ introduces features strictly designed for autonomous systems that handle their own billing lifecycles.
1. Zero-Touch Agent Provisioning
If your AI agent is booting up for the first time and lacks an API key, it can provision one programmatically. No emails, no logins.
import etld
from etld.client import EtlDClient
client = EtlDClient(api_key="BOOTSTRAP") # Key not needed for provisioning
# Provision a new session
provision = client.create_provisioning_session()
print(f"Pay here: {provision['checkout_url']}")
# Poll for the key
status = client.poll_provisioning_status(provision['poll_id'])
if status['status'] == 'ready':
print(f"Your API Key: {status['api_key']}")
2. Handling 402 Payment Required
When an agent exhausts its credits, the API returns a HTTP 402. The SDK intercepts this and raises a PaymentRequiredError containing a checkout_url. The agent can autonomously navigate to the URL, pay for a top-up, and resume execution.
from etld.exceptions import PaymentRequiredError
try:
client.enrich_date("next Tuesday")
except PaymentRequiredError as e:
print(f"Credits exhausted. Top up at: {e.checkout_url}")
# Agent can now wait, or notify human, or even use a headless browser to pay!
⚡ Async Batch Processing Process 10,000+ records without blocking your server. Queue the batch, and the SDK automatically polls the background worker until the job is done.
task_id = client.enrich_batch("date", ["next Tuesday", "27/10/2023"])
results = client.wait_for_batch(task_id)
print(results)
Installation
pip install etld
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file etld-1.1.0.tar.gz.
File metadata
- Download URL: etld-1.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1133b685abf7ab5df413f178b72a4681adc44bfcb0b822c44277f44f6009095d
|
|
| MD5 |
c32f98a60bb985abf54e7c1377937950
|
|
| BLAKE2b-256 |
9f19ceec0e44cd8b0e4f11160282edbcdacd3ccd3c3fac791ffe45d04c0d8bcd
|
File details
Details for the file etld-1.1.0-py3-none-any.whl.
File metadata
- Download URL: etld-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a197cd456be6d9ab24f6975bd1d9ec2a2edfa7dc758f9435b679088642ce44e
|
|
| MD5 |
48735d2e382a57cdb7bc6f481bba4a8c
|
|
| BLAKE2b-256 |
6ec46b217b183938f433402b279c318a7916b941cfcf9ed9eca7096474266a94
|