Prompt-as-Method
Run prompts from files.
Install
pip install prompt-as-method
Quickstart
If you have an Ollama running on the default port on your local machine:
ollama pull llama3.1 # download model
python3 -m prompt_as_method \
--prompt examples/sentiment/prompt.json \
--data examples/sentiment/data.csv
This runs the prompt template examples/sentiment/prompt.json for each row of examples/sentiment/data.csv with {{{text}}} replaced by the row's value for it.
Contributing
See the development notes.
Metadata
Release files for prompt-as-method 0.4.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 | |
|---|---|---|---|
| prompt_as_method-0.4.0.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prompt_as_method-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / prompt_as_method-0.4.0.tar.gz
| Download URL | prompt_as_method-0.4.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c183e656dfdbe71b06f51c61a0b34cf4081fa8d0f0ed8ff382eb5f2de2c7527
|
|
BLAKE2b-256 checksum How to use checksums |
26963b9061b2b123cf2e4ad1dc00bd8790a0892977680abacbce83c54d17b6bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 30, 2025.
Transparency logRelease files / prompt_as_method-0.4.0-py3-none-any.whl
| Download URL | prompt_as_method-0.4.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
136f4fffe22c8315a2d92f6a514812fa3ba0843268c72647af2c6c4ec00cf8e6
|
|
BLAKE2b-256 checksum How to use checksums |
20cb1a72ed83bdfc38578dc4ef8856d9ae000ea4e0b3187da72a8994cc09b8a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 30, 2025.
Transparency log