I'm From Indonesian, and I'm still learning.
Project description
Gen Bing
A Python library for generating and saving images using Bing's Image Creator.
Installation PyPi
pip3 install -U --no-cache-dir gen-bing
Usage Async
from Bing.bing import AsyncImageGenerator
async def main():
GEN = AsyncImageGenerator(auth_cookie_u="YOUR_U_COOKIE", auth_cookie_srchhpgusr="YOUR_SRPCHPGUSR_COOKIE")
images = await GEN.generate(prompt="A cute cat is playing on a bed. Digital Art 3D.", num_images=4)
await GEN.save(images, output_dir="images/")
import asyncio
asyncio.run(main())
Usage Sync
from Bing.bing import ImageGenerator
GEN = ImageGenerator(auth_cookie_u="YOUR_U_COOKIE", auth_cookie_srchhpgusr="YOUR_SRPCHPGUSR_COOKIE")
images = GEN.generate(prompt="A cute cat is playing on a bed. Digital Art 3D.", num_images=4)
GEN.save(images, output_dir="images/")
DON'T TRY THIS AT HOME 🏡 🙏🏻
LuciferReborns
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gen_bing-0.0.3.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file gen_bing-0.0.3.tar.gz
.
File metadata
- Download URL: gen_bing-0.0.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb920e04c3b8d6f985f91eb174a2015a4ba456b639694cab6abb9d39b9aa0f3d |
|
MD5 | fb649953be79806988e0103e1f6a75ed |
|
BLAKE2b-256 | 7f1056386550047f3b9c922a4646b1876b1f5dcdee7326db984b9489aa3ffc9b |
File details
Details for the file gen_bing-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: gen_bing-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b86d8f5e65a7463b92aae3431f3a828c5a375ef6b26402f1a7c1bcf542a6bf41 |
|
MD5 | 90f0e1e9360307f7a636b030eadfd443 |
|
BLAKE2b-256 | a2d6cf0ded89b9fa63626280d482c9e058976cbcc9a3dababbc5bbe4c4291abe |