Skip to main content
Loss of provenance

A previous release had provenance metadata, but this release does not. View details.

FlashData for Haystack

Build research pipelines and agent tools with six Google sources and nine YouTube sources. This package exposes 17 components for 15 capabilities: YouTube delivery has separate submit, status and result components. It does not include a model, embeddings, or a vector store.

Requires Python 3.11+ and Haystack 3.4. Install from the versioned source release:

pip install "git+https://github.com/flashdatadev/flashdata-mcp.git@haystack-v0.3.0#subdirectory=packages/haystack"

Registry uploads are separate; check PyPI for available versions. Installation is free under MIT; FlashData API calls use paid Credits. Configure FLASHDATA_API_KEY through your environment or secret manager after creating a key in your FlashData account. Use the linked source guides for current rates and limits.

from haystack import Pipeline
from flashdata_haystack import FlashDataGoogleSearch, as_tool

pipe = Pipeline()
pipe.add_component("search", FlashDataGoogleSearch())
result = pipe.run({"search": {"query": "retrieval augmented generation evaluation", "num": 5}})
print(result["search"]["result"])

# Constructing a tool does not call an API or a model.
tool = as_tool(FlashDataGoogleSearch())
# Add it to an existing Haystack Agent; the agent decides when to search.

The full API JSON is available as result. Realtime components also return documents, one Haystack Document per top-level API result. Document content is complete JSON, with source and result index metadata. Search snippets are not fetched webpage content; no media is automatically downloaded. Each example also shows how to format results into context without a model call.

Capability Guide and runnable pipeline Source contract
Google Search Web evidence for an agent Inputs, outputs, pricing
Google News News briefing Source guide
Google Images Image shortlist Source guide
Google Shopping Offer comparison Source guide
Google Videos Video references Source guide
Google Places Local business shortlist Source guide
YouTube Search Tutorial discovery Source guide
YouTube Extended Search Larger research inventory Source guide
YouTube Metadata Video inspection Source guide
YouTube Transcript Timestamped evidence Source guide
YouTube Captions Uploader caption review Source guide
YouTube License Metadata License-label inspection Source guide
YouTube Channel Channel briefing Source guide
YouTube Autocomplete Topic discovery Source guide
YouTube Delivery Saved job and storage delivery Source guide

These are source documentation and proposed directory pages. They are not proof of 15 approved Haystack directory entries. Actual IDs, URLs and review state are tracked separately in entries.json.

Save pipelines with pipe.dumps() and load reviewed YAML using Pipeline.loads(saved, allowed_modules=["flashdata_haystack"]). API keys use Haystack Secret; only environment variable names are serialized. Token secrets deliberately refuse serialization. Key and storage values never appear in tool input schemas.

YouTube delivery is asynchronous and needs customer storage. FlashDataYouTubeDownloadSubmit defaults to allow_submit=False; the operator must explicitly enable a paid storage write and set FLASHDATA_DOWNLOAD_STORAGE. Save the receipt and use FlashDataYouTubeDownloadStatus or FlashDataYouTubeDownloadResult to read that job. There is no automatic retry or polling.

Requests use a 120-second network timeout (15-second connect timeout) and a 20 MiB response limit. After an uncertain submission, inspect Jobs before resubmitting to avoid duplicate charges. API errors are reported as FlashDataError without raw credentials or response bodies. Model, storage and API costs are separate. See pricing and privacy.

Development:

uv sync --group dev
uv run python scripts/sync_contract.py
uv run python scripts/generate.py
uv run ruff check --fix .
uv run ruff format .
uv run ruff check .
HAYSTACK_TELEMETRY_ENABLED=false uv run pytest
uv run python -m build
uv run twine check dist/*

The HTTP, input and storage contracts are vendored from the reviewed Python CLI implementation. scripts/sync_contract.py reproduces them and records source hashes; only the User-Agent differs. Generated component classes have explicit input sockets and fixed sources. Tests use HTTP fixtures and block network access; they do not prove production API, model or customer-storage execution.

Subtitle languages

For transcript and captions, language accepts one code or a list of 1–10 distinct codes, such as ["en", "es"]. Omit it to prefer en-orig, then en, returning one track. Explicit strings keep the single-track response. Lists, including one-element lists, return tracks and per-language errors inside each result. Keep available tracks and report the failed languages; if none succeed, tracks is empty. The auto choice applies to every language and never switches caption source.

Temporary storage credentials (STS)

Use session_token with the matching temporary access_key and secret_key for s3, s3_compatible (when the provider supports STS), oss, cos, bos and tos. Map AWS/BOS/TOS SessionToken, OSS SecurityToken or COS Token to session_token. Keep the usual bucket, region and endpoint_url fields for your provider. For example, the storage object can be:

{
  "storage_type": "s3",
  "storage_url": "your-media-bucket",
  "region": "us-east-1",
  "access_key": "YOUR_TEMPORARY_ACCESS_KEY",
  "secret_key": "YOUR_TEMPORARY_SECRET_KEY",
  "session_token": "YOUR_SESSION_TOKEN",
  "object_prefix": "flashdata/downloads"
}

Put this object in the integration's private storage configuration, not a model prompt. MCP download arguments use storage; the REST API uses params.storage. Single and batch downloads use the same storage fields. Omit the token for long-term keys, GCS (service_account) and Azure (sas_token). A token must be a nonempty string of at most 16,384 characters without whitespace/control characters. Credentials must last through queueing, download and upload retries. FlashData does not refresh them automatically. Use a release containing this STS update; older pinned packages can reject the new field.

Metadata

Release files for flashdata-haystack 0.3.0

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

Loss of provenance

These files do not have provenance metadata, despite files in a prior release including this data.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for flashdata-haystack 0.3.0
File Size Uploaded Provenance Actions
flashdata_haystack-0.3.0.tar.gz 152.0 kB Without provenance Details for flashdata_haystack-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flashdata-haystack 0.3.0
File Interpreter ABI Platform Actions
flashdata_haystack-0.3.0-py3-none-any.whl Python 3 none any Details for flashdata_haystack-0.3.0-py3-none-any.whl

Total release size: 171.3 kB

Release files / flashdata_haystack-0.3.0.tar.gz

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL flashdata_haystack-0.3.0.tar.gz
Size 152.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3e0b6e3356d6890f374ab134ab456830c66908d30e4d555520f3993ec6c9928b
BLAKE2b-256 checksum
How to use checksums
55000ace37bf9a4d66d4fc350375fba6c59c26ecf1779fcd9465ff363c61856a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / flashdata_haystack-0.3.0-py3-none-any.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL flashdata_haystack-0.3.0-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbc5d7cad7b46e82c9875a3d33c168504d876ae6f87302d2f74527ad08c61d95
BLAKE2b-256 checksum
How to use checksums
f3e99cd6e99b294a203027d977a6aba875064fa82a8e2c3ce7cecd0492f5be21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for flashdata-haystack 0.3.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.

Loss of provenance

A previous release of these files had provenance metadata, but this release does not.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Release comparison

  • Removed 0.2.1 2 files With provenance
  • Added 0.3.0 2 files Without provenance

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.

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