Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alaric

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alaric

A simplistic yet powerful asynchronous MongoDB query engine.

  • 1.5.0
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc