supermemory
The official Python library for the supermemory API
What it is and what it does
Supermemory is an official Python SDK for the Supermemory REST API, generated using Stainless. It provides a typed client interface for interacting with Supermemory's document storage and search capabilities. The library includes full type definitions for request parameters and response fields, enabling IDE autocomplete and type checking. It offers both synchronous (Supermemory) and asynchronous (AsyncSupermemory) clients, both powered by httpx.
The package handles common API concerns: automatic retries for transient failures (2 retries by default for connection errors, timeouts, rate limits, and server errors), configurable timeouts, and detailed error handling with specific exception types for different HTTP status codes. Responses are Pydantic models with helper methods for JSON serialization and dictionary conversion. The async client can optionally use aiohttp as its HTTP backend for improved concurrency performance.
Use it for:
- Search and retrieve documents from Supermemory using natural language queries within a Python application
- Build a memory management system that stores, updates, and retrieves user-specific information with temporal context
- Integrate Supermemory into an async Python service for non-blocking document uploads and searches
- Implement error handling and retry logic for API calls to Supermemory with automatic backoff
- Use typed request/response objects to catch API integration bugs early via static type checking
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python client library for the Supermemory REST API with full type hints, supporting both synchronous and asynchronous operations.
Yes. The package is actively maintained, has no known vulnerabilities, uses permissive licensing, and offers low installation friction. It is suitable for any Python 3.9+ project needing to integrate with Supermemory. The typed interface and built-in error handling reduce integration friction. The main prerequisite is a valid Supermemory API key.
Install
supermemory on PyPI
pip
pip install supermemoryuv
uv add supermemorypoetry
poetry add supermemoryInstalling supermemory
Before you install
Low friction installation with a pure Python wheel. Actively maintained with a recent release and no known vulnerabilities. Depends on common, well-maintained libraries (httpx, pydantic, anyio).
License in practice
Licensed under Apache-2.0 (permissive), allowing free use in commercial and private projects with minimal restrictions.
Quickstart
pip install supermemory
import os
from supermemory import Supermemory
client = Supermemory(api_key=os.environ.get("SUPERMEMORY_API_KEY"))
response = client.search.documents(q="documents related to python")
print(response.results)
Requires a valid Supermemory API key set via SUPERMEMORY_API_KEY environment variable or passed directly to the client.
Verify before relying
- Whether the library is feature-complete relative to the full Supermemory REST API as of version 3.59.0
- Performance characteristics and rate-limit handling behavior under high concurrency
- Whether aiohttp backend provides measurable concurrency improvements for typical workloads
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — anyio, distro, httpx, pydantic, sniffio, typing-extensions |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 162,832/month — #10,584 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: supermemory-3.59.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
metronome-sdkProvides a Python client library for the…
permissive · top 15,000 on PyPI
turbopufferProvides a Python client library for the…
permissive · top 5,000 on PyPI
zeroentropyType-safe Python client for the ZeroEntropy…
permissive · top 15,000 on PyPI
braintrust-apiProvides a Python client library for the…
permissive · top 15,000 on PyPI
composio-clientA Python client library for the Composio REST…
permissive · top 5,000 on PyPI
perplexityaiProvides a Python client library for the…
permissive · top 5,000 on PyPI
kernelProvides a Python client library for the Kernel…
permissive · top 15,000 on PyPI
cloudflareProvides a Python client library for the…
permissive · top 5,000 on PyPI
parallel-webProvides a Python client library for the…
permissive · top 5,000 on PyPI
orb-billingA Python client library for the Orb billing…
permissive · top 5,000 on PyPI