Fork of asynchronous wrapper for pymongo https://github.com/Mayuri-Chan/async_pymongo
Go to file
dependabot[bot] cc10a6eb75
build(deps): bump pymongo from 4.4.0 to 4.4.1
Bumps [pymongo](https://github.com/mongodb/mongo-python-driver) from 4.4.0 to 4.4.1.
- [Release notes](https://github.com/mongodb/mongo-python-driver/releases)
- [Changelog](https://github.com/mongodb/mongo-python-driver/blob/4.4.1/doc/changelog.rst)
- [Commits](https://github.com/mongodb/mongo-python-driver/compare/4.4.0...4.4.1)

---
updated-dependencies:
- dependency-name: pymongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-13 22:18:55 +00:00
.github Create FUNDING.yml 2023-06-24 18:58:09 +07:00
async_pymongo Initial import from https://github.com/userbotindo/Anjani/tree/staging/anjani/util/db 2023-05-19 19:54:16 +07:00
tests Initial import from https://github.com/userbotindo/Anjani/tree/staging/anjani/util/db 2023-05-19 19:54:16 +07:00
.gitignore Add comparison with motor 2023-06-27 01:05:49 +07:00
LICENSE Initial import from https://github.com/userbotindo/Anjani/tree/staging/anjani/util/db 2023-05-19 19:54:16 +07:00
README.md Add comparison with motor 2023-06-27 01:05:49 +07:00
comparison.png Add comparison with motor 2023-06-27 01:05:49 +07:00
poetry.lock build(deps): bump pymongo from 4.4.0 to 4.4.1 2023-07-13 22:18:55 +00:00
pyproject.toml async_pymongo: Bump version to 0.1.3 2023-06-22 11:46:06 +07:00

README.md

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