A simplistic yet powerful asynchronous MongoDB query engine.
Project description
Alaric
Providing a beautiful way to interact with MongoDB asynchronously in Python.
Example usage
A simplistic example, read more on the docs!
from motor.motor_asyncio import AsyncIOMotorClient
from alaric import Document
client = AsyncIOMotorClient("Mongo connection url")
database = client["my_database"]
config_document = Document(database, "config")
await config_document.insert({"_id": 1, "data": "hello world"})
...
data = await config_document.find({"_id": 1})
Docs can be found here
Support
Want realtime help? Join the discord here.
License
This project is licensed under the MIT license
Funding
Want a feature added quickly? Want me to help build your software using Alaric?
Sponsor me here
Development
In order to make development easier, I recommend using motor-stubs if you're planning on doing more than Alaric has to offer. I.e. Using motor itself.
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
alaric-1.4.0.tar.gz
(19.9 kB
view hashes)
Built Distribution
alaric-1.4.0-py3-none-any.whl
(33.2 kB
view hashes)