
Asynchronous MongoDB Made Easy
asyncmongo is a Python library for working with MongoDB asynchronously. I’m building this project to learn more about how database drivers work and to explore what goes into creating one. It’s a mix of learning and coding, so things might evolve as I figure things out!
For detailed documentation, visit the asyncmongo documentation.
Before getting started with asyncmongo, ensure your runtime environment meets the following requirements:
- Programming Language: Python
- Package Manager: Poetry
Install asyncmongo using one of the following methods:
Build from source:
- Clone the asyncmongo repository:
git clone https://github.com/Roshan-R/asyncmongo
- Navigate to the project directory:
cd asyncmongo
- Install the project dependencies:
poetry install
Run the test suite using the following command:
Using poetry
poetry run pytest
-
find
-
find_one
-
insert_one
-
Basic Connection
:Set up a basic connection to a MongoDB instance. -
Authentication
:- Added support for SCRAM-SHA-256 authentication scheme.
- Add support for additional authentication mechanisms (e.g LDAP).
-
Connection Pooling
: Develop connection pooling for better performance and scalability. -
Testing and Benchmarks
: Write unit tests and benchmarks.- Write unit tests for connection handling and CRUD operations.
- Create benchmarks to measure and optimize performance.
-
Cython
: Rewrite core components in Cython to improve performance, inspired by asyncpg’s implementation.

Leave a Reply