Skip to main content

AsyncBing

asyncbing is an asyncio api wrapper for the Bing Search Api. It uses a modern async/await python api.
Docs

Installing

python -m pip install asyncbing
For the stable version of asyncbing.
python -m pip install git+https://github.com/TennisBowling/asyncbing/
For the unstable/cutting edge of asyncbing. Not recommended in production. \

Usage

Import it with
from asyncbing import search
Then initialize asyncbing with your Bing Search Api key guide like s = search.Search('APIKEYGOESHERE')

Sample usage

Searching

import asyncbing
import asyncio

async def main():
    async with asyncbing.tearch('key') as s:
        resp = await s.fetch('cool search term')
        print(resp.matches)
        oneresult = resp.getOne()
        print(oneresult.name)
        print(oneresult.url)
        print(oneresult.snippet)

asyncio.run(main())

Translating

import asyncbing
import asyncio

async def main():
    async with asyncbing.translate('key', region='useast') as t:
        resp = await t.translate('je veux traduire')
        print(resp.detected_language)
        print(resp.translated_output)
        print(resp.translated_language)

asyncio.run(main())

(Normally, searching isn't part of the Bing Api's. It's part of the Microsoft Cognitive Api's. Might as well rename this to asyncms, or asyncmsapi, no?)

Metadata

Release files for asyncbing 2.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asyncbing 2.0.3
File Size Uploaded Provenance
asyncbing-2.0.3.tar.gz 5.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for asyncbing 2.0.3
File Interpreter ABI Platform
asyncbing-2.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / asyncbing-2.0.3.tar.gz

Download URL asyncbing-2.0.3.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f16c662965a16d62dbe5f5fe6a35c04a8bedbe53ab040bcb53bff74bfa4ccf2a
BLAKE2b-256 checksum
How to use checksums
4b806230d026838dceb21b343928ca032ab81a5c59aad8794db1ffda2d5f6e57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

Release files / asyncbing-2.0.3-py3-none-any.whl

Download URL asyncbing-2.0.3-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f3089b006e50aa4075b893097bb34107d30eebcf7f7873c742269401d7a6bee
BLAKE2b-256 checksum
How to use checksums
606b9ced8e1b344ffc82f72a28b5c5c57521a5f15fd122b0a2642902685bcc2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

Security for asyncbing 2.0.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page