async-pymongo (0.1.4)

Published 2023-08-14 11:47:30 +03:00 by profitroll in profitroll/async_pymongo

Installation

pip install --index-url  async-pymongo

About this package

Asynchronous wrapper for pymongo

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

Requirements

Requires Python: >=3.8,<4.0
Details
PyPI
2023-08-14 11:47:30 +03:00
102
Adek Maulana
GPL-3.0-or-later
60 KiB
Assets (2)
Versions (1) View all
0.1.4 2023-08-14