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 "#". Empty lines are skipped too. Be aware that the first token from the list is used to check if the prompt will pass the filter, which may lead the account the token belongs to to be banned if the prompt is actually unsafe, so it will be mindful to use the token from an account you don't care about as the first token. Repeating tokens are not removed
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)
Metadata
Release files for bing-image-creator-api 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bing_image_creator_api-0.6.0.tar.gz | 3.7 kB | Without provenance | Details for bing_image_creator_api-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bing_image_creator_api-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for bing_image_creator_api-0.6.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / bing_image_creator_api-0.6.0.tar.gz
| Download URL | bing_image_creator_api-0.6.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
409fb85998b893aef368558ea0bb487d95d1e08bd2f7e6a2f2caea02277d13fe
|
|
BLAKE2b-256 checksum How to use checksums |
18117985baa54339d831ea0508c1362c705b8614765dd630362b4e2f7d6e71b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.13 Linux/5.4.0-150-generic
|
Release files / bing_image_creator_api-0.6.0-py3-none-any.whl
| Download URL | bing_image_creator_api-0.6.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60c1e46257e4772a0dabbd2bb5053c53cb32b3ab9bd3d4f1ec359d3c3f69c3bc
|
|
BLAKE2b-256 checksum How to use checksums |
5fb4c9ce6b70f287396cd751f8f590252e351ae78582e3c50f07bfa0e71c942d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.13 Linux/5.4.0-150-generic
|
Security for bing-image-creator-api 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.