Skip to content

Local MongoDB-like database prepared to work with Beanie ODM

License

Notifications You must be signed in to change notification settings

roman-right/beanita

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Install

pip install beanita

or

poetry add beanita

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

About

Local MongoDB-like database prepared to work with Beanie ODM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages