A simple scripting language for interacting with AI built on top of Python.
With pip:
pip install promptscriptPromptScript is designed for efficient tooling with AI systems.
PromptScript can be written and executed on its own or embedded into Python projects and allows for no-boilerplate interactions with large language models (LLMs), image generation models, and transcription.
Once you've installed PromptScript, you can run it in one of the following ways
Run:
promptscriptCreate a file ending in .prompt
Example (test.prompt):
show "Hello, World!"
Then, you can run the file from the terminal:
promptscript test.promptReplacing test.prompt with the actual file path
To run PromptScript from python, you can either run it from a file or individual commands
Running From Files
from promptscript.executor import FileExecutor
FileExecutor().run('<file_name>.prompt')Running Individual Commands
from promptscript.executor import CommandExecutor
CommandExecutor().run('show "Hello World!"')Visit promptscript.wiki for full documentation and usage examples