Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
717 changes: 717 additions & 0 deletions examples/ultimate_showcase.py

Large diffs are not rendered by default.

92 changes: 92 additions & 0 deletions uf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,61 @@
enable_history,
)

# Authentication
from uf.auth import (
User,
AuthBackend,
DictAuthBackend,
SessionManager,
ApiKey,
ApiKeyManager,
require_auth,
get_global_auth_backend,
)

# Caching
from uf.caching import (
CacheBackend,
MemoryCache,
DiskCache,
cached,
get_global_cache_backend,
)

# Background tasks
from uf.background import (
Task,
TaskStatus,
TaskQueue,
background,
get_global_task_queue,
)

# OpenAPI
from uf.openapi import (
generate_openapi_spec,
add_openapi_routes,
OpenAPIConfig,
)

# Webhooks
from uf.webhooks import (
WebhookEvent,
WebhookClient,
WebhookManager,
webhook,
get_global_webhook_manager,
)

# Themes
from uf.themes import (
Theme,
ThemeConfig,
get_theme,
LIGHT_THEME,
DARK_THEME,
)

__version__ = "0.0.1"

__all__ = [
Expand Down Expand Up @@ -220,4 +275,41 @@
"HistoryManager",
"get_global_history_manager",
"enable_history",
# Authentication
"User",
"AuthBackend",
"DictAuthBackend",
"SessionManager",
"ApiKey",
"ApiKeyManager",
"require_auth",
"get_global_auth_backend",
# Caching
"CacheBackend",
"MemoryCache",
"DiskCache",
"cached",
"get_global_cache_backend",
# Background
"Task",
"TaskStatus",
"TaskQueue",
"background",
"get_global_task_queue",
# OpenAPI
"generate_openapi_spec",
"add_openapi_routes",
"OpenAPIConfig",
# Webhooks
"WebhookEvent",
"WebhookClient",
"WebhookManager",
"webhook",
"get_global_webhook_manager",
# Themes
"Theme",
"ThemeConfig",
"get_theme",
"LIGHT_THEME",
"DARK_THEME",
]
Loading
Loading