distro_info - pydoc - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


distro_info
NAME CLASSES FUNCTIONS FILE
Help on module distro_info:

NAME
    distro_info - provides information about Ubuntu's and Debian's distributions

CLASSES
    builtins.Exception(builtins.BaseException)
        DistroDataOutdated
    builtins.object
        DistroInfo
            DebianDistroInfo
            UbuntuDistroInfo
        DistroRelease

    class DebianDistroInfo(DistroInfo)
     |  provides information about Debian's distributions
     |
     |  Method resolution order:
     |      DebianDistroInfo
     |      DistroInfo
     |      builtins.object
     |
     |  Methods defined here:
     |
     |  __init__(self)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  codename(self, release, date=None, default=None)
     |      Map 'unstable', 'testing', etc. to their codenames.
     |
     |  devel(self, date=None, result='codename')
     |      Get latest development distribution based on the given date.
     |
     |  elts_supported(self, date=None, result='codename')
     |      Get list of all Extended LTS supported Debian distributions based on
     |      the given date.
     |
     |  lts_supported(self, date=None, result='codename')
     |      Get list of all LTS supported Debian distributions based on the given
     |      date.
     |
     |  old(self, date=None, result='codename')
     |      Get old (stable) Debian distribution based on the given date.
     |
     |  supported(self, date=None, result='codename')
     |      Get list of all supported Debian distributions based on the given
     |      date.
     |
     |  testing(self, date=None, result='codename')
     |      Get latest testing Debian distribution based on the given date.
     |
     |  valid(self, codename)
     |      Check if the given codename is known.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from DistroInfo:
     |
     |  get_all(self, result='codename')
     |      List all known distributions.
     |
     |  stable(self, date=None, result='codename')
     |      Get latest stable distribution based on the given date.
     |
     |  unsupported(self, date=None, result='codename')
     |      Get list of all unsupported distributions based on the given date.
     |
     |  version(self, name, default=None)
     |      Map codename or series to version
     |
     |  ----------------------------------------------------------------------
     |  Readonly properties inherited from DistroInfo:
     |
     |  all
     |      List codenames of all known distributions.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from DistroInfo:
     |
     |  __dict__
     |      dictionary for instance variables (if defined)
     |
     |  __weakref__
     |      list of weak references to the object (if defined)

    class DistroDataOutdated(builtins.Exception)
     |  Distribution data outdated.
     |
     |  Method resolution order:
     |      DistroDataOutdated
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Methods defined here:
     |
     |  __init__(self)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __weakref__
     |      list of weak references to the object (if defined)
     |
     |  ----------------------------------------------------------------------
     |  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

    class DistroInfo(builtins.object)
     |  DistroInfo(distro)
     |
     |  Base class for distribution information.
     |  Use DebianDistroInfo or UbuntuDistroInfo instead of using this directly.
     |
     |  Methods defined here:
     |
     |  __init__(self, distro)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  codename(self, release, date=None, default=None)
     |      Map codename aliases to the codename they describe.
     |
     |  devel(self, date=None, result='codename')
     |      Get latest development distribution based on the given date.
     |
     |  get_all(self, result='codename')
     |      List all known distributions.
     |
     |  stable(self, date=None, result='codename')
     |      Get latest stable distribution based on the given date.
     |
     |  supported(self, date=None, result=None)
     |      Get list of all supported distributions based on the given date.
     |
     |  unsupported(self, date=None, result='codename')
     |      Get list of all unsupported distributions based on the given date.
     |
     |  valid(self, codename)
     |      Check if the given codename is known.
     |
     |  version(self, name, default=None)
     |      Map codename or series to version
     |
     |  ----------------------------------------------------------------------
     |  Readonly properties defined here:
     |
     |  all
     |      List codenames of all known distributions.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __dict__
     |      dictionary for instance variables (if defined)
     |
     |  __weakref__
     |      list of weak references to the object (if defined)

    class DistroRelease(builtins.object)
     |  DistroRelease(version, codename, series, created=None, release=None, eol=None, eol_esm=None, eol_lts=None, eol_elts=None, eol_server=None)
     |
     |  Represents a distributions release
     |
     |  Methods defined here:
     |
     |  __init__(self, version, codename, series, created=None, release=None, eol=None, eol_esm=None, eol_lts=None, eol_elts=None, eol_server=None)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  is_supported(self, date)
     |      Check whether this release is supported on the given date.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __dict__
     |      dictionary for instance variables (if defined)
     |
     |  __weakref__
     |      list of weak references to the object (if defined)

    class UbuntuDistroInfo(DistroInfo)
     |  provides information about Ubuntu's distributions
     |
     |  Method resolution order:
     |      UbuntuDistroInfo
     |      DistroInfo
     |      builtins.object
     |
     |  Methods defined here:
     |
     |  __init__(self)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  is_lts(self, codename)
     |      Is codename an LTS release?
     |
     |  lts(self, date=None, result='codename')
     |      Get latest long term support (LTS) Ubuntu distribution based on the
     |      given date.
     |
     |  supported(self, date=None, result='codename')
     |      Get list of all supported Ubuntu distributions based on the given
     |      date.
     |
     |  supported_esm(self, date=None, result='codename')
     |      Get list of all ESM supported Ubuntu distributions based on the
     |      given date.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from DistroInfo:
     |
     |  codename(self, release, date=None, default=None)
     |      Map codename aliases to the codename they describe.
     |
     |  devel(self, date=None, result='codename')
     |      Get latest development distribution based on the given date.
     |
     |  get_all(self, result='codename')
     |      List all known distributions.
     |
     |  stable(self, date=None, result='codename')
     |      Get latest stable distribution based on the given date.
     |
     |  unsupported(self, date=None, result='codename')
     |      Get list of all unsupported distributions based on the given date.
     |
     |  valid(self, codename)
     |      Check if the given codename is known.
     |
     |  version(self, name, default=None)
     |      Map codename or series to version
     |
     |  ----------------------------------------------------------------------
     |  Readonly properties inherited from DistroInfo:
     |
     |  all
     |      List codenames of all known distributions.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from DistroInfo:
     |
     |  __dict__
     |      dictionary for instance variables (if defined)
     |
     |  __weakref__
     |      list of weak references to the object (if defined)

FUNCTIONS
    convert_date(string)
        Convert a date string in ISO 8601 into a datetime object.

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



Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:16 @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