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.1.dev3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

gen_bing-0.0.1.dev3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file gen_bing-0.0.1.dev3.tar.gz.

File metadata

  • Download URL: gen_bing-0.0.1.dev3.tar.gz
  • Upload date:
  • Size: 4.8 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.1.dev3.tar.gz
Algorithm Hash digest
SHA256 ef1776184146221b249afacbc9a4632f58cd002d0694b019731547cafcc62d84
MD5 f2b1ee99791ca1da0b619cccc6f960c9
BLAKE2b-256 c2b9bebf1b7f36940bdd54e2747332ba395dc8cd129d20420895a09a2b36b9f9

See more details on using hashes here.

File details

Details for the file gen_bing-0.0.1.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for gen_bing-0.0.1.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0a091621eb17439e27010ccf5f5ac769cd30a3d7a0f87b36264488b74b343b
MD5 b3a16b9844c680730acc7257098a171a
BLAKE2b-256 5be6d66e0a0041143eea2573f818c639523059bd98e1ffe865c6d22edc8b654e

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