prompthub-py
What it is and what it does
prompthub-py is a lightweight Python client for interacting with Prompt Hub, a centralized repository for prompt templates. It lets you fetch prompts from a remote Prompt Hub instance via REST API or load them locally from JSON and YAML files. The package wraps requests and pyyaml to handle serialization and HTTP communication, exposing a simple Prompt class with a text property to access the loaded prompt content.
The package is designed for workflows where prompts are managed centrally—either on a public Prompt Hub server or a private instance—and need to be retrieved at runtime. It supports environment-based configuration to point to different Prompt Hub endpoints, making it suitable for multi-environment deployments. However, the package has been abandoned since mid-2023 and receives no maintenance or updates.
Use it for:
- Fetch prompt templates from a centralized Prompt Hub server for use in LLM applications at runtime
- Load pre-written prompts from local JSON or YAML files in a standardized way across projects
- Manage multiple Prompt Hub instances (development, staging, production) via environment variables
- Integrate prompt versioning and retrieval into a larger NLP or LLM pipeline
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Fetches prompt templates from Prompt Hub or loads them from local JSON/YAML files, providing a simple client interface to manage and access prompts via REST API.
No, unless you are maintaining an existing codebase already using this package. The package is abandoned (no releases since 2023-06-01) and will not receive security updates or maintenance. If you need to fetch prompts from Prompt Hub, consider whether the service and its API remain compatible, or evaluate actively maintained alternatives for prompt management.
Install
prompthub-py on PyPI
pip
pip install prompthub-pyuv
uv add prompthub-pypoetry
poetry add prompthub-pyInstalling prompthub-py
Before you install
Low install friction with only two runtime dependencies (requests and pyyaml). However, the package is marked abandoned with no releases since 2023-06-01, meaning no maintenance or security updates are being provided.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions, though you assume responsibility for any issues since the package is no longer maintained.
Quickstart
pip install prompthub-py
import prompthub
# Load from Prompt Hub
p = prompthub.fetch("deepset/question-answering")
print(p.text)
Requires PROMPTHUB_MAIN_ENDPOINT environment variable to be set if using a custom Prompt Hub instance; otherwise defaults to api.prompthub.deepset.ai
Verify before relying
- Whether the default Prompt Hub endpoint (api.prompthub.deepset.ai) remains operational and compatible with version 4.0.0
- Whether custom Prompt Hub instances continue to work with the current client implementation
- Compatibility of the package with current versions of requests and pyyaml beyond what classifiers declare
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.8,<4.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — requests, pyyaml |
| Maintenance | abandoned — 1,170 days since the last release |
| First released | |
| Downloads | 74,765/month — #14,796 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: prompthub_py-4.0.0-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
promptyPrompty is a Python runtime for executing LLM…
permissive · top 15,000 on PyPI
click-promptclick-prompt adds interactive prompts to Click…
permissive · top 15,000 on PyPI
questoQuesto provides modular, extensible CLI prompt…
permissive · top 15,000 on PyPI
sphinx-promptSphinx Prompt is a Sphinx extension that…
permissive · top 5,000 on PyPI
inquirerpyInquirerPy provides interactive command-line…
permissive · top 5,000 on PyPI
dynamicpromptsGenerates varied text prompts for image…
permissive · top 15,000 on PyPI
blackduckPython bindings for the Synopsys Black Duck Hub…
permissive · top 15,000 on PyPI
bulletBullet provides styled, interactive CLI prompts…
permissive · top 15,000 on PyPI
promptlayerPromptLayer is a Python SDK for managing,…
permissive · top 15,000 on PyPI
banksBanks is a template language and prompt…
permissive · top 5,000 on PyPI