Skip to main content

Asynchronous wrapper for pymongo

Project description

async_pymongo

Asynchronous wrapper for pymongo
Comparison

Installing

pip3 install async_pymongo

Usage

from async_pymongo import AsyncClient

async def main():
	conn = AsyncClient("mongodb://...")
	db = conn["database_name"]
	col = db["collections_name"]
	await col.insert_one({"name": "John Smith", "age": 25})
	async for data in col.find({}):
		print(data["name"])

The rest function are same with pymongo but with await

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

async_pymongo-0.1.7.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

async_pymongo-0.1.7-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file async_pymongo-0.1.7.tar.gz.

File metadata

  • Download URL: async_pymongo-0.1.7.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.6

File hashes

Hashes for async_pymongo-0.1.7.tar.gz
Algorithm Hash digest
SHA256 443ef3c8eafe5fcf7051565bac6949331ad655dc09c1e0c29c33be585475b744
MD5 bf8db7f08a94abe63613c76932d7608f
BLAKE2b-256 96ab1c3ba3b4f6e4812d8e80789217390b512146a0e6891a637b487e43c467b4

See more details on using hashes here.

File details

Details for the file async_pymongo-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for async_pymongo-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 154104d57f239d2318b00728a054e5529a238242eed51422271d0fc023bd2550
MD5 1b0a0699967ebe18ca130f9ad1702357
BLAKE2b-256 c57da2c9bfd06fb48cf92c77b09251372f2f521a5b6aa6a9e3a03c1321bf4696

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