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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4611be24eeeaefa8076c6d7e48773090d94f153d501f9141583bde5d7a41ece
|
|
| MD5 |
55c357d8e4085f5afb66496e04bcea37
|
|
| BLAKE2b-256 |
110523c8e632f275a8bef8239a7baffc3d1dae77d79ed639d8aab77675f35ef5
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f6d9a803383783b19a8488e9cb384409597e1fe5c84e9863e4f67a9d93f173c
|
|
| MD5 |
ec26a1e2edddc9f50d71c3b8a3290b21
|
|
| BLAKE2b-256 |
52a30dd78ff80f05c497dbe7e7559c16d5a6f253bc2af4acd8adf48036fcae67
|