pyvespa
Python API for vespa.ai
Decision gist · record as of 2026-08-14
Yes, if you are working with Vespa or evaluating it for search and ranking use cases. The package is actively maintained, has low install friction, carries a permissive Apache 2.0 license, and no known vulnerabilities. It is well-positioned for prototyping and integration into Python-based data science and search workflows. Install it if Vespa is already part of your architecture or you are exploring it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running Vespa instance accessible at the specified URL; Python 3.10 or later (requires_python >=3.10,<3.14).
- Low install friction with a pure-Python wheel distribution.
- The package is actively maintained with a recent release 42 days ago and an active repository.
License · maintenance · safety
permissive license (permissive) — Licensed under Apache 2.0, a permissive open-source license that allows commercial use, modification, and distribution with minimal restrictions. You may use and modify the code freely provided you include the license and attribution notices.
last release 2026-07-03 (42 days) · last repo commit 2026-08-10 · 172 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 17,444,074 downloads/mo, #1,119 on PyPI
Alternatives
Verify before relying
pip install pyvespa
import pyvespa
from pyvespa import Vespa
app = Vespa(url="http://localhost")
results = app.query(yql="select * from doc where true")- Whether docker dependency is a runtime requirement or only for local development
- Specific Vespa server version compatibility constraints
- Exact URL format and port requirements for connecting to Vespa instances
What it is and what it does
pyvespa is a Python wrapper around Vespa, an open-source serving engine designed for large-scale search, ranking, and data computation at query time. It abstracts Vespa's deployment and interaction model into a Python API, allowing developers to programmatically create application schemas, deploy configurations, and execute queries without direct command-line or REST interaction.
The library is built for prototyping and experimentation with Vespa features. It depends on standard HTTP clients (requests, httpx), templating (jinja2), and utility libraries (tenacity for retries, cryptography for secure communication) to manage the full lifecycle of a Vespa application—from schema definition through deployment to live query execution. The package also wraps the Vespa CLI for command-line operations.
Use it for
- Prototype a search application with custom ranking models before deploying to production
- Automate Vespa cluster deployment and configuration management in data science workflows
- Build integration tests for search and ranking logic by programmatically creating and querying instances
- Experiment with different schema designs and ranking functions iteratively in notebooks
- Deploy Vespa applications as part of a larger Python data pipeline or ML workflow
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are working with Vespa or evaluating it for search and ranking use cases.
The package is actively maintained, has low install friction, carries a permissive Apache 2.0 license, and no known vulnerabilities. It is well-positioned for prototyping and integration into Python-based data science and search workflows. Install it if Vespa is already part of your architecture or you are exploring it.
Install
pyvespa on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. The package is actively maintained with a recent release 42 days ago and an active repository. It carries 13 runtime dependencies including standard ecosystem libraries.
Requires a running Vespa instance accessible at the specified URL; Python 3.10 or later (requires_python >=3.10,<3.14).
License in practice
Licensed under Apache 2.0, a permissive open-source license that allows commercial use, modification, and distribution with minimal restrictions. You may use and modify the code freely provided you include the license and attribution notices.
Quickstart
pip install pyvespa
import pyvespa
from pyvespa import Vespa
app = Vespa(url="http://localhost")
results = app.query(yql="select * from doc where true")
Verify before relying
- Whether docker dependency is a runtime requirement or only for local development
- Specific Vespa server version compatibility constraints
- Exact URL format and port requirements for connecting to Vespa instances
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release <3.14,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 13 packageshttprdockerjinja2cryptographytenacitytyping_extensionspython-dateutilfastcorelxmlcertifirequestsrequests_toolbelthttpx |
| Maintenance | Actively maintained 42 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 17,444,074 / month, #1,119 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software License |
Evidence: pyvespa-1.2.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “vespa python api”
- pyvespapyvespa provides a Python API to create, deploy, and interact with…
- apache-airflow-providers-vespaIntegrates Apache Airflow with Vespa, enabling workflow orchestration…
- xdkA Python SDK for interacting with the X API, providing typed client…
Give your agent the search over MCP, or paste the wish link into any chat.
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object Relational Mapper (ORM) that provides both a high-level ORM layer for declarative object persistence and a Core SQL construction system for direct database abstraction and query building.
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Alembic generates and manages database schema migrations for SQLAlchemy applications, handling version control of database structure changes with support for upgrades, downgrades, and auto-generation from model changes.
Install it if you use SQLAlchemy and need to version-control schema changes; skip it only if you manage migrations manually or use a different ORM entirely.
A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.
A Python client library that connects to Databricks clusters and SQL warehouses using a Thrift-based protocol, conforming to the Python DB API 2.0 specification and supporting Arrow-based data exchange.
Install it if you need to query Databricks clusters or SQL warehouses from Python.
Psycopg 3 is a PostgreSQL database adapter for Python that enables applications to connect to, query, and manage PostgreSQL databases using Python code.
Install it if you need to connect Python to PostgreSQL.
See also apache-airflow-providers-vespa · tensorflow-serving-api · FlashRank · needle-python · trieve-py-client · apache-sedona · pypsa · pagefind · python-lsp-ruff