aiimgprompt-tools
Tiny, dependency-free helpers for cleaning up and shaping AI image prompts — the boring string work you do before you paste a prompt into a generator.
Written to back the free browser tools at AI Image Prompt Lab, where you can also browse a free prompt library without installing anything.
What's inside
from aiimgprompt_tools import tidy, add_style, as_negative
tidy(" a red fox ,,, on a rock ")
# 'a red fox, on a rock'
add_style("a red fox on a rock", "cinematic photo, 35mm, soft light")
# 'a red fox on a rock, cinematic photo, 35mm, soft light'
as_negative("blurry, extra fingers")
# 'blurry, extra fingers' (deduped, lowercased, trimmed)
tidy(prompt)— collapse stray whitespace and duplicate separators.add_style(prompt, style)— append a style tail without duplicating it.as_negative(prompt)— normalise a negative-prompt list.
Why so small?
Most prompt problems are punctuation problems. You do not need a framework to fix a comma. If you want the same thing with a UI (and no install), the browser versions live here:
Install
pip install aiimgprompt-tools
MIT licensed.
Release files for aiimgprompt-tools 0.1.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 | |
|---|---|---|---|
| aiimgprompt_tools-0.1.0.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiimgprompt_tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.6 kB
Release files / aiimgprompt_tools-0.1.0.tar.gz
| Download URL | aiimgprompt_tools-0.1.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4da342d0fec2015904875220df6e0f10f263a7cbbb8e17a7846188d3345da7a
|
|
BLAKE2b-256 checksum How to use checksums |
91210ec0d6ac19f7325988e5a692e4a2594fa9c2604059f801673bcbe2c77d53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / aiimgprompt_tools-0.1.0-py3-none-any.whl
| Download URL | aiimgprompt_tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5895094a2f65a5b625ee2078007500809b221395ca64ed80993fff097ff5f45
|
|
BLAKE2b-256 checksum How to use checksums |
04751072bdd4133f8d2bb80435e504b540b6d750fb7d636f2d8105ebb590b950
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|