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.11.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

async_pymongo-0.1.11-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_pymongo-0.1.11.tar.gz
  • Upload date:
  • Size: 24.8 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.11.tar.gz
Algorithm Hash digest
SHA256 80b49e98b779700c94ad94426030db5bce83694f937a8c1c6ca70950c68ed4bb
MD5 29618ee5c8eb9bbfa7c309b737a7a461
BLAKE2b-256 83ce18426dad1a111d3b8f7d8d23ece66a6329a47396bfb47d7daedda0439eb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for async_pymongo-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 f1fefe556204b3eda7a4f93504dd524dae2f37faa4f42e98efbee2820efbedf1
MD5 db838cfd568ee0290a79ef42b3ddfefa
BLAKE2b-256 3fdb58c1bd8c51861113c56d7fd280edf05b9146c5468cf012cd979d28e7bd6d

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