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.10.tar.gz
(24.7 kB
view details)
Built Distribution
File details
Details for the file async_pymongo-0.1.10.tar.gz
.
File metadata
- Download URL: async_pymongo-0.1.10.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6287a74fbb238a561eff66e79052a1d698e8135f06b64b2b4fcffe085ae38924 |
|
MD5 | 60b444a1db745fc6e65f4a1902019a4f |
|
BLAKE2b-256 | 3f25d561d3c71372366af872f5ee3c87138ef6bd15310be37ce7c0879d56b376 |
File details
Details for the file async_pymongo-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: async_pymongo-0.1.10-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 | d8122c6570df8cb50158d8dced9ae844029208bf8127eadc10c2a643fd83a77c |
|
MD5 | 5087447cc2bca024eb11fbdba28dda26 |
|
BLAKE2b-256 | 73bc623360153bfd9aa56014656c039a6a9534823ccea79eb97ee4532e58540e |