Fork of asynchronous wrapper for pymongo
https://github.com/Mayuri-Chan/async_pymongo
ac80986129
Bumps [pymongo](https://github.com/mongodb/mongo-python-driver) from 4.3.3 to 4.4.0. - [Release notes](https://github.com/mongodb/mongo-python-driver/releases) - [Changelog](https://github.com/mongodb/mongo-python-driver/blob/master/doc/changelog.rst) - [Commits](https://github.com/mongodb/mongo-python-driver/compare/4.3.3...4.4.0) --- updated-dependencies: - dependency-name: pymongo dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github | ||
async_pymongo | ||
tests | ||
.gitignore | ||
LICENSE | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
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