PromptScript
A simple scripting language for interacting with AI built on top of Python.
Quick Install
With pip:
pip install promptscript
Why PromptScript?
PromptScript 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.
Running PromptScript
Once you've installed PromptScript, you can run it in one of the following ways
Option 1: CLI
Run:
promptscript
Option 2: Files
Create a file ending in .prompt
Example (test.prompt):
show "Hello, World!"
Then, you can run the file from the terminal:
promptscript test.prompt
Replacing test.prompt with the actual file path
Option 3: Embedded in Python
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!"')
Documentation
Visit promptscript.wiki for full documentation and usage examples
Metadata
Release files for promptscript 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| promptscript-0.3.0.tar.gz | 9.7 kB | Without provenance | Details for promptscript-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| promptscript-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for promptscript-0.3.0-py3-none-any.whl |
Total release size: 22.3 kB
Release files / promptscript-0.3.0.tar.gz
| Download URL | promptscript-0.3.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3047836923dc4dd46f1c3ee6af13dfa8ce92629561521e0942736cff59a94628
|
|
BLAKE2b-256 checksum How to use checksums |
0faecd4c341683ffd274af17d033235db55ffca8d50387d84d2907eaf77d0442
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / promptscript-0.3.0-py3-none-any.whl
| Download URL | promptscript-0.3.0-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f28ad7029c4d64883c40cc4c582e62abbc1969aa80385bd7b53c05e2d284545
|
|
BLAKE2b-256 checksum How to use checksums |
78747656c2678c2abeaf3c2438ff943aeb2bd75e23ed8fb8022a3cdf446350d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for promptscript 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.