Skip to main content

Python client for Distiller: clean web content for agents

Project description

web-distiller

Python client for the Distiller API — agent-ready web extraction with AI cleaning.

pip install web-distiller installs the client for the hosted Distiller API. It does not install or run the Distiller server.

Use it with:

  • free-tier API keys (Trafilatura cleaning),
  • the Starter paid plan (Stripe-backed AI cleaning),
  • or alternate x402 payment-compatible deployments.

Install

pip install web-distiller
set DISTILLER_API_BASE=https://webdistiller.dev

Quick start

from distiller_client import DistillerClient

client = DistillerClient(api_key="your-key")
result = client.markdown("https://example.com")
print(result["cleaned_markdown"])

Or as a one-liner:

import distiller_client

print(distiller_client.markdown("https://example.com")["cleaned_markdown"])

CLI

web-distiller https://example.com
web-distiller https://example.com --format text
web-distiller https://example.com --use-browser
web-distiller https://example.com --force-refresh

Configuration

Env var Purpose
DISTILLER_API_BASE API base URL (default: production)
DISTILLER_API_KEY Bearer token for authenticated access
DISTILLER_REFERRER_TOKEN Referral attribution token

All env vars can also be passed as constructor arguments.

Typical flow:

  • use web-distiller without an API key for open/demo deployments,
  • register for an API key when you want the free 1,000-call tier,
  • upgrade that account to Starter through Stripe when you want AI cleaning and /extract.

Releases

web-distiller is released to PyPI from GitHub Actions via Trusted Publishing.

  • Use the .github/workflows/publish-web-distiller.yml workflow for manual publishes.
  • Or push a tag in the format web-distiller-vX.Y.Z after updating distiller-client/pyproject.toml.

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

web_distiller-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

web_distiller-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file web_distiller-0.1.1.tar.gz.

File metadata

  • Download URL: web_distiller-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for web_distiller-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8a0517cf492307924889742944b20c6b909d0025f6ebc56a1054e16e64597576
MD5 dbf9d0bb658f4d7e3920ba8af395eeda
BLAKE2b-256 ccd23f8ef2d609d572ed5455bdd68437d54133942f36364305cf10e5c912bb4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for web_distiller-0.1.1.tar.gz:

Publisher: publish-web-distiller.yml on edwardyen724-g/distiller

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file web_distiller-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: web_distiller-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for web_distiller-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73d08b74874698b64dd1a15f3786c9697c33b8fee45cf800535c233518c3ba91
MD5 c302bb8fe6787c7b9b42c550a30cf0c4
BLAKE2b-256 4c27ece1cbf506d610faca863f1d76f97968988c5cbf345a59d6ca4c78ea4161

See more details on using hashes here.

Provenance

The following attestation bundles were made for web_distiller-0.1.1-py3-none-any.whl:

Publisher: publish-web-distiller.yml on edwardyen724-g/distiller

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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