cohere-compass-sdk
Cohere Compass SDK
What it is and what it does
The Cohere Compass SDK is a Python client library for interacting with Compass, a document indexing and search system. It provides two main components: a CompassParserClient that sends files to a remote Compass Parser API for parsing (supporting pdf, docx, json, csv and other formats from local, S3, GCS and other file systems), and a CompassClient that manages documents in a Compass index via a RESTful API—allowing you to create, delete, and search indexed documents.
The SDK requires a hosted Compass server to function and uses httpx for HTTP communication, pydantic for data validation, tenacity for retry logic, fsspec for multi-filesystem support, and joblib for batch processing. It supports Python 3.11 and later, with both synchronous and asynchronous client variants available.
Use it for:
- Parse a batch of PDF and DOCX files from S3 and insert them into a Compass index for full-text search
- Build a document ingestion pipeline that reads from local folders, parses multiple file types, and indexes results
- Create a search application that queries indexed documents through the CompassClient API
- Automate document processing workflows that handle different file systems (local, GCS, S3) transparently
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parse documents via a remote Compass Parser API and manage indexed documents through a Compass API client, supporting multiple file types and file systems.
Yes, if you have a hosted Compass server and need to parse and index documents programmatically. The SDK has low install friction, active maintenance, and no known vulnerabilities. The main blocker is the external dependency on a running Compass server—without it, the SDK cannot function. License status is unclear, so verify licensing terms before production use.
Install
cohere-compass-sdk on PyPI
pip
pip install cohere-compass-sdkuv
uv add cohere-compass-sdkpoetry
poetry add cohere-compass-sdkInstalling cohere-compass-sdk
Before you install
Low friction installation with five stable runtime dependencies. Package is actively maintained with a recent release.
Quickstart
pip install cohere-compass-sdk
from cohere_compass_sdk import CompassClient
client = CompassClient(index_url=api_url, bearer_token=bearer_token)
client.create_index(...)
A hosted Compass server must be running and accessible at the provided index_url
Verify before relying
- Whether a hosted Compass server is required before the SDK can be used in any capacity
- Whether authentication credentials (bearer token) are mandatory or optional for basic operations
- Performance characteristics when parsing large files or batches across different file systems
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (<4.0,>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — fsspec, joblib, pydantic, tenacity, httpx |
| Maintenance | actively maintained — 2 days since the last release |
| First released | |
| Downloads | 182,453/month — #10,097 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cohere_compass_sdk-2.16.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-cohereAutomatically traces calls to Cohere's API…
permissive · top 5,000 on PyPI
coherePython SDK for accessing Cohere's language…
permissive · top 1,000 on PyPI
azure-search-documentsClient library for querying, indexing, and…
unclear · top 5,000 on PyPI
langchain-cohereConnects LangChain applications to Cohere's…
permissive · top 5,000 on PyPI
unstructured-clientHTTP client SDK for the Unstructured Platform…
permissive · top 5,000 on PyPI
cohere-melodyParses and renders templated text for Cohere…
permissive · top 15,000 on PyPI
icaleventsDownloads, parses, and queries iCalendar (.ics)…
permissive · top 15,000 on PyPI
pysolrpysolr is a lightweight Python client for…
permissive · top 15,000 on PyPI
beanieBeanie is an asynchronous Python…
permissive · top 5,000 on PyPI
pyScssCompiles Sass/SCSS stylesheets to CSS,…
permissive · top 15,000 on PyPI