Asynchronous wrapper for pymongo
Project description
async_pymongo
Asynchronous wrapper for pymongo
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.3.tar.gz
(24.4 kB
view details)
Built Distribution
File details
Details for the file async_pymongo-0.1.3.tar.gz
.
File metadata
- Download URL: async_pymongo-0.1.3.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/6.3.8-x64v1-Mayuri-xanmod1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82dd06b0916eb3a40346d1e0424c82a5839bc1a32c55b02cce893e93e2ba0a53 |
|
MD5 | d17c998a6446b15a40e66993df592f52 |
|
BLAKE2b-256 | a0202eac3ce8938cf66ab398379e2c94a050afd2ab0798929d44259ce9b34d20 |
File details
Details for the file async_pymongo-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: async_pymongo-0.1.3-py3-none-any.whl
- Upload date:
- Size: 36.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/6.3.8-x64v1-Mayuri-xanmod1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a9805a05a325bf5ce9da5f997ebdd92a38b8bff173f8f5dac8457c77d7180a8 |
|
MD5 | 9c1d393ec7ad98e9f965aef018625994 |
|
BLAKE2b-256 | fbc75537937a279b5c4065ece80c1b388d88cb752a498445bf42c439474ba24c |