No project description provided
Project description
bing_image_creator_api
This repository was created using the code from these repositories:
I am very thankful to the creators of these repos, they did an amazing job. I simplified the algorithm a lot and added a better (in my opinion) way to invoke the tool programmatically.
What's not currently supported
Using boosts for generations
Installation
pip install bing_image_creator_api
Usage
As a library
import bing_image_creator_api
import asyncio
import webbrowser
from getpass import getpass
async def main():
client = bing_image_creator_api.Client(user_token=getpass("Enter your user token: "))
urls = await client.create("cute puppies")
for url in urls:
webbrowser.open(url)
asyncio.run(main())
As a standalone program
The "token file" is a file containing tokens from one or more accounts, where each token is placed on a separate line. This file can have comments that start with "#"
python -m bing_image_creator_api -t '/path/to/token/file.txt' -n 10 -p "cute puppies" # Generate at least 10 images and then stop
python -m bing_image_creator_api -t '/path/to/token/file.txt' -p "cute puppies" # Generate images until killed (Ctrl+C)
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
Built Distribution
Close
Hashes for bing_image_creator_api-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85702722359b2c5d1d51b650ee35cce3266d51ed5ff811bfef4d4c89d0d5c12f |
|
MD5 | 5a4830ef81a04c5c9d266b00b74e7ef1 |
|
BLAKE2b-256 | 00f7a5481494e848d4ec7b8a3a035ac3a8411e13a9cbf13706d6eb627da18c60 |
Close
Hashes for bing_image_creator_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ceb8f6ee4921f0b1b70a69ddc1a3841571be879c68ac5de58a15f71b3a9b392 |
|
MD5 | 1fb5dffca90cbeb76f54a6d9e3249e96 |
|
BLAKE2b-256 | 14715e5a52f9f4c9520e8bd8b342993f44f4230affd94debbc38f4684f6e5e35 |