--- id: prompthub-py version: "4.0.0" license: Apache-2.0 license_treatment: permissive maintenance: abandoned --- # prompthub-py License: permissive · Maintenance: abandoned · Downloads: 74.8K/mo ## 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 above — 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 pip install prompthub-py uv add prompthub-py 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_current - Install friction: low - Maintenance: abandoned - Downloads: 74.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags prompt management client, fetch prompts from api, prompt hub integration, load prompts json yaml, prompt template retrieval, rest api prompt client, prompt storage and loading, prompt-management, abandoned-package [View on SkillFed](https://skillfed.io/packages/prompthub-py) · [View on PyPI](https://pypi.org/project/prompthub-py/)