Buckets:

download
raw
437 Bytes
import motor.motor_asyncio
from beanie import Document
from fastapi_users.db import BeanieBaseUser
from fastapi_users_db_beanie import BeanieUserDatabase
DATABASE_URL = "mongodb://localhost:27017"
client = motor.motor_asyncio.AsyncIOMotorClient(
DATABASE_URL, uuidRepresentation="standard"
)
db = client["database_name"]
class User(BeanieBaseUser, Document):
pass
async def get_user_db():
yield BeanieUserDatabase(User)

Xet Storage Details

Size:
437 Bytes
·
Xet hash:
ae33bd72d27208cec63ea098a481ca2fb72102d8646f31df4b5dee2e41b1a6f1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.