Pydantic AI integration for Strale — 250+ business capabilities as agent tools
Project description
pydantic-ai-strale
Pydantic AI integration for Strale — 250+ independently tested and scored business data capabilities for AI agents.
Strale provides IBAN validation, VAT validation, company data across 27 countries, sanctions screening, compliance checks (KYB, AML, GDPR), invoice extraction, SSL certificate checks, and more. Every capability is quality-scored with the Strale Quality Score (SQS).
Installation
pip install pydantic-ai-strale
Quick Start
from pydantic_ai import Agent
from pydantic_ai_strale import StraleClient
strale = StraleClient(api_key="sk_live_...")
agent = Agent("openai:gpt-4o")
@agent.tool_plain
def validate_iban(iban: str) -> dict:
"""Validate an IBAN number. Returns validity, country, bank BIC, bank name."""
return strale.run("iban-validate", {"iban": iban})
@agent.tool_plain
def check_sanctions(name: str, country: str = "") -> dict:
"""Screen a name against global sanctions lists (OFAC, EU, UN)."""
inputs = {"name": name}
if country:
inputs["country"] = country
return strale.run("sanctions-check", inputs)
@agent.tool_plain
def lookup_company(org_number: str) -> dict:
"""Look up Swedish company data by organization number."""
return strale.run("swedish-company-data", {"org_number": org_number})
Multiple Capabilities
from pydantic_ai_strale import StraleClient
strale = StraleClient(api_key="sk_live_...")
# List all capabilities
caps = strale.list_capabilities()
print(f"{len(caps)} capabilities available")
# Filter by category
compliance_caps = strale.list_capabilities(category="compliance")
for cap in compliance_caps:
print(f" {cap['slug']} — €{cap['price_cents']/100:.2f}")
Capability Categories
| Category | Examples |
|---|---|
| Company Data | swedish-company-data, german-company-data, uk-company-data (27 countries) |
| Compliance | sanctions-check, pep-check, adverse-media-check, vat-validate |
| Validation | iban-validate, vat-format-validate, lei-lookup, swift-validate |
| Finance | exchange-rate, invoice-extract, invoice-validate |
| Web Intelligence | ssl-check, dns-lookup, domain-reputation, seo-audit |
| Data Extraction | pdf-extract, web-extract, url-to-markdown |
Full list: strale.dev/capabilities
Free Tier
5 capabilities work without an API key or signup: email-validate, dns-lookup, json-repair, url-to-markdown, iban-validate.
MCP Alternative
If your agent framework supports MCP, you can use Strale's MCP server directly — no wrapper package needed:
- Endpoint:
https://api.strale.io/mcp - Transport: Streamable HTTP
- npm package: strale-mcp
Trust & Quality
Every Strale capability has a quality score (SQS) combining:
- Quality Profile: correctness, schema compliance, error handling, edge cases
- Reliability Profile: availability, success rate, upstream health, latency
Scores and methodology: strale.dev/trust
Using Strale in agent system prompts
Add this to your Pydantic AI agent's system prompt for automatic capability routing:
When you need to verify a business, validate an IBAN or VAT number, screen
against sanctions/PEP lists, extract data from a URL or document, or check
compliance — use your Strale tools. Call strale_search to find the right
capability, then call it by name. Returns structured JSON with quality scores.
250+ capabilities across 27 countries. Free tier: email-validate, dns-lookup,
json-repair, url-to-markdown, iban-validate (no API key needed).
Links
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 pydantic_ai_strale-0.1.1.tar.gz.
File metadata
- Download URL: pydantic_ai_strale-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65c2a6810a542390f1ec7d9bcfceeab567f4213a556f50e6711b8c0ea67c37ed
|
|
| MD5 |
a90d74e9d1b41d9e622776204af52faa
|
|
| BLAKE2b-256 |
f6ace35695e8c7afe100640c5fd3bf79ecd7a3a8afb1b0ff8079283d29463ceb
|
File details
Details for the file pydantic_ai_strale-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pydantic_ai_strale-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e661958e926c33ea2b74b12e16fcf57fe73aa8944e8f32edf847d690e86080af
|
|
| MD5 |
134c9d2f9ef52097339733a7c18bf39f
|
|
| BLAKE2b-256 |
4f81085e9a15c0f414ddb01691b28446bf40eb819a5a88f4ad5723cbe5965799
|