liebreich — Official Python SDK & AI Agent Tools (v1.0.0)
Zero-bloat, fully typed Python SDK, CLI, and AI Agent Tool Adapters for Liebreich Software's deterministic B2B enrichment, EU compliance, and Ed25519 Proof-Carrying Attestation engines.
Replace brittle headless scrapers and manual multi-vendor compliance spreadsheets with zero mandatory dependencies (pure Python stdlib urllib), built-in OpenAI / Anthropic / LangChain / CrewAI tool adapters, automatic HTTP 402 & X-Liebreich-Credits-Remaining prepaid wallet telemetry, and offline cryptographic Ed25519 verification.
Install (Zero Mandatory Dependencies)
pip install git+https://github.com/Liebreich-Software/liebreich-python.git
Optional: enable offline local Ed25519 signature verification against /.well-known/jwks.json (zero data leaves your machine):
pip install "liebreich[crypto] @ git+https://github.com/Liebreich-Software/liebreich-python.git"
1. Quick Start (LiebreichClient)
Works immediately with zero signup on the public free tier (8 req/min), or pass a €19 Prepaid Wallet key (500 Pro calls = €0.038/call, 120 req/min, never expires, zero subscription) via LIEBREICH_API_KEY:
from liebreich import LiebreichClient, LiebreichPaymentRequiredError
client = LiebreichClient() # or LiebreichClient(api_key="lb_live_...")
# 1. Global B2B Company, Tech-Stack (up to 75 fingerprints), GLEIF LEI/VAT & Live ATS Hiring Enrichment
company = client.enrich_company("stripe.com")
print(company["companyProfile"]["name"], company["hiring"]["hiringVelocityBand"])
# 2. 4-Pillar 360° EU Website Legal & Security Audit (GDPR + WCAG/BFSG + Imprint + Cyber)
audit = client.audit_website_360("https://liebreichsoftware.com")
print(audit["overallScore"], audit["overallGrade"])
# 3. Cryptographically Verify the Attached Ed25519 Proof (Online or Strictly Offline)
check = client.verify_attestation(audit) # via POST /api/v1/verify-attestation
offline = client.verify_attestation(audit, offline=True) # via /.well-known/jwks.json
assert check["valid"] and offline["valid"]
# 4. Wallet Telemetry (automatically parsed from X-Liebreich-Credits-Remaining)
print("Credits remaining:", client.credits_remaining)
2. Drop-In AI Agent Framework Adapters (OpenAI, Anthropic, LangChain, CrewAI)
Zero framework lock-in — export standard JSON tool schemas and dispatch calls safely with built-in HTTP 402 / HTTP 429 graceful agent recovery:
OpenAI Chat Completions / Agents SDK
from liebreich import LiebreichClient, agent_tools
client = LiebreichClient()
tools = agent_tools.openai_tools() # or agent_tools.openai_responses_tools()
# Pass `tools` to client.chat.completions.create(model="...", messages=..., tools=tools)
# Then execute any model tool_call cleanly:
result = agent_tools.dispatch_tool_call(
client,
tool_name="enrich_b2b_company",
arguments='{"domain": "sap.com"}',
auto_checkout_on_402=True, # automatically initiates €19 wallet top-up if credits hit 0
)
Anthropic Claude Tool Use
from liebreich import LiebreichClient, agent_tools
client = LiebreichClient()
tools = agent_tools.anthropic_tools(
include=["enrich_b2b_company", "audit_nis2_supplier", "verify_attestation"]
)
# Pass `tools` directly to anthropic.Anthropic().messages.create(..., tools=tools)
LangChain / LangGraph & CrewAI
from liebreich import LiebreichClient, agent_tools
client = LiebreichClient()
lc_tools = agent_tools.langchain_tools(client) # returns StructuredTool if langchain_core is installed
cr_tools = agent_tools.crewai_tools(client) # returns BaseTool if crewai is installed
3. Headless AI Agent Commerce (€19 Prepaid Wallet — Zero Forms)
from liebreich import LiebreichClient, LiebreichPaymentRequiredError
client = LiebreichClient(api_key="lb_live_existing_key")
try:
dossier = client.audit_nis2_supplier("deutsche-boerse.com")
except LiebreichPaymentRequiredError:
# Step 1: Mint 1-tap Stripe approval link (€19 = 500 Pro calls, never expires)
checkout = client.start_agent_checkout(product_id="agent-credits-19")
print("Approve payment here:", checkout["approvalUrl"])
# Step 2: After human 1-tap approval, claim live key directly into client memory
claimed = client.claim_agent_purchase(checkout["sessionId"], checkout["claimToken"])
# `client.api_key` is automatically updated when `apiKey` is returned!
4. Built-in liebreich CLI
liebreich enrich stripe.com
liebreich audit https://example.com --json > report.json
liebreich verify report.json --offline
liebreich bfsg https://example.com
liebreich gdpr https://example.com
liebreich nis2 deutsche-boerse.com --hint 529900G3SW56SHYNPR95
liebreich vat IT00743110157
liebreich cve CVE-2021-44228
liebreich erechnung ./xrechnung-3.0.xml
liebreich tenders --country DE --q cyber
liebreich wallet agent-credits-19
liebreich tools-schema --format openai
5. Complete Endpoint Coverage
Method (LiebreichClient) |
Endpoint | Ed25519 Proof | What It Does |
|---|---|---|---|
enrich_company(domain) |
POST /api/v1/company-enrich |
Yes | 4-in-1 B2B company, tech stack (up to 75 fingerprints), LEI/VAT, contacts & ATS hiring velocity |
audit_website_360(url) |
POST /api/v1/website-360-check |
Yes | 4-pillar GDPR + WCAG/BFSG + Imprint + Cyber audit |
audit_bfsg(url) |
POST /api/v1/bfsg-check |
Yes | 26-rule WCAG 2.2 AA / EAA / § 14 BFSG auditor with HTML fixes |
audit_gdpr(url) |
POST /api/v1/dsgvo-check |
Yes | GDPR / § 25 TDDDG pre-consent cookies, Google Fonts & US trackers |
audit_nis2_supplier(domain) |
POST /api/v1/nis2-supplier-check |
Yes | 4-layer NIS2 (§ 30 BSIG) & EU DORA supplier KYB dossier |
validate_erechnung(payload) |
POST /api/v1/erechnung-check |
Yes | XRechnung 3.0 (UBL/CII) & ZUGFeRD EN 16931 validator (RAM-only) |
audit_domain(domain) |
POST /api/v1/domain-audit |
— | RDAP, SPF 10-lookup, DMARC, CAA, TLS & HTTP security headers |
extract_impressum(domain) |
POST /api/v1/impressum-check |
— | DACH § 5 DDG Impressum, CEO, VAT & Handelsregister extractor |
verify_vat_lei(query) |
POST /api/v1/vat-lei-check |
— | Official EU Commission VIES VAT & GLEIF v1 ISO-17442 LEI |
triage_cve(cve_id) |
POST /api/v1/cve-triage |
— | CISA KEV + FIRST EPSS + NIST NVD SLA patch triage |
list_tenders(...) |
GET /api/v1/tenders |
— | Filterable pan-EU TED v3 & German DÖE public procurement feed |
verify_attestation(doc) |
POST /api/v1/verify-attestation |
— | Online or offline (/.well-known/jwks.json) Ed25519 proof verifier |
start_agent_checkout(...) |
POST /api/v1/agent/checkout |
— | Headless 1-tap Stripe checkout (€19 / 500 Pro calls) |
claim_agent_purchase(...) |
POST /api/v1/agent/claim |
— | Exchange paid session + claim token for live lb_live_... key |
Ecosystem & Links
- Remote MCP Server & Node CLI:
Liebreich-Software/liebreich-mcp-compliance(https://liebreichsoftware.com/mcp) - CI/CD GitHub Action Gate:
Liebreich-Software/eu-compliance-action - Open Compliance Benchmarks (190 German Corporations & Banks, CC-BY-4.0):
Liebreich-Software/german-corporate-compliance-benchmarks - Public Ed25519 JWKS: https://liebreichsoftware.com/.well-known/jwks.json
- Interactive Verifier: https://liebreichsoftware.com/verify/
- Pricing (€19 Prepaid Wallet / €49/mo API Pro): https://liebreichsoftware.com/pricing/
License
MIT © Liebreich Software
Metadata
Release files for liebreich 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| liebreich-1.0.0.tar.gz | 30.7 kB | With provenance | Details for liebreich-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| liebreich-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for liebreich-1.0.0-py3-none-any.whl |
Total release size: 56.6 kB
Release files / liebreich-1.0.0.tar.gz
| Download URL | liebreich-1.0.0.tar.gz |
|---|---|
| Size | 30.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ff96e470993fa7e61b86f2c4a9a029184cd35997da77ce48fbcf497a226d133
|
|
BLAKE2b-256 checksum How to use checksums |
f691c0722c5205c3793c04b340f1b84b8bba9f0f89a594f0c2dfd1b4341b625e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / liebreich-1.0.0-py3-none-any.whl
| Download URL | liebreich-1.0.0-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3e9a145c4b4c0e7f87b4c1347810b89a0ca2d66e3411be462fe5b2d329968d2
|
|
BLAKE2b-256 checksum How to use checksums |
d3024b8ac8abb4eac77478f7c36817d1b9c25c8502b312ba541599096b917378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for liebreich 1.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for liebreich-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.