First Library.
Project description
Gen Bing
A Python library for generating and saving images using Bing's Image Creator.
Installation
pip install gen-bing
from Bing.bing import AsyncImageGenerator
async def main():
generator = AsyncImageGenerator(auth_cookie_u="YOUR_U_COOKIE", auth_cookie_srchhpgusr="YOUR_SRPCHPGUSR_COOKIE")
images = await generator.generate_images(prompt="beautiful landscape", num_images=5)
await generator.save_images(images, output_dir="images/")
import asyncio
asyncio.run(main())
from Bing.bing import SyncImageGenerator
generator = SyncImageGenerator(auth_cookie_u="YOUR_U_COOKIE", auth_cookie_srchhpgusr="YOUR_SRPCHPGUSR_COOKIE")
images = generator.generate_images(prompt="beautiful landscape", num_images=5)
generator.save_images(images, output_dir="images/")
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.1.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file gen_bing-0.0.1.tar.gz
.
File metadata
- Download URL: gen_bing-0.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9018f901fc944dc758b690e4c50975ebb2c5ae8d2469ca9e6d2534ca40a8f446 |
|
MD5 | 67d827b3b8f6fb226961f01ea0be1fce |
|
BLAKE2b-256 | 0a4aa02009307bc4820a8b593235648a35374540ab87ed7ea2d0df713aa71527 |
File details
Details for the file gen_bing-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: gen_bing-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.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 | 195942a32d4fd25fb8dde5df284a09b6510c8246db66d41afb7487db5f229023 |
|
MD5 | 4f29b2257a7737783a9e712aeb847825 |
|
BLAKE2b-256 | d8b9dcdefede1e4cc822c1252694f5d4464dd570c8781ebf0e822058f8236b54 |