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.5.dev0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

gen_bing-0.0.5.dev0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file gen_bing-0.0.5.dev0.tar.gz.

File metadata

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

Hashes for gen_bing-0.0.5.dev0.tar.gz
Algorithm Hash digest
SHA256 d346adc5890c338fbed9544ac0c0e0d22c13b4f1fe86d291897f455c3d3ca3f1
MD5 97c1f39a36007491cff06b3a361096fc
BLAKE2b-256 2175a1543a816bd018d0b0aa89389ed12f83662e66fe91d582376f4b1f25a086

See more details on using hashes here.

File details

Details for the file gen_bing-0.0.5.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for gen_bing-0.0.5.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 07fffb12e4fe2e0fac56bc100ff8507ea5848086d43f3a70b13f44f84a23d83d
MD5 17ab7142627d59f3384f2dcd950d8e65
BLAKE2b-256 ecf83d34caa4dd5a4bb1f9d2e7e0853601001273d592796e0ba4fec3eb94d7f8

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