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.7.dev0.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file gen_bing-0.0.7.dev0.tar.gz
.
File metadata
- Download URL: gen_bing-0.0.7.dev0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58bc092fdd18cc3c61bdef203dca2bd64f28646fed526c3e8950d973150d7ee9 |
|
MD5 | 53f39aed7f9a5dc5d8c5365c84fe5c3f |
|
BLAKE2b-256 | 4cc7c4729ac8b2e2930381d152c5983503742f3ba2b7ce4170c3c33cef8cbfc1 |
File details
Details for the file gen_bing-0.0.7.dev0-py3-none-any.whl
.
File metadata
- Download URL: gen_bing-0.0.7.dev0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4503b342ca234f23545b01f28992b0b78e6a290d11fb6e1fcbafe132c54b9eef |
|
MD5 | 0ef1502b87443b7011d33c1e340e6093 |
|
BLAKE2b-256 | cd20052e335c5080d68d17978bdaae4665280fdda210bada5face282d29574b1 |