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.11.tar.gz
(24.8 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80b49e98b779700c94ad94426030db5bce83694f937a8c1c6ca70950c68ed4bb |
|
MD5 | 29618ee5c8eb9bbfa7c309b737a7a461 |
|
BLAKE2b-256 | 83ce18426dad1a111d3b8f7d8d23ece66a6329a47396bfb47d7daedda0439eb1 |
File details
Details for the file async_pymongo-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: async_pymongo-0.1.11-py3-none-any.whl
- Upload date:
- Size: 36.2 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 | f1fefe556204b3eda7a4f93504dd524dae2f37faa4f42e98efbee2820efbedf1 |
|
MD5 | db838cfd568ee0290a79ef42b3ddfefa |
|
BLAKE2b-256 | 3fdb58c1bd8c51861113c56d7fd280edf05b9146c5468cf012cd979d28e7bd6d |