Skip to main content

airflow-provider-specstream

SpecStream is the live web data engine. One platform to build, search, extract, enrich, map, and monitor data across the entire web.

Ask for any dataset in plain words, and SpecStream builds it from the entire live web: every match found, extracted and enriched into structured records, then monitored for change. It runs through the API and MCP, and inside Sheets, CRMs, Slack, n8n, Zapier and the other tools teams already use.

Source URL and read time on every value.

This package is the SpecStream provider for Apache Airflow 2.9 and later, Airflow 3 included: a hook, a specstream connection type and three operators.

pip install airflow-provider-specstream

Connection

Create a connection of type SpecStream named specstream_default and put your API key (Agents & API in your SpecStream workspace) in the API key field. Or set it in the environment:

export AIRFLOW_CONN_SPECSTREAM_DEFAULT='{"conn_type": "specstream", "password": "<your API key>"}'

A free account comes with $10 of credit and needs no card: specstream.ai.

Operators

Operator API Price
SpecStreamSearchOperator Search API, GET /v1/web-search $5 per 1,000 searches of up to 10 results; $1 per 1,000 with speed="fast"
SpecStreamExtractOperator Extract API, POST /v1/extract, 1 to 20 URLs $0.80 per 1,000 pages; a page with no text is free
SpecStreamDeepSearchOperator Deep Search 5 cents, 15 cents or $1 per delivered row

Each operator returns the API's reply, which Airflow pushes to XCom.

from specstream_provider.operators.specstream import (
    SpecStreamDeepSearchOperator,
    SpecStreamExtractOperator,
    SpecStreamSearchOperator,
)

search = SpecStreamSearchOperator(task_id="search", query="Apache Airflow latest release", speed="fast")
read = SpecStreamExtractOperator(task_id="read", urls="{{ ti.xcom_pull(task_ids='search')['sources'][0]['url'] }}")
deep = SpecStreamDeepSearchOperator(
    task_id="deep_search",
    request="Open-source workflow orchestrators with their website and license",
    max_results=25,
    max_price_usd=5,
    retries=2,
)
search >> read

SpecStreamDeepSearchOperator starts a run only when its quoted maximum is at or below max_price_usd; otherwise nothing runs and the task fails with the price. A retry of the same task instance continues the same list and never buys it twice. When the list is still running after wait_seconds (420 by default), the task fails so that its retry picks the list up; set fail_if_unfinished=False to return the rows found so far. The result holds list_id, status, list_link, row_count and rows; each row carries source_url and checked_at.

A full DAG is in specstream_provider/example_dags/example_specstream.py.

License

MIT

Metadata

Release files for airflow-provider-specstream 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airflow-provider-specstream 0.1.0
File Size Uploaded Provenance Actions
airflow_provider_specstream-0.1.0.tar.gz 12.8 kB Without provenance Details for airflow_provider_specstream-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for airflow-provider-specstream 0.1.0
File Interpreter ABI Platform Actions
airflow_provider_specstream-0.1.0-py3-none-any.whl Python 3 none any Details for airflow_provider_specstream-0.1.0-py3-none-any.whl

Total release size: 26.7 kB

Release files / airflow_provider_specstream-0.1.0.tar.gz

Download URL airflow_provider_specstream-0.1.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
01a473b71aab9d6694180e7b6e1330a680f07e1d1e1e296ca7077c84b06de602
BLAKE2b-256 checksum
How to use checksums
4c2ebec933f982be30964ce35cb804f1edeafc8b8456e82604d85339e1f122e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / airflow_provider_specstream-0.1.0-py3-none-any.whl

Download URL airflow_provider_specstream-0.1.0-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1362c3593b58351cab4a11e1d10525355687b45551834d694ce10f26ef51312
BLAKE2b-256 checksum
How to use checksums
7f6595a24c86df388f12a01f6df4322b71a08c86ecf19b70096d2760f75ff24c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for airflow-provider-specstream 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page