Pinecone Python SDK - Vector database for AI applications
Project description
Pinecone Python SDK
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) andapc(async) client instances usingPINECONE_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
- Architecture - System design and architecture
- Conventions - Coding standards and patterns
- Development Workflow - Step-by-step guides for common tasks
Last audited: February 5, 2026
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9395f6e2f68f7fcb970592bca7d425b7f9cd329ef76ee82c38beeafa2e80e241
|
|
| MD5 |
ecf1eee704dd94b41c14ffcda40a6a35
|
|
| BLAKE2b-256 |
2f6c5ac5e1c34afad9d11306413f481b6f9be20388a49f8e7a13377e433ca514
|
Provenance
The following attestation bundles were made for oakcylinder-0.1.1.tar.gz:
Publisher:
release-prod.yaml on pinecone-io/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oakcylinder-0.1.1.tar.gz -
Subject digest:
9395f6e2f68f7fcb970592bca7d425b7f9cd329ef76ee82c38beeafa2e80e241 - Sigstore transparency entry: 929625067
- Sigstore integration time:
-
Permalink:
pinecone-io/python-sdk@adb8d0cf0ab6a69c6b4489cf03a5c8aafc7c1fc3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pinecone-io
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-prod.yaml@adb8d0cf0ab6a69c6b4489cf03a5c8aafc7c1fc3 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f8164c8ded137868a78fa32af99f181563437f468f178910fa641165b14f465
|
|
| MD5 |
17feec9ab4a19faabb877b38c255cb24
|
|
| BLAKE2b-256 |
6831f875b87e7ebf07c92fd08d0bd755cad28f51c2497cc849510d121dd1b63b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oakcylinder-0.1.1-py3-none-any.whl -
Subject digest:
7f8164c8ded137868a78fa32af99f181563437f468f178910fa641165b14f465 - Sigstore transparency entry: 929625071
- Sigstore integration time:
-
Permalink:
pinecone-io/python-sdk@adb8d0cf0ab6a69c6b4489cf03a5c8aafc7c1fc3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pinecone-io
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-prod.yaml@adb8d0cf0ab6a69c6b4489cf03a5c8aafc7c1fc3 -
Trigger Event:
workflow_dispatch
-
Statement type: