Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Software 3.0 - Promptware

Install

For common users

pip install promptware

For developers

git clone https://github.com/ExpressAI/Promptware.git
cd Promptware

# Install the required dependencies and dev dependencies
pip install -e .

Quick Example

export OS_API_KEY=YOUR_OPENAI_KEY
from promptware import install
software = install("sentiment_classifier")
label = software.execute({"text": "I love this movie"})

or

import promptware as pop
software = pop.install("sentiment_classifier")
label = software.execute({"text": "I love this movie"})

or install a software locally

from promptware import install
software = install("./softwares/sentiment_classifier")
label = software.execute({"text": "I love this movie"})

it also supports subconfig:

from promptware import install
software = install("./softwares/machine_translation", "enzh")
software = install("./softwares/machine_translation", "zhen")

See more in this example

Add More Softwares

Here is one example, where you need to create two files:

  • sentiment_classifier: declare different configs of the software
  • sentiment_classifier_test: a test file for your defined software

you can run the test file with following script:

python -m unittest softwares.sentiment_classifier.sentiment_classifier_test

Schema of Promptware

@dataclass
class Promptware:
    # Name
    name: str
    # Describe what the promptware is designed for
    description: str
    # Instruction text of promptware
    instruction: str | Callable[[Any], str]
    # Demonstration of promptware
    demonstration: Optional[list[str]]
    # Prompt template defines how a user's input will be formatted
    prompt_template: Callable[[Any], str]
    # The most appropriate tasks that the promptware could be applied to
    task: TaskType

Metadata

Release files for promptware 0.1.3.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for promptware 0.1.3.dev0
File Size Uploaded Provenance Actions
promptware-0.1.3.dev0.tar.gz 110.5 kB Without provenance Details for promptware-0.1.3.dev0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for promptware 0.1.3.dev0
File Interpreter ABI Platform Actions
promptware-0.1.3.dev0-py2.py3-none-any.whl Python 3, Python 2 none any Details for promptware-0.1.3.dev0-py2.py3-none-any.whl

Total release size: 336.0 kB

Release files / promptware-0.1.3.dev0.tar.gz

Download URL promptware-0.1.3.dev0.tar.gz
Size 110.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bec2806068fa9baab304fbc68155a3fc505da11c15b6dc0ffc7402b62bc000e0
BLAKE2b-256 checksum
How to use checksums
7e52bb46b9262cf519da7a0b7bd7d75188f58827a09ed5f9ce8900e0b4cd09a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release files / promptware-0.1.3.dev0-py2.py3-none-any.whl

Download URL promptware-0.1.3.dev0-py2.py3-none-any.whl
Size 225.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
537c9f519a3702aef772ef1be1a54b8a721204edc00ab04a708765e51b8d28b3
BLAKE2b-256 checksum
How to use checksums
09d38ee72f90ae64b445653cfc1835726cb166447676f3b1ad690f8d51e38a77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Security for promptware 0.1.3.dev0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page