skillfed

prompthub-py

prompthub-py v4.0.0 74.8K downloads/30d#14,796 on PyPI
Permissive license Apache-2.0 Abandoned released

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

uv

uv add prompthub-py

poetry

poetry add prompthub-py

Installing 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

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

prompt management clientfetch prompts from apiprompt hub integrationload prompts json yamlprompt template retrievalrest api prompt clientprompt storage and loading
prompt-managementabandoned-package

More WWW/HTTP packages