dagster-anakin
A Dagster resource and asset factory for Anakin, a web data API. Turn web pages into Dagster assets: scrape pages to markdown or structured JSON, crawl sites, run AI web search, run Wire actions on supported sites, and manage website monitors from your assets and ops.
pip install dagster-anakin
Requires Dagster 1.8+ and Python 3.10 to 3.13.
Authentication
Get an API key at anakin.io/dashboard (the free tier needs no card) and set it in the environment where your code location runs:
export ANAKIN_API_KEY=ask_...
AnakinResource() with no arguments reads ANAKIN_API_KEY at run time. Without a key it runs in keyless mode, where scrape_url, wire_discover and wire_catalog work on a small free per-IP allowance. To use a differently named variable, pass AnakinResource(api_key=dg.EnvVar("MY_VAR")). Don't pass the key as a string literal: Dagster shows resource config in the UI.
Quickstart
import dagster as dg
from dagster_anakin import AnakinResource, build_anakin_scrape_asset
# One asset per page, re-scraped on every materialization.
pricing_page = build_anakin_scrape_asset("pricing_page", "https://example.com/pricing")
@dg.asset
def pricing_plans(anakin: AnakinResource) -> dict:
"""Structured data extracted from the page with AI."""
doc = anakin.scrape_url(
"https://example.com/pricing",
output_schema={
"type": "object",
"properties": {"plans": {"type": "array", "items": {"type": "object"}}},
},
)
return doc["generated_json"]
defs = dg.Definitions(
assets=[pricing_page, pricing_plans],
resources={"anakin": AnakinResource()},
)
build_anakin_scrape_asset records the URL, the Anakin job id, whether the result came from cache, the markdown length and a markdown preview as materialization metadata, so you can read the page in the Dagster UI.
A fuller example with a crawl and a daily schedule is in examples/definitions.py:
dagster dev -f examples/definitions.py
Methods
Every method returns JSON-serializable dicts and lists, so the results work with any IO manager.
| Area | Methods |
|---|---|
| Scrape and search | scrape_url, map, crawl, search, agentic_search |
| Wire site actions | wire_discover, wire_catalog, wire_read_action, wire_write_action, wire_identities, wire_login, wire_build, wire_build_status |
| Website monitoring | monitor_create, monitor_list, monitor_changes, monitor_control |
| AI visibility | ai_visibility_search, ai_visibility_sources |
| Browser | session_list, session_delete, browser_task |
For anything else, anakin.get_client() returns the underlying anakin-sdk client.
Wire actions
Wire runs prebuilt actions on supported sites and returns structured JSON. Find an action and its parameters with wire_discover (works without a key), then run it:
anakin.wire_discover("search products on walmart")
# -> [..., {"action_id": "walmart_search", "params": {"required": [{"name": "query", ...}], ...}, "credits": 2}]
@dg.asset
def walmart_tvs(anakin: AnakinResource) -> dict:
return anakin.wire_read_action("walmart_search", params={"query": "tv"})
Read actions only extract data. wire_write_action changes state on the site (submits a form, adds to cart), so don't call it from an asset or op with a RetryPolicy. Write methods refuse payment and fund-transfer requests; set ANAKIN_ALLOW_FINANCIAL=true to turn that check off.
Website monitors
monitor_create registers a monitor that Anakin runs on its own schedule (every 15 minutes or more) and alerts a webhook or email on changes. To pull changes into Dagster instead, poll monitor_changes from a scheduled asset. Monitor results redact the webhook signing secret; read it in the Anakin dashboard.
Pricing
Calls use Anakin credits; see anakin.io/pricing for costs and the free tier.
Development
uv venv && uv pip install -e . --group test --group lint
uv run --no-sync pytest
uv run --no-sync ruff check . && uv run --no-sync ruff format --check . && uv run --no-sync mypy dagster_anakin
ANAKIN_LIVE_TESTS=1 uv run --no-sync pytest tests/test_live.py # keyless calls to the live API
License
Apache-2.0
Metadata
Release files for dagster-anakin 0.1.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 |
|---|---|---|---|---|
| dagster_anakin-0.1.0.tar.gz | 27.1 kB | With provenance | Details for dagster_anakin-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dagster_anakin-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dagster_anakin-0.1.0-py3-none-any.whl |
Total release size: 49.0 kB
Release files / dagster_anakin-0.1.0.tar.gz
| Download URL | dagster_anakin-0.1.0.tar.gz |
|---|---|
| Size | 27.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b9d22f381a78ea369d0540897350d8ae775192dd5f33d044c656083fae8e754
|
|
BLAKE2b-256 checksum How to use checksums |
e3b43ff02d6a49dde2a25c62546ba80085779e4cd495be080d4a0c64bbb63bf5
|
| 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 Oct 28, 2026.
Transparency logRelease files / dagster_anakin-0.1.0-py3-none-any.whl
| Download URL | dagster_anakin-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be5029b0836d2f807758f4d3aad03b38a2b64e6173ff5245fc203fc00e41c3f2
|
|
BLAKE2b-256 checksum How to use checksums |
c83d7f1c60291bb3faa65a6746bf8f7aa9eefef28706d561f7dbf56a4aa2825f
|
| 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 Oct 28, 2026.
Transparency logSecurity for dagster-anakin 0.1.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 dagster_anakin-0.1.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 Oct 28, 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.