Skip to main content

Pinecone Python SDK - Vector database for AI applications

Project description

Pinecone Python SDK

Verification codecov Python Version License

Development

Setup

# Initialize git submodules (optional, internal Pinecone employees only)
# The apis submodule contains OpenAPI specs and is not required for SDK development
git submodule update --init

# Install dependencies with uv
uv sync

# Install pre-commit hooks
pre-commit install

Note: The apis/ submodule is only accessible to Pinecone employees. External contributors can develop and test the SDK without it.

Interactive Testing

REPL: Quickly test and experiment with the SDK using the interactive REPL:

uv run repl

The REPL automatically:

  • Loads environment variables from .env
  • Creates pre-configured pc (sync) and apc (async) client instances using PINECONE_API_KEY
  • Sets up logging for debugging
  • Maintains command history across sessions

Example session:

>>> pc.inference.embed(model="multilingual-e5-large", inputs=["hello world"])
>>> await apc.inference.embed(model="multilingual-e5-large", inputs=["hello world"])

Jupyter Notebooks: For more exploratory testing or creating demos, ask your AI assistant to create a test notebook:

"Create a jupyter notebook to test the embeddings API"

This will generate notebooks/test_TIMESTAMP.ipynb with automatic environment setup and client initialization. It will load environment variables from your .env file. See .cursor/skills/jupyter-notebook/SKILL.md for details.

Maintaining this package with AI coding assistants

This repository includes rules, skills, and agents for AI coding assistants. Both Cursor and Claude Code are supported.

📖 New to this repository? Start with HUMANS.md - A complete guide showing how to work effectively with AI assistants in this codebase, including realistic workflows and examples.

  • Cursor users: Configuration files are in .cursor/ directory
  • Claude Code users: Access via .claude/ symlinks (points to same files)
  • Editing: Changes made through either tool are immediately available to the other

The configuration includes:

  • Rules (.cursor/rules/): Architecture, naming conventions, commit messages, documentation style, error handling, testing patterns
  • Skills (.cursor/skills/): Common development tasks like adding methods, implementing protocols, writing tests
  • Agents (.cursor/agents/): Code reviewers for async patterns, docstrings, performance, security, and test quality

For technical details, see AGENTS.md.

Documentation

User Documentation

Build the Sphinx documentation:

# Build HTML documentation (dependencies installed via uv sync)
cd docs
make html

# Open in browser
open _build/html/index.html

Other useful commands:

make doctest    # Test code examples in docstrings
make linkcheck  # Verify all links work
make coverage   # Check documentation coverage
make clean      # Remove build artifacts

Developer Documentation


Last audited: February 5, 2026

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oakcylinder-0.1.1.tar.gz (344.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oakcylinder-0.1.1-py3-none-any.whl (240.3 kB view details)

Uploaded Python 3

File details

Details for the file oakcylinder-0.1.1.tar.gz.

File metadata

  • Download URL: oakcylinder-0.1.1.tar.gz
  • Upload date:
  • Size: 344.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oakcylinder-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9395f6e2f68f7fcb970592bca7d425b7f9cd329ef76ee82c38beeafa2e80e241
MD5 ecf1eee704dd94b41c14ffcda40a6a35
BLAKE2b-256 2f6c5ac5e1c34afad9d11306413f481b6f9be20388a49f8e7a13377e433ca514

See more details on using hashes here.

Provenance

The following attestation bundles were made for oakcylinder-0.1.1.tar.gz:

Publisher: release-prod.yaml on pinecone-io/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file oakcylinder-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: oakcylinder-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 240.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oakcylinder-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f8164c8ded137868a78fa32af99f181563437f468f178910fa641165b14f465
MD5 17feec9ab4a19faabb877b38c255cb24
BLAKE2b-256 6831f875b87e7ebf07c92fd08d0bd755cad28f51c2497cc849510d121dd1b63b

See more details on using hashes here.

Provenance

The following attestation bundles were made for oakcylinder-0.1.1-py3-none-any.whl:

Publisher: release-prod.yaml on pinecone-io/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page