A simple image generator that focuses on prompt adherence and aesthetics.
Project description
dalle-generator
An image generator that focuses on prompt adherence and unique aesthetics.
Installation
pip install dalle-generator
Key Features
- 🎨 Image Generation
- Text-to-Image Generation
- Multiple Image Output
- Smart Prompt Handling
- 🔄 Flexible Integration
- Interactive Web UI
- REST API Server
- Python Library
- 💾 Output Management
- Multiple Output Formats
- Date-based Organization
- Automatic File Naming
Usage
Python Library
from dalle_generator import DalleGenerator
# Initialize
client = DalleGenerator(
mode="default", # Mode (default/webui/api)
log_on=True, # Enable logging
log_to=None, # Log directory
save_to="outputs", # Output directory
save_as="webp" # Output format (webp/jpg/pil)
)
# Generate images
results = client.image_generate(
prompt="a beautiful landscape"
)
# Returns list of file paths or PIL Images if save_as='pil'
Web UI
Start the Gradio web interface:
client = DalleGenerator(mode="webui")
# OR
client.start_webui(
host="0.0.0.0", # Server host
port=5735, # Server port
browser=True, # Launch browser
upload_size="4MB", # Max upload size
public=False, # Enable public URL
limit=10 # Max concurrent requests
)
REST API
Start the Flask API server:
client = DalleGenerator(mode="api")
# OR
client.start_api(
host="0.0.0.0", # Server host
port=5734, # Server port
debug=False # Enable debug mode
)
API Endpoints
POST /v1/api/image/generate
Configuration
Output Formats
webp- High quality, small sizejpg- Standard compressedpil- PIL Image object
Output Structure
outputs/
└── YYYY-MM-DD/
├── YYYYMMDD_HHMMSS_UUID8_1.webp
├── YYYYMMDD_HHMMSS_UUID8_2.webp
└── ...
License
See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dalle_generator-25.3.3.tar.gz
(25.1 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 dalle_generator-25.3.3.tar.gz.
File metadata
- Download URL: dalle_generator-25.3.3.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cabb6623a04e86f8e34085e5d33c7c487e4fe603f2bb3590a3b6f9bc3c7b2a8e
|
|
| MD5 |
c07830cf15007fc550b8c600024de506
|
|
| BLAKE2b-256 |
215e02ee28602744a2a543782395086265636a5ea2b2a47496d7a885f848dfc0
|
File details
Details for the file dalle_generator-25.3.3-py3-none-any.whl.
File metadata
- Download URL: dalle_generator-25.3.3-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c54f0d129b40847e6473ba1a547a8842e08ea61cebdc7a84a9b434618122be6
|
|
| MD5 |
fe2f5cfcff9a60ed831fd2c34d2599c7
|
|
| BLAKE2b-256 |
f24cf6f2264befe8d7cdcf81afa917976ab525ffa7a8ae699865b385a678f266
|