Skip to main content

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


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.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

gen_bing-0.0.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file gen_bing-0.0.2.tar.gz.

File metadata

  • Download URL: gen_bing-0.0.2.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

Hashes for gen_bing-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bc5e37bcaf2f778e93b471e1c823abfd5be77a0534e4412c65d596c6a7db9750
MD5 069081f3f053f0ae1c564f7ad5838936
BLAKE2b-256 5db317b73bbb3e1259cf9dbb220971acf1718f841dfb1e34d10f43148bd67f54

See more details on using hashes here.

File details

Details for the file gen_bing-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: gen_bing-0.0.2-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

Hashes for gen_bing-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a45d025835c8aa04c30137cf6b6d30fc1eeb60c567c386398f2f38a80cc8efd8
MD5 18725804a849e6f33e4850c0c93b2205
BLAKE2b-256 9c0622a7afb53ce10144221e370f2860a5ccbdf820fd7a05d40d38e6ec709508

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page