Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skelmis/alaric
A simplistic yet powerful asynchronous MongoDB query engine.
https://github.com/skelmis/alaric
Last synced: 2 months ago
JSON representation
A simplistic yet powerful asynchronous MongoDB query engine.
- Host: GitHub
- URL: https://github.com/skelmis/alaric
- Owner: Skelmis
- License: mit
- Created: 2022-04-29T07:55:34.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-12T12:36:57.000Z (3 months ago)
- Last Synced: 2024-11-01T05:32:58.590Z (2 months ago)
- Language: Python
- Homepage: https://alaric.readthedocs.io/
- Size: 136 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
Alaric
---Providing a beautiful way to interact with MongoDB asynchronously in Python.
---
### Example usage
A simplistic example, read more on the docs!
```python
from motor.motor_asyncio import AsyncIOMotorClientfrom 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](https://alaric.readthedocs.io/)
---
### Support
Want realtime help? Join the discord [here](https://discord.gg/BqPNSH2jPg).
---
### 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](https://github.com/sponsors/Skelmis)
---
#### Development
In order to make development easier, I recommend using [motor-stubs](https://github.com/Yian8068/motor-stubs)
if you're planning on doing more than Alaric has to offer. I.e. Using motor itself.