Skip to content
Back to skills

Python Sdk

ASecurity

"Use the R2R Python sync and async clients for auth, method groups,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
developmentjavascriptpythonjavadockerapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill python-sdk --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Sdk?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Sdk
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-python-sdk-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-python-sdk-arex-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: python-sdk
description: "Use the R2R Python sync and async clients for auth, method groups,
  pagination, downloads, and response handling."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Python SDK

Use this sub-skill when the user wants to call R2R from Python with `R2RClient` or `R2RAsyncClient`.

## What it owns

- client construction and base URL setup
- API key, login token, and project-name handling
- sync vs async method differences
- wrapped results, pagination, downloads, exports, and streaming
- method-group routing to ingestion, retrieval, graph, and server topics

## Start here

```python
from r2r import R2RClient

client = R2RClient(base_url="http://localhost:7272")
print(client.system.health().results)
```

## Key conventions

- Choose **one** auth path: API key or login token.
- `client.users.login(email, password)` stores the access token on the client.
- `client.set_api_key(...)` sets API-key auth.
- `client.set_project_name(...)` adds the `x-project-name` header.
- `R2RResults.results` unwraps a typed response.
- `PaginatedR2RResult.results` holds the page items and `total_entries` holds the count.

## Route out when the question is domain-specific

- Ingestion, chunking, metadata, or filters: `../ingestion-documents/SKILL.md`
- Search, RAG, or streaming citations: `../retrieval-rag/SKILL.md`
- Graph extraction or graph CRUD: `../graph-workflows/SKILL.md`
- Server install/config/Docker: `../server-configuration/SKILL.md`
- JavaScript client: `../javascript-sdk/SKILL.md`

## Bundled assets

- `references/api-reference.md`
- `references/workflows.md`
- `references/troubleshooting.md`
- `scripts/python_sdk_smoke.py`

Files in this skill

  • SKILL.md1.7 KB
  • references/api-reference.md2.5 KB
  • references/troubleshooting.md1 KB
  • references/workflows.md1.9 KB
  • scripts/python_sdk_smoke.py2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.