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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 443ef3c8eafe5fcf7051565bac6949331ad655dc09c1e0c29c33be585475b744 |
|
MD5 | bf8db7f08a94abe63613c76932d7608f |
|
BLAKE2b-256 | 96ab1c3ba3b4f6e4812d8e80789217390b512146a0e6891a637b487e43c467b4 |
File details
Details for the file async_pymongo-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: async_pymongo-0.1.7-py3-none-any.whl
- Upload date:
- Size: 36.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 154104d57f239d2318b00728a054e5529a238242eed51422271d0fc023bd2550 |
|
MD5 | 1b0a0699967ebe18ca130f9ad1702357 |
|
BLAKE2b-256 | c57da2c9bfd06fb48cf92c77b09251372f2f521a5b6aa6a9e3a03c1321bf4696 |