Skip to main content

Local MongoDB-like database, based on Mongita and prepared to work with Beanie ODM

Project description

Beanita

Local MongoDB-like database, based on Mongita and prepared to work with Beanie ODM

I highly recommend using it only for experiment purposes. It is safer to use a real MongoDB database and for testing, and for production.

Init

from beanie import init_beanie, Document
from beanita import Client


class Sample(Document):
    name: str


async def init_database():
    cli = Client("LOCAL_DIRECTORY")
    db = cli["DATABASE_NAME"]
    await init_beanie(
        database=db,
        document_models=[Sample],
    )

Not supported

  • Links
  • Aggregations
  • Union Documents
  • other features, that were not implemented in Mongita

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beanita-0.1.0.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

beanita-0.1.0-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page