Duck Framework DocumentationΒΆ
Python Web Framework | No JavaScript Required
Duck Framework is an open-source Python web framework and web server that replaces JavaScript frontends entirely.
Build real-time, reactive web applications with pure Python β no React, no Vue, no JavaScript framework needed. A modern, full-stack alternative to Django and Flask with a built-in WebSocket-driven UI engine.
Duck is not a small or mini web framework β it is a full-fledged Python framework that lets you build and deploy complete web applications without writing a single line of JavaScript.
GithubΒΆ
Homepage: https://github.com/duckframework/duck
Stay tuned for more updates as we continue to enhance Duckβs capabilities.
ContentsΒΆ
Table of Contents:
- π Getting Started with Duck
- 1. Install Duck
- 2. Create Your First Project
- 3. Run the Server
- 4. Understand the Project Structure
- web/main.py ββ¬ Entry Point (starts your app)
- web/urls.py ββ¬ URL Routing (maps URLs to logic)
- web/views.py ββ¬ Logic (what your app does)
- How Everything Connects
- Run Built-in Tests
- Requirements
- What Makes Duck Different?
- Final Thought
- π¨οΈ Build a Reactive Chat App in 5 Minutes
- π Project structure
- π Cached Views
- π Settings Configuration
- π₯οΈ Lively Component System
- What Is the Lively Component System?
- What Problem Does It Solve?
- How It Works (Simple Explanation)
- Why Itβs Powerful
- Beginner Mental Model
- Page Component Example
- Component Events
- Fast Navigation
- Pre-rendering Components
- Counter App
- Notes
- Components in Templates
- Custom Components
- Component Extensions
- Predefined Components
- Force Updates on Lively Components
- Handling Forms
- Component Lifecycle
- Other points to Note
- π Simple Counter App in Python
- π Component Caching Utilities
- π Templates
- π·οΈ Template Tags & Filters
- π Blueprints
- β΄οΈ Micro Applications
- β³ Task Automation
- π§ HTTP/2 and HTTPS
- π₯οΈ Web Server Gateway (WSGI)
- β‘ Asynchronous Server Gateway (ASGI)
- π WebSockets in Python β Real-Time Apps with Duck
- πBackground Thread & Asyncio Loop Managers
- π Request & Response
- π Sessions in Duck
- π‘οΈ Duck Middlewares
- π Duck Logging System
- ποΈοΈ Database
- π€ Django Integration with Duck
- π Sitemap
- π Deployment Guide
- π Duck System Monitor
- π Duck Service Management
- π Free SSL Certificate
- π Socket I/O (xsocket)
- π‘Duck Shortcuts
- β Duck Utilities
API Documentation: