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.4.dev0.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file gen_bing-0.0.4.dev0.tar.gz
.
File metadata
- Download URL: gen_bing-0.0.4.dev0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d661313cde297ef68ac11f92a79867f6f2e9d70c2940f2b9f7c4e186cfeb3936 |
|
MD5 | 8faccd090358b27d6f6f3ba5c4866137 |
|
BLAKE2b-256 | 75ecaec54d3390eb31fbac1676f42bd83befa38c386a06229554aab9c60ec0da |
File details
Details for the file gen_bing-0.0.4.dev0-py3-none-any.whl
.
File metadata
- Download URL: gen_bing-0.0.4.dev0-py3-none-any.whl
- Upload date:
- Size: 6.9 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 | 9df7f064232b6ac847c714ed7fe0586425f9e66a07e8c14902a2eac782877800 |
|
MD5 | 190274b9fbda8f424e6e77221b1172a8 |
|
BLAKE2b-256 | 269517b219fd33eaddf29eb02aafa5b77d8d11ef48a07ec10e1442c851871a2c |