Buckets:

download
raw
558 Bytes
import os
from fastapi import FastAPI
from easyauth.server import EasyAuthServer
server = FastAPI()
AUTH_SECRET = os.environ.get("AUTH_SECRET")
ADMIN_TITLE = os.environ.get("ADMIN_TITLE")
ADMIN_PREFIX = os.environ.get("ADMIN_PREFIX")
if not AUTH_SECRET:
AUTH_SECRET = "abcd1234"
if not ADMIN_TITLE:
ADMIN_TITLE = "EasyAuth - Example"
if not ADMIN_PREFIX:
ADMIN_PREFIX = "/admin"
server.auth = EasyAuthServer.create(
server,
"/auth/token",
auth_secret=AUTH_SECRET,
admin_title=ADMIN_TITLE,
admin_prefix=ADMIN_PREFIX,
)

Xet Storage Details

Size:
558 Bytes
·
Xet hash:
48d0ba523787171fdbcdc48d542d6537becd6f5649daff64df98df8e640d2aff

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