plb command line is perfect for managing your library, the Python SDK is how you’ll bring your prompts to life in a production environment.
We will write a simple Python script that loads our joke-generator prompt, renders it with a specific topic, and prints the result.
Here is a complete example of a Python script that uses the SDK to prepare the prompt and then gets a completion from an LLM.
Next Steps
You’ve seen how to manage prompts on the command line and how the SDK provides a simplerun() method to handle rendering and LLM execution.
Where to Go Next?Check out our Use Cases section to learn how to:
- Set up CI/CD pipelines to automatically lint and verify your prompts.
- Manage complex team workflows with namespaces and status flags.
- Leverage advanced search to build a truly discoverable prompt library.
