debconf - pydoc - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


debconf
NAME DESCRIPTION CLASSES FUNCTIONS DATA FILE
Help on module debconf:

NAME
    debconf

DESCRIPTION
    # Copyright:
    #   Moshe Zadka (c) 2002
    #   Canonical Ltd. (c) 2005 (DebconfCommunicator)
    #
    # Redistribution and use in source and binary forms, with or without
    # modification, are permitted provided that the following conditions
    # are met:
    # 1. Redistributions of source code must retain the above copyright
    #    notice, this list of conditions and the following disclaimer.
    # 2. Redistributions in binary form must reproduce the above copyright
    #    notice, this list of conditions and the following disclaimer in the
    #    documentation and/or other materials provided with the distribution.
    #
    # THIS SOFTWARE IS PROVIDED BY AUTHORS AND CONTRIBUTORS ``AS IS'' AND
    # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    # ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
    # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    # SUCH DAMAGE.

CLASSES
    builtins.Exception(builtins.BaseException)
        DebconfError
    builtins.object
        Debconf
            DebconfCommunicator(Debconf, builtins.object)

    class Debconf(builtins.object)
     |  Debconf(title=None, read=None, write=None, run_frontend=False)
     |
     |  A class that speaks the debconf protocol.
     |
     |  The simplest way to use this is as a context manager:
     |
     |      import debconf
     |
     |      with debconf.Debconf(run_frontend=True) as db:
     |          print(db.get('debconf/frontend'))
     |
     |  Note that this will send the STOP command on exiting the context
     |  manager, so you shouldn't expect to be able to use the same frontend
     |  again after this.  If you need to do that, then you should instantiate
     |  the class directly instead:
     |
     |      import debconf
     |
     |      db = debconf.Debconf(run_frontend=True)
     |      print(db.get('debconf/frontend'))
     |
     |  Methods defined here:
     |
     |  __enter__(self)
     |
     |  __exit__(self, exc_type, exc_value, exc_tb)
     |
     |  __init__(self, title=None, read=None, write=None, run_frontend=False)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  command(self, command, *params)
     |
     |  forceInput(self, priority, question)
     |
     |  getBoolean(self, question)
     |
     |  getString(self, question)
     |
     |  setCommand(self, command)
     |
     |  setUp(self, title)
     |
     |  stop(self)
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __dict__
     |      dictionary for instance variables (if defined)
     |
     |  __weakref__
     |      list of weak references to the object (if defined)

    class DebconfCommunicator(Debconf, builtins.object)
     |  DebconfCommunicator(owner, title=None, cloexec=False)
     |
     |  Method resolution order:
     |      DebconfCommunicator
     |      Debconf
     |      builtins.object
     |
     |  Methods defined here:
     |
     |  __del__(self)
     |      # Don't rely on this; call .shutdown() explicitly.
     |
     |  __init__(self, owner, title=None, cloexec=False)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  shutdown(self)
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from Debconf:
     |
     |  __enter__(self)
     |
     |  __exit__(self, exc_type, exc_value, exc_tb)
     |
     |  command(self, command, *params)
     |
     |  forceInput(self, priority, question)
     |
     |  getBoolean(self, question)
     |
     |  getString(self, question)
     |
     |  setCommand(self, command)
     |
     |  setUp(self, title)
     |
     |  stop(self)
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from Debconf:
     |
     |  __dict__
     |      dictionary for instance variables (if defined)
     |
     |  __weakref__
     |      list of weak references to the object (if defined)

    class DebconfError(builtins.Exception)
     |  Method resolution order:
     |      DebconfError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors defined here:
     |
     |  __weakref__
     |      list of weak references to the object (if defined)
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) from builtins.type
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

FUNCTIONS
    runFrontEnd()

DATA
    CRITICAL = 'critical'
    HIGH = 'high'
    LOW = 'low'
    MEDIUM = 'medium'
    print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0)...

FILE
    /usr/lib/python3/dist-packages/debconf.py



Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:15 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!

^_back to top