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=7860, # Server port
browser=True, # Launch browser
upload_size="4MB", # Max upload size
public=False, # Enable public URL
limit=10, # Max concurrent requests
quiet=False # Quiet mode
)
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.
Metadata
Release files for dalle-generator 25.3.5
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 |
|---|---|---|---|---|
| dalle_generator-25.3.5.tar.gz | 25.3 kB | Without provenance | Details for dalle_generator-25.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dalle_generator-25.3.5-py3-none-any.whl | Python 3 | none | any | Details for dalle_generator-25.3.5-py3-none-any.whl |
Total release size: 51.0 kB
Release files / dalle_generator-25.3.5.tar.gz
| Download URL | dalle_generator-25.3.5.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
724ad9425f811e86d89505e65eba5ed2a7222b3a2c1090956dcce6ebff952d95
|
|
BLAKE2b-256 checksum How to use checksums |
44cd48df870441273f97fc0940b466b02b1856fccbb8b4d68ac7faaeada14e59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.11
|
Release files / dalle_generator-25.3.5-py3-none-any.whl
| Download URL | dalle_generator-25.3.5-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53fe4ed834f25f0d1fbd4fe2a84936d32a001ef8b5a850c9e464c87a404d0629
|
|
BLAKE2b-256 checksum How to use checksums |
d2a9c224dc9947b32a003345a316f77a67e5f33534c0fc87f2c50399a6a2ce9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.11
|
Security for dalle-generator 25.3.5
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.