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.4.tar.gz
(24.5 kB
view hashes)
Built Distribution
Close
Hashes for async_pymongo-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1ea4bd1dd9acb3f879ca32f4334b80d087533f81fa6ce0950915df3a1ce4597 |
|
MD5 | 52083d47f08253713ecff181930e8a5f |
|
BLAKE2b-256 | 98981c25997778eff635514a21c8d6728e8216b0ab4c000f492f6e335a8bad4d |