Add enterprise features: auth, caching, background tasks, OpenAPI, we…#2
Merged
thorwhalen merged 1 commit intomasterfrom Nov 21, 2025
Conversation
…bhooks, and themes This commit completes the uf package with production-ready enterprise features: New Modules (6): - uf/auth.py: Full authentication system with users, sessions, API keys, and role-based access control - uf/caching.py: Multi-backend caching (memory, disk) with TTL and LRU eviction - uf/background.py: Task queue system with worker threads, status tracking, and periodic tasks - uf/openapi.py: OpenAPI 3.0 spec generation with Swagger UI and ReDoc integration - uf/webhooks.py: HTTP callback system for function completion events - uf/themes.py: Complete theming system with 4 built-in themes and dark mode support Features: - Authentication: Password hashing (PBKDF2-HMAC-SHA256), session management, API keys - Caching: @cached decorator, memory/disk backends, statistics - Background: @background decorator, TaskQueue with workers, PeriodicTask scheduler - OpenAPI: Auto-generated docs, /docs (Swagger), /redoc, /openapi.json routes - Webhooks: @webhook decorator, retry logic, event filtering - Themes: LIGHT_THEME, DARK_THEME, OCEAN_THEME, SUNSET_THEME, toggle support Updated: - uf/__init__.py: Export 115+ functions/classes from 19 modules New Examples: - examples/ultimate_showcase.py: 550+ line comprehensive demo of ALL features * Async functions with timeout/retry * Pydantic model integration * Result rendering (tables, charts) * Authentication (3 test users) * Background tasks * Caching * OpenAPI/Swagger docs * Webhooks * Field dependencies * Rate limiting * Function grouping * Theme customization The uf package is now feature-complete with everything needed for production web UIs from Python functions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…bhooks, and themes
This commit completes the uf package with production-ready enterprise features:
New Modules (6):
Features:
Updated:
New Examples:
The uf package is now feature-complete with everything needed for production web UIs from Python functions.