Skip to content
Logo LogoDuck Framework
Explore the Main Site
⌘ K
Logo LogoDuck Framework
Explore the Main Site

Getting Started

  • Getting Started
  • Project Structure
  • Settings Configuration
  • Build a Reactive Chat App in 5 Minutes
  • Simple Counter App
  • Micro Applications

Command Line Interface

  • Duck Sync

Core Concepts

  • Templates
  • Template Tags & Filters
  • Lively UI
  • Blueprints
  • Duck Shortcuts
  • Duck Utilities

Reactivity & Real-Time

  • WebSockets Support
  • Socket I/O (xsocket)
  • Cached Views
  • Component Caching Utilities
  • Background Thread & Asyncio Loop Managers
  • Task Automations

Networking & Protocols

  • Web Server Gateway (WSGI)
  • Asynchronous Server Gateway (ASGI)
  • HTTP/2 and HTTPS
  • Free SSL Certificate

Request Handling & Auth

  • Request & Response
  • Duck Middlewares
  • Authentication
  • JWT in Duck
  • Sessions in Duck

Data Layer & Integrations

  • Database
  • Django Integration
  • Duck MCP (Model Context Protocol) Support
  • Sitemap

Deployment & Operations

  • Deployment Guide
  • Duck System Monitor
  • Duck Dashboard
  • Duck Service Management
  • Duck Logging System

Reference

  • AI Agent Guidelines
    • Agents.md
    • General Code Style Guide
    • Duck Project Guide
    • HTML Components Guide
    • Security Guide
  • Changelog

API Documentation

  • API Reference
    • duck
Duck Framework
/
API Reference
/
duck
/
duck.utils

duck.utils¶

Provide Duck utilities, functions and useful tools.

Subpackages¶

  • duck.utils.asyncio
    • duck.utils.asyncio.eventloop
    • Asyncio Loop Manager With Thread-Based Context Propagation
  • duck.utils.caching
    • duck.utils.caching.encrypted
  • duck.utils.email
    • duck.utils.email.collection
    • Email collection utility.
  • duck.utils.fileio
    • duck.utils.fileio.test_fileio
  • duck.utils.multiprocessing
    • duck.utils.multiprocessing.process_manager
    • duck.utils.multiprocessing.processpool
    • Centralized Process Manager
    • duck.utils.multiprocessing.proxy
  • duck.utils.threading
    • duck.utils.threading.patch
    • duck.utils.threading.thread_manager
    • duck.utils.threading.threadpool
    • Centralized Thread Manager With Hierarchical Context Propagation
  • duck.utils.xsocket
    • duck.utils.xsocket.io

Submodules¶

  • duck.utils.ansi
  • duck.utils.callabletools
  • duck.utils.codesandbox
  • duck.utils.cookie_consent
  • duck.utils.dateutils
  • duck.utils.encrypt
  • duck.utils.eventlist
  • duck.utils.extraction
  • duck.utils.file
  • duck.utils.filelock
  • duck.utils.headers
  • duck.utils.importer
  • duck.utils.ipc
  • duck.utils.lazy
  • duck.utils.net
  • duck.utils.object_from_id
  • duck.utils.object_mapping
  • duck.utils.path
  • duck.utils.performance
  • duck.utils.platform
  • duck.utils.port_registry
  • duck.utils.rand_domain
  • duck.utils.safe_compare
  • duck.utils.safemarkup
  • duck.utils.slug
  • duck.utils.ssl
  • duck.utils.string
  • duck.utils.temp
  • duck.utils.timer
  • duck.utils.urlcrack
  • duck.utils.urldecode
  • duck.utils.validation
  • duck.utils.wildcard
duck.tests.test_socket_io
duck.utils.asyncio

On this page

  • Subpackages
  • Submodules

© 2026, Duck Framework Built with Sphinx 8.2.3