
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
A simple client to fetch prompts from Prompt Hub using its REST API.
First step is obviously installation:
pip install prompthub-py
Then you can import Prompt
, that class is all you're going to need.
import prompthub
# To load from a JSON file
p = prompthub.from_json("./path/to/my/prompt.json")
# To load from a YAML file
p = prompthub.from_yaml("./path/to/my/prompt.yaml")
# To load from Prompt Hub
p = prompthub.fetch("deepset/question-answering")
# To get the prompt text (see Prompt class)
p.text
If you want to use a different Prompt Hub you must set the PROMPTHUB_MAIN_ENDPOINT
environment variable to your main endpoint.
If the environment variable is not set the default api.prompthub.deepset.ai
will be used.
To run tests locally first install dev dependencies, we use poetry
to manage our dependencies:
poetry install --with=dev
Run Prompt Hub locally with a set of fake prompts:
docker run -p80:80 --volume $PWD/test/fake_prompts:/prompts deepset/prompthub
And then run tests:
poetry run pytest test
FAQs
Unknown package
We found that prompthub-py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.