Skip to main content

dagster-xquik

dagster-xquik provides a Dagster resource for read-only X/Twitter data workflows through the Xquik REST API.

Use it when Dagster assets or jobs need to:

  • Search public tweets
  • Fetch a tweet by ID
  • Search users
  • Fetch a user profile by ID or handle
  • Fetch user timeline tweets
  • Fetch regional trends

Installation

dagster-xquik is pending its first release through the Dagster community integrations release flow. Until that release is published, install it from a local checkout:

cd libraries/dagster-xquik
pip install -e .

After the first release is published, install the package from PyPI:

pip install dagster-xquik

Usage

Set XQUIK_API_KEY in the environment, then pass it through Dagster's EnvVar.

from dagster import AssetExecutionContext, EnvVar, asset, Definitions
from dagster_xquik import XquikResource


@asset
def recent_xquik_tweets(
    context: AssetExecutionContext,
    xquik: XquikResource,
) -> list[dict[str, object]]:
    response = xquik.get_client().search_tweets(q="xquik", limit=10)
    tweets = response.get("data", [])
    context.log.info("Fetched %s tweets", len(tweets))
    return tweets


defs = Definitions(
    assets=[recent_xquik_tweets],
    resources={
        "xquik": XquikResource(api_key=EnvVar("XQUIK_API_KEY")),
    },
)

Resource

from dagster import EnvVar
from dagster_xquik import XquikResource

xquik = XquikResource(api_key=EnvVar("XQUIK_API_KEY"))
client = xquik.get_client()

client.search_tweets(q="dagster", limit=25)
client.get_tweet("1912345678901234567")
client.search_users(q="dagster")
client.get_user("@dagster")
client.get_user_tweets("@dagster", limit=20)
client.get_trends(woeid=1, count=10)

XquikResource accepts:

Field Default Description
api_key Required Xquik API key. Use EnvVar("XQUIK_API_KEY") in Dagster definitions.
base_url https://xquik.com/api/v1 Xquik API base URL.
contract_version 2026-04-29 API contract header version.
timeout_seconds 30.0 HTTP request timeout.

Local Development

make install
make test
make ruff
make check
make build

Release files for dagster-xquik 0.0.2

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

Source distribution (sdist)

Source distribution for dagster-xquik 0.0.2
File Size Uploaded
dagster_xquik-0.0.2.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dagster-xquik 0.0.2
File Interpreter ABI Platform
dagster_xquik-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / dagster_xquik-0.0.2.tar.gz

Download URL dagster_xquik-0.0.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
193ebbc962d493d3b357e4f32c5302e6625c81497540b13abc5fd1db1ae11bee
BLAKE2b-256 checksum
How to use checksums
75463eb16337f907d761c3b5f89e6e7028f57fc0e9fabf44538451c31b3f1957
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / dagster_xquik-0.0.2-py3-none-any.whl

Download URL dagster_xquik-0.0.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f44f1fa270fc994aafc180a5ba495a28b127101549900961b1d9803b68bf134
BLAKE2b-256 checksum
How to use checksums
12dbab36966dd0590f8874e48dcb8a65efa73c365c5e10b51cfe01b69855cd16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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