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-distillerwithout 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.ymlworkflow for manual publishes. - Or push a tag in the format
web-distiller-vX.Y.Zafter updatingdistiller-client/pyproject.toml.
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a0517cf492307924889742944b20c6b909d0025f6ebc56a1054e16e64597576
|
|
| MD5 |
dbf9d0bb658f4d7e3920ba8af395eeda
|
|
| BLAKE2b-256 |
ccd23f8ef2d609d572ed5455bdd68437d54133942f36364305cf10e5c912bb4d
|
Provenance
The following attestation bundles were made for web_distiller-0.1.1.tar.gz:
Publisher:
publish-web-distiller.yml on edwardyen724-g/distiller
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
web_distiller-0.1.1.tar.gz -
Subject digest:
8a0517cf492307924889742944b20c6b909d0025f6ebc56a1054e16e64597576 - Sigstore transparency entry: 1158486496
- Sigstore integration time:
-
Permalink:
edwardyen724-g/distiller@2de5acf007b25fcfaa7d64da3bd352cfa8a5a96c -
Branch / Tag:
refs/heads/codex/web-distiller-0.1.1-release - Owner: https://github.com/edwardyen724-g
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-web-distiller.yml@2de5acf007b25fcfaa7d64da3bd352cfa8a5a96c -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73d08b74874698b64dd1a15f3786c9697c33b8fee45cf800535c233518c3ba91
|
|
| MD5 |
c302bb8fe6787c7b9b42c550a30cf0c4
|
|
| BLAKE2b-256 |
4c27ece1cbf506d610faca863f1d76f97968988c5cbf345a59d6ca4c78ea4161
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
web_distiller-0.1.1-py3-none-any.whl -
Subject digest:
73d08b74874698b64dd1a15f3786c9697c33b8fee45cf800535c233518c3ba91 - Sigstore transparency entry: 1158486548
- Sigstore integration time:
-
Permalink:
edwardyen724-g/distiller@2de5acf007b25fcfaa7d64da3bd352cfa8a5a96c -
Branch / Tag:
refs/heads/codex/web-distiller-0.1.1-release - Owner: https://github.com/edwardyen724-g
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-web-distiller.yml@2de5acf007b25fcfaa7d64da3bd352cfa8a5a96c -
Trigger Event:
workflow_dispatch
-
Statement type: