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.8.dev0.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file gen_bing-0.0.8.dev0.tar.gz
.
File metadata
- Download URL: gen_bing-0.0.8.dev0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3f73dd3d03536ec1cc46afa4e7988b7d3ae48ea125461304529602c5bde148a |
|
MD5 | 97d5f26251b4ae5c965c73b2ea61229b |
|
BLAKE2b-256 | 2ce519483b2ac8b25ae65c037766c39e785f91203668871048e4bbc628883264 |
File details
Details for the file gen_bing-0.0.8.dev0-py3-none-any.whl
.
File metadata
- Download URL: gen_bing-0.0.8.dev0-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06a3894ed7f937010e6b8a9e4745392e4575743db4136951a7a4fa9143da59ff |
|
MD5 | bea301691933bdac7acb087be95fb24b |
|
BLAKE2b-256 | 1e39e65c0cfc1ef053c8c4bbcfba8016e2c9fe364de948036289a6bf3503041b |