{
    "mode": "pydoc",
    "parameter": "debconf",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/debconf/json",
    "generated": "2026-06-02T15:09:59Z",
    "sections": {
        "NAME": {
            "content": "debconf\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "# Copyright:\n#   Moshe Zadka (c) 2002\n#   Canonical Ltd. (c) 2005 (DebconfCommunicator)\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n# 1. Redistributions of source code must retain the above copyright\n#    notice, this list of conditions and the following disclaimer.\n# 2. Redistributions in binary form must reproduce the above copyright\n#    notice, this list of conditions and the following disclaimer in the\n#    documentation and/or other materials provided with the distribution.\n#\n# THIS SOFTWARE IS PROVIDED BY AUTHORS AND CONTRIBUTORS ``AS IS'' AND\n# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE\n# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n# SUCH DAMAGE.\n",
            "subsections": []
        },
        "CLASSES": {
            "content": "builtins.Exception(builtins.BaseException)\nDebconfError\nbuiltins.object\nDebconf\nDebconfCommunicator(Debconf, builtins.object)\n",
            "subsections": [
                {
                    "name": "class Debconf",
                    "content": "|  Debconf(title=None, read=None, write=None, runfrontend=False)\n|\n|  A class that speaks the debconf protocol.\n|\n|  The simplest way to use this is as a context manager:\n|\n|      import debconf\n|\n|      with debconf.Debconf(runfrontend=True) as db:\n|          print(db.get('debconf/frontend'))\n|\n|  Note that this will send the STOP command on exiting the context\n|  manager, so you shouldn't expect to be able to use the same frontend\n|  again after this.  If you need to do that, then you should instantiate\n|  the class directly instead:\n|\n|      import debconf\n|\n|      db = debconf.Debconf(runfrontend=True)\n|      print(db.get('debconf/frontend'))\n|\n|  Methods defined here:\n|\n|  enter(self)\n|\n|  exit(self, exctype, excvalue, exctb)\n|\n|  init(self, title=None, read=None, write=None, runfrontend=False)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  command(self, command, *params)\n|\n|  forceInput(self, priority, question)\n|\n|  getBoolean(self, question)\n|\n|  getString(self, question)\n|\n|  setCommand(self, command)\n|\n|  setUp(self, title)\n|\n|  stop(self)\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n"
                },
                {
                    "name": "class DebconfCommunicator",
                    "content": "|  DebconfCommunicator(owner, title=None, cloexec=False)\n|\n|  Method resolution order:\n|      DebconfCommunicator\n|      Debconf\n|      builtins.object\n|\n|  Methods defined here:\n|\n|  del(self)\n|      # Don't rely on this; call .shutdown() explicitly.\n|\n|  init(self, owner, title=None, cloexec=False)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  shutdown(self)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from Debconf:\n|\n|  enter(self)\n|\n|  exit(self, exctype, excvalue, exctb)\n|\n|  command(self, command, *params)\n|\n|  forceInput(self, priority, question)\n|\n|  getBoolean(self, question)\n|\n|  getString(self, question)\n|\n|  setCommand(self, command)\n|\n|  setUp(self, title)\n|\n|  stop(self)\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from Debconf:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n"
                },
                {
                    "name": "class DebconfError",
                    "content": "|  Method resolution order:\n|      DebconfError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors defined here:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                }
            ]
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "runFrontEnd",
                    "content": ""
                }
            ]
        },
        "DATA": {
            "content": "CRITICAL = 'critical'\nHIGH = 'high'\nLOW = 'low'\nMEDIUM = 'medium'\nprintfunction = Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0)...\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3/dist-packages/debconf.py\n\n",
            "subsections": []
        }
    },
    "summary": "debconf",
    "flags": [],
    "examples": [],
    "see_also": []
}