Software 3.0 - Promptware
Install
For common users
pip install softwares
For developers
https://github.com/ExpressAI/softwares.git
cd softwares
# Install the required dependencies and dev dependencies
pip install -e .
Quick Example
export OS_API_KEY=YOUR_OPENAI_KEY
from softwares import load
software = load("sentiment_classifier")
label = software.execute({"text": "I love this movie"})
or load a software locally
from softwares import load
software = load("./hub/sentiment_classifier")
label = software.execute({"text": "I love this movie"})
it also supports subconfig:
from softwares import load
software = load("./hub/machine_translation", "enzh")
software = load("./hub/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 softwaresentiment_classifier_test: a test file for your defined software
you can run the test file with following script:
python -m unittest hub.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 softwaress 0.0.1
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 |
|---|---|---|---|---|
| softwaress-0.0.1.tar.gz | 54.9 kB | Without provenance | Details for softwaress-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| softwaress-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for softwaress-0.0.1-py2.py3-none-any.whl |
Total release size: 130.6 kB
Release files / softwaress-0.0.1.tar.gz
| Download URL | softwaress-0.0.1.tar.gz |
|---|---|
| Size | 54.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71faced804c225fb5030eb75162bc3bbd557c502158b5a21e1660d394f3efdbb
|
|
BLAKE2b-256 checksum How to use checksums |
934df588dab84c791fd4e58953859019b253a476bbb1f538dae39b627445a109
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.7
|
Release files / softwaress-0.0.1-py2.py3-none-any.whl
| Download URL | softwaress-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 75.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d7010ed2b33b960abc45f62015727e9b33dad6e4ab5fe12d3447bebdd760cc5f
|
|
BLAKE2b-256 checksum How to use checksums |
1cd8f136f12fda870e833c9b5fd2024828e09e1943994f053ea480154afb4e2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.7
|
Security for softwaress 0.0.1
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.