Buckets:

download
raw
642 Bytes
"""
Used for serving the example session app, so we can manually test it.
Run it from the root of the project using `python -m tests.serve`.
"""
import os
import uvicorn
from .session_auth.test_session import ( # type: ignore
APP,
BaseUser,
SessionsBase,
)
if __name__ == "__main__":
os.environ["PICCOLO_CONF"] = "tests.sqlite_conf"
BaseUser.create_table(if_not_exists=True).run_sync()
SessionsBase.create_table(if_not_exists=True).run_sync()
if not BaseUser.exists().where(BaseUser.username == "Bob"):
BaseUser(username="bob", password="bob123").save().run_sync()
uvicorn.run(APP, port=8999)

Xet Storage Details

Size:
642 Bytes
·
Xet hash:
21fc7098dfa1ae5b4ed40c96e7f9ff7fe6c13cf1f51e8d718b5ff917e6a5e1d8

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