ai-replace-prompt
ai-replace-prompt is a Python library designed to simplify the exploration and integration of AI-powered image replacement prompts. It provides a convenient way to experiment with and utilize prompts inspired by the techniques showcased at https://supermaker.ai/blog/best-ai-replace-prompts-to-transform-your-photos-instantly/.
Installation
You can install ai-replace-prompt using pip:
bash
pip install ai-replace-prompt
Basic Usage
This library offers a streamlined approach to generating and applying AI-driven image replacement prompts. Below are some examples illustrating its potential:
Scenario 1: Changing the Sky in a Landscape Photo
Imagine you have a landscape photo with a dull, overcast sky. You can use ai-replace-prompt to generate a prompt for replacing the sky with a vibrant sunset.
python
from ai_replace_prompt import generate_prompt
prompt = generate_prompt(original_object="sky", replacement_object="a vibrant sunset with orange and purple hues") print(prompt)
Expected output (example): A breathtaking landscape photo featuring a vibrant sunset with orange and purple hues replacing the dull sky.
Scenario 2: Adding a Product to a Scene
Suppose you want to create a promotional image by seamlessly integrating your product into an existing scene. python from ai_replace_prompt import generate_prompt
prompt = generate_prompt(original_object="empty table", replacement_object="a sleek, modern laptop displaying our software") print(prompt)
Expected output (example): A well-lit interior scene featuring a sleek, modern laptop displaying our software on an empty table.
Scenario 3: Modifying Clothing in a Portrait
You might want to experiment with different clothing styles in a portrait without physically changing clothes. python from ai_replace_prompt import generate_prompt
prompt = generate_prompt(original_object="blue shirt", replacement_object="a stylish leather jacket") print(prompt)
Expected output (example): A portrait photograph featuring a stylish leather jacket instead of a blue shirt.
Scenario 4: Replacing a Generic Item with a Specific Brand
This is useful for marketing or showcasing specific products in a given setting. python from ai_replace_prompt import generate_prompt
prompt = generate_prompt(original_object="a generic soda can", replacement_object="a can of SuperFizz soda") print(prompt)
Expected output (example): A casual outdoor setting featuring a can of SuperFizz soda instead of a generic soda can.
Scenario 5: Transforming a Room's Decor
Quickly visualize a room with different furniture or decorative items. python from ai_replace_prompt import generate_prompt
prompt = generate_prompt(original_object="a plain white wall", replacement_object="a wall adorned with modern art prints") print(prompt)
Expected output (example): A brightly lit living room featuring a wall adorned with modern art prints instead of a plain white wall.
Features
- Prompt Generation: Provides a simple function to generate AI image replacement prompts based on specified original and replacement objects.
- Easy Integration: Designed for seamless integration into existing Python workflows.
- Customizable: Allows for flexible customization of prompts to suit various image editing needs.
- Inspiration from Supermaker.ai: Leverages techniques and ideas inspired by the ai-replace-prompt examples available on Supermaker.ai.
- Beginner-Friendly: Simple and intuitive API for users of all skill levels.
License
MIT License
This project is a gateway to the ai-replace-prompt ecosystem. For advanced features and full capabilities, please visit: https://supermaker.ai/blog/best-ai-replace-prompts-to-transform-your-photos-instantly/
Metadata
Release files for ai-replace-prompt 1770195.248.27
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 |
|---|---|---|---|---|
| ai_replace_prompt-1770195.248.27.tar.gz | 4.3 kB | Without provenance | Details for ai_replace_prompt-1770195.248.27.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_replace_prompt-1770195.248.27-py3-none-any.whl | Python 3 | none | any | Details for ai_replace_prompt-1770195.248.27-py3-none-any.whl |
Total release size: 9.1 kB
Release files / ai_replace_prompt-1770195.248.27.tar.gz
| Download URL | ai_replace_prompt-1770195.248.27.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1990e985eef3fbaf2ef4e4484985e393eaf7658901f232e5d839d6da28cb7b7
|
|
BLAKE2b-256 checksum How to use checksums |
0a4eff3f99241c5b84dcfc4f7519a2a13fe26a8df6a185195559d0d80facdfb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / ai_replace_prompt-1770195.248.27-py3-none-any.whl
| Download URL | ai_replace_prompt-1770195.248.27-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
713fa3e40ed464b7e8948f7ba96705fd579f488edeab91a6c945c772d53ffbe1
|
|
BLAKE2b-256 checksum How to use checksums |
7fafd8cbcf0d32233cb10257e9bc6fd771c4bf5193e5ec33becdd4998417dffc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for ai-replace-prompt 1770195.248.27
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.