skillfed

cohere-compass-sdk

Cohere Compass SDK

cohere-compass-sdk v2.16.0 182.5K downloads/30d#10,097 on PyPI
License unclear Active released

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-sdk

uv

uv add cohere-compass-sdk

poetry

poetry add cohere-compass-sdk

Installing 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

Programming Language :: Python :: 3Programming Language :: Python :: 3.11

Tags

document parsing api clientcompass index managementmulti-format document parsings3 gcs local file parsingdocument indexing and search
document-parsingsearch-indexingmulti-filesystem

More Artificial Intelligence packages