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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file beanita-0.1.0.tar.gz.

File metadata

  • Download URL: beanita-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.5 Linux/5.11.0-49-generic

File hashes

Hashes for beanita-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c4611be24eeeaefa8076c6d7e48773090d94f153d501f9141583bde5d7a41ece
MD5 55c357d8e4085f5afb66496e04bcea37
BLAKE2b-256 110523c8e632f275a8bef8239a7baffc3d1dae77d79ed639d8aab77675f35ef5

See more details on using hashes here.

File details

Details for the file beanita-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: beanita-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.5 Linux/5.11.0-49-generic

File hashes

Hashes for beanita-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f6d9a803383783b19a8488e9cb384409597e1fe5c84e9863e4f67a9d93f173c
MD5 ec26a1e2edddc9f50d71c3b8a3290b21
BLAKE2b-256 52a30dd78ff80f05c497dbe7e7559c16d5a6f253bc2af4acd8adf48036fcae67

See more details on using hashes here.

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