PicWish API for Python 🎨✨
Enhance, generate, and process images without tokens, accounts, and watermarks, and enjoy unlimited usage!
[!WARNING] This tool uses scraping technology. Use of this tool is at your own risk.
Features
- ✅ AI Text-to-Image Generation: Create images from text prompts with customizable themes, sizes, and quality.
- ✅ Image Enhancement: Improve image quality without watermark.
- ✅ Background Removal: Remove background from images.
- ✅ OCR (Optical Character Recognition): Extract text from images with support for multiple languages and various output formats.
- ✅ Image Expansion: Expand images with AI.
Installation
To get started, install the picwish package using pip:
pip install picwish
Quick Examples 🚀
1. AI Text-to-Image Generation 🤖
Generate images based on a text prompt with customizable settings:
import asyncio
from picwish import PicWish, T2ITheme, T2IQuality, T2ISize
async def main():
picwish = PicWish()
# Generate images from text prompt
results = await picwish.text_to_image(
prompt='A girl',
theme=T2ITheme.ANIME,
size=T2ISize.FHD_1_1,
batch_size=4,
quality=T2IQuality.HIGH
)
for result in results:
await result.download(f'{result.id}.png')
asyncio.run(main())
2. Image Enhancement
Enhance the quality of an image without a watermark:
import asyncio
from picwish import PicWish
async def main():
picwish = PicWish()
# Enhance an image
enhanced_image = await picwish.enhance('/path/to/input.jpg')
await enhanced_image.download('enhanced_output.jpg')
asyncio.run(main())
3. Background Removal
Remove the background from an image:
import asyncio
from picwish import PicWish
async def main():
picwish = PicWish()
# Remove background from an image
background_removed_image = await picwish.remove_background('/path/to/input.jpg')
await background_removed_image.download('background_removed_output.png')
asyncio.run(main())
4. OCR (Optical Character Recognition)
Extract text from images with support for multiple languages and output formats:
import asyncio
from picwish import PicWish, OCRFormat
async def main():
picwish = PicWish()
ocr_result = await picwish.ocr(
'input.jpg',
format=OCRFormat.TXT
)
print(await ocr_result.text())
# -----------------
# Download as PNG
ocr_result = await picwish.ocr(
'input.jpg',
format=OCRFormat.PDF
)
print(await ocr_result.download('result.pdf'))
asyncio.run(main())
5. Image Expansion
import asyncio
from picwish import PicWish
async def main():
picwish = PicWish()
# Generate images from text prompt
results = await picwish.expand(
'input.jpg',
horizontal_expansion_ratio=1.5,
vertical_expansion_ratio=1.5
)
for i, result in enumerate(results):
await result.download(f'{i}.png')
asyncio.run(main())
Metadata
Release files for picwish 0.6.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 | Provenance | Actions |
|---|---|---|---|---|
| picwish-0.6.0.tar.gz | 12.3 kB | Without provenance | Details for picwish-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| picwish-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for picwish-0.6.0-py3-none-any.whl |
Total release size: 25.0 kB
Release files / picwish-0.6.0.tar.gz
| Download URL | picwish-0.6.0.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d482ee4c029df1b7d32ed4a8ece9406ddb3b19765c050b4e032306a6cf006e2b
|
|
BLAKE2b-256 checksum How to use checksums |
d07ae8b884677504fcfb9117eb8d745d48cb4a30b31a4b64117aa918bd7f7c84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Release files / picwish-0.6.0-py3-none-any.whl
| Download URL | picwish-0.6.0-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9eec5387af8502b3960184543b480c8925d9f4059734b80ac89a636a534254b3
|
|
BLAKE2b-256 checksum How to use checksums |
f3cafe47721628a07cae044ed54a039ad2836f41b320b789672a934a8b948784
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Security for picwish 0.6.0
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.