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.cli

duck.cli¶

Subpackages¶

  • duck.cli.commands
    • duck.cli.commands.integration
      • duck.cli.commands.integration._django_settings
      • duck.cli.commands.integration._django_urls
      • Append new URL patterns
    • duck.cli.commands.sync
      • duck.cli.commands.sync.backends
      • duck.cli.commands.sync.config
      • duck.cli.commands.sync.exceptions
      • duck.cli.commands.sync.platform_utils
      • duck.cli.commands.sync.registry
      • duck.cli.commands.sync.sync
    • duck.cli.commands.collectstatic
    • duck.cli.commands.django
    • duck.cli.commands.logs
    • duck.cli.commands.makeblueprint
    • duck.cli.commands.makeproject
    • duck.cli.commands.monitor
    • duck.cli.commands.runserver
    • duck.cli.commands.runtests
    • duck.cli.commands.service
    • duck.cli.commands.sitemap
    • duck.cli.commands.ssl_gen

Package Contents¶

Functions¶

add_to_pythonpath

Retrieves the current PYTHONPATH environment variable and returns it.

API¶

duck.cli.add_to_pythonpath(path: str)[source]¶

Retrieves the current PYTHONPATH environment variable and returns it.

Parameters:

path – The directory to check in the current PYTHONPATH.

Returns:

The current PYTHONPATH value.

Return type:

str

duck.backend.django.views
duck.cli.commands

On this page

  • Subpackages
  • Package Contents
    • Functions
    • API
      • add_to_pythonpath()

© 2026, Duck Framework Built with Sphinx 8.2.3