A Python package for writing inline prompts in Python
Project description
Inline Prompts
Inline Prompts allows you to write better inline prompts in your python programs.
Installation
Examples
from inline_prompts import inline_prompt as ip
def get_system_prompt():
prompt = ip("""
Without the Inline Prompts package,
prompts written like this would
have a leading newline,
and spacing at the start of each newline.
Inline prompts abstracts that behavior away.
""")
return prompt
print(get_system_prompt())
Results in
Without the Inline Prompts package,
prompts written like this would
have a leading newline,
and spacing at the start of each newline.
Inline prompts abstracts that behavior away.
Without inline prompts, you would get
Without the Inline Prompts package,
prompts written like this would
have a leading newline,
and spacing at the start of each newline.
Inline prompts abstracts that behavior away.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
inline_prompts-1.0.0.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inline_prompts-1.0.0.tar.gz.
File metadata
- Download URL: inline_prompts-1.0.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d93eec9f39bbaa212ca3e5a4f816290cfd96dc68998dca1fab0ae14cfd902aef
|
|
| MD5 |
479edd306b944abe4a4f37d255b3d4fe
|
|
| BLAKE2b-256 |
df70edfac29c2fcb12724af66f03f0781248e85185266fddc3c949ff7ed6a3dc
|
File details
Details for the file inline_prompts-1.0.0-py3-none-any.whl.
File metadata
- Download URL: inline_prompts-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
698e4d2ca6eb7949d85ee228e90ae8d2ddc17a8ce84afdc51dc846ec06425467
|
|
| MD5 |
97b6955dcd1b1cecf9552290effef92a
|
|
| BLAKE2b-256 |
1044f7fbbef83c48a84304cb1873d7b5f00bcbfaf895cd81561cb0da3be04083
|