Skip to main content

A simple scripting language for interacting with AI

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptscript-0.1.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

promptscript-0.1.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file promptscript-0.1.2.tar.gz.

File metadata

  • Download URL: promptscript-0.1.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.8

File hashes

Hashes for promptscript-0.1.2.tar.gz
Algorithm Hash digest
SHA256 532482e12c838b87023beae1bf4b10d71403a0aff87e1cc463ab2ff73e6da4a3
MD5 da09c09274b32c233dd76249ec2bf7f7
BLAKE2b-256 fa39863d65b426244ce2454b521acc3cca6207ea09d980a511fc64be83f7c0dc

See more details on using hashes here.

File details

Details for the file promptscript-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: promptscript-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for promptscript-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06c0c0b8d19aed403e58bebeb5d7c2a2938a661c9d5d707d5acd59d585c4ca2d
MD5 6e96703d7b8313799d5c00397158cb59
BLAKE2b-256 9a7619fd2d3519d53c04b00ac9cf90dc446ff00ff60cb38a85ad4aaa840bb11a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page