Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

xdk

Latest version: v0.11.2

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: santiagomed
50 Stars
17 Forks
3 Versions
298.2K Downloads
Python Repo language

Scan summary

xdk was last scanned on 24 Nov 2026 at version 0.11.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions, all published within 5 days (20–24 Nov 2026).
  • Findings: No rules fired in version 0.11.2.
  • Downloads: 298,197 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.11.2 LATEST 24 Nov 2026 No rules fired
0.11.1 24 Nov 2026 No rules fired
0.11.0 20 Nov 2026 No rules fired

No rules fired in 0.11.2

Findings

Findings for v0.11.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.11.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

XDK Python SDK

The official Python SDK for the X API v2 (v0.11.2).

Installation

uv add xdk

Or with pip:

pip install xdk

Quick Start

Bearer Token (App-Only Authentication)
from xdk import Client

client = Client(bearer_token="YOUR_BEARER_TOKEN")

# Look up posts by ID
posts = client.posts.get_by_ids(ids=["1234567890"])
print(posts.data)

# Search recent posts (auto-paginating iterator of pages)
for page in client.posts.search_recent(query="python lang:en", max_results=10):
    print(page.data)
    break
OAuth 2.0 PKCE (User Context + Auto Refresh)
from xdk import Client
from xdk.posts.models import CreateRequest

client = Client(
    client_id="YOUR_CLIENT_ID",
    redirect_uri="http://localhost:3000/callback",
    scope=["tweet.read", "tweet.write", "users.read", "offline.access"],
)

auth_url = client.get_authorization_url(state="csrf-state")
# After user authorizes and redirects back with ?code=...
token = client.exchange_code("AUTH_CODE_FROM_CALLBACK")

created = client.posts.create(body=CreateRequest(text="Hello from XDK Python!"))
print(created.data)
OAuth 1.0a (User Context)
from xdk import Client, OAuth1
from xdk.posts.models import CreateRequest

oauth1 = OAuth1(
    api_key="YOUR_API_KEY",
    api_secret="YOUR_API_SECRET",
    access_token="YOUR_ACCESS_TOKEN",
    access_token_secret="YOUR_ACCESS_TOKEN_SECRET",
)

client = Client(auth=oauth1)
post = client.posts.create(body=CreateRequest(text="Signed with OAuth 1.0a!"))
Pagination (Cursor) & Real-Time Streaming (StreamConfig)
from xdk import Client, Cursor, StreamConfig

client = Client(bearer_token="YOUR_BEARER_TOKEN")

# Flatten items across pages with Cursor
for post in Cursor(client.posts.search_recent, "xdk", max_results=10).items(limit=25):
    print(post)

# Resilient NDJSON streaming with exponential backoff reconnect
stream_cfg = StreamConfig(max_retries=5, initial_backoff=1.0, timeout=90.0)
for event in client.stream.posts(stream_config=stream_cfg):
    print(event.data)

Runnable Use-Case Examples & Continuous Canary

See examples/README.md for runnable end-to-end examples covering all 24 X API endpoint groups and the continuous canary monitor:

# Run all 10 end-to-end use-case suites (self-verifying against local loopback simulator)
uv run python -m examples.use_cases

# Run a one-shot canary health check (synthetic + optional live api.x.com probes)
uv run python -m examples.canary --once --live

Features

  • Full coverage of all X API v2 endpoint groups with Pydantic v2 models
  • Bearer Token, OAuth 2.0 PKCE (confidential & public clients with automatic token refresh), and OAuth 1.0a RFC 5849 signing
  • Automatic cursor pagination (Iterator pages + Cursor(...).items() / .pages())
  • Resilient chunked NDJSON streaming with incremental UTF-8 decoding and exponential backoff reconnect
  • Optional default timeout and 429 Retry-After / 5xx transient retry support

Documentation

For more information, see the documentation.

License

This project is licensed under the MIT License - see the LICENSE file for details.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases xdk

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229