dagster-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 integration for Dagster 1.8 and later: one resource, SpecStreamResource, for assets and ops.
pip install dagster-specstream
Resource
Put your API key (Agents & API in your SpecStream workspace) in SPECSTREAM_API_KEY and add the resource to your definitions:
from dagster import Definitions, EnvVar
from dagster_specstream import SpecStreamResource
defs = Definitions(
assets=[...],
resources={"specstream": SpecStreamResource(api_key=EnvVar("SPECSTREAM_API_KEY"))},
)
A free account comes with $10 of credit and needs no card: specstream.ai.
| Method | API | Price |
|---|---|---|
web_search(query, speed=..., num=...) |
Search API, GET /v1/web-search |
$5 per 1,000 searches of up to 10 results; $1 per 1,000 with speed="fast" |
extract_pages(urls, format=...) |
Extract API, POST /v1/extract, 1 to 20 URLs |
$0.80 per 1,000 pages; a page with no text is not charged |
deep_search(context, request, max_results=..., max_price_usd=...) |
Deep Search | 5 cents, 15 cents or $1 per delivered row |
Each method returns the API's reply as a dict.
from dagster import AssetExecutionContext, RetryPolicy, asset
from dagster_specstream import SpecStreamResource
@asset
def release_news(specstream: SpecStreamResource) -> dict:
return specstream.web_search("Dagster latest release", speed="fast")
@asset
def release_page(release_news: dict, specstream: SpecStreamResource) -> dict:
return specstream.extract_pages(release_news["sources"][0]["url"])
@asset(retry_policy=RetryPolicy(max_retries=3))
def orchestrators(context: AssetExecutionContext, specstream: SpecStreamResource) -> list[dict]:
result = specstream.deep_search(
context,
"Open-source workflow orchestrators with their website and license",
max_results=25,
max_price_usd=5,
)
return result["rows"]
deep_search starts a run only when its quoted maximum is at or below max_price_usd; otherwise nothing runs and the step fails with the price, without a retry. The idempotency key comes from the run (the first run's id when a run is re-executed), the asset and the partition, so a retry or a re-execution continues the same list and never buys it twice. Pass idempotency_key to choose it yourself. When the list is still running after wait_seconds (420 by default), the step asks Dagster to retry it (retries_while_running, 3 by default) and the retry picks the list up. The result holds list_id, status, list_link, row_count and rows; each row carries source_url and checked_at.
find_list(request, max_results=..., max_price_usd=..., idempotency_key=...) is the same call without Dagster's handling: it returns every status, needs_edit and over_maximum included.
License
MIT
Metadata
Release files for dagster-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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dagster_specstream-0.1.0.tar.gz | 11.1 kB | Without provenance | Details for dagster_specstream-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dagster_specstream-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dagster_specstream-0.1.0-py3-none-any.whl |
Total release size: 21.5 kB
Release files / dagster_specstream-0.1.0.tar.gz
| Download URL | dagster_specstream-0.1.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ad0e6c932cb8bd15b1f59d99bc2fbb761c13b8353ac55a37e4fd5ea6e05afcb
|
|
BLAKE2b-256 checksum How to use checksums |
137595368d8ce04726dd434ed12311271a44df685eba160e7a1a0b63f8e19d41
|
| 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 / dagster_specstream-0.1.0-py3-none-any.whl
| Download URL | dagster_specstream-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae2532696ebf08339918f813b2147df4d3d0ddd9f92016bbcf1794237e53e388
|
|
BLAKE2b-256 checksum How to use checksums |
8e7eff4c84d24c9c185459af2018e49201740e7c5df3c097407af60d6bb93477
|
| 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 dagster-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.