{
    "mode": "pydoc",
    "parameter": "distro_info",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/distro_info/json",
    "generated": "2026-06-02T15:57:10Z",
    "sections": {
        "NAME": {
            "content": "distroinfo - provides information about Ubuntu's and Debian's distributions\n",
            "subsections": []
        },
        "CLASSES": {
            "content": "builtins.Exception(builtins.BaseException)\nDistroDataOutdated\nbuiltins.object\nDistroInfo\nDebianDistroInfo\nUbuntuDistroInfo\nDistroRelease\n",
            "subsections": [
                {
                    "name": "class DebianDistroInfo",
                    "content": "|  provides information about Debian's distributions\n|\n|  Method resolution order:\n|      DebianDistroInfo\n|      DistroInfo\n|      builtins.object\n|\n|  Methods defined here:\n|\n|  init(self)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  codename(self, release, date=None, default=None)\n|      Map 'unstable', 'testing', etc. to their codenames.\n|\n|  devel(self, date=None, result='codename')\n|      Get latest development distribution based on the given date.\n|\n|  eltssupported(self, date=None, result='codename')\n|      Get list of all Extended LTS supported Debian distributions based on\n|      the given date.\n|\n|  ltssupported(self, date=None, result='codename')\n|      Get list of all LTS supported Debian distributions based on the given\n|      date.\n|\n|  old(self, date=None, result='codename')\n|      Get old (stable) Debian distribution based on the given date.\n|\n|  supported(self, date=None, result='codename')\n|      Get list of all supported Debian distributions based on the given\n|      date.\n|\n|  testing(self, date=None, result='codename')\n|      Get latest testing Debian distribution based on the given date.\n|\n|  valid(self, codename)\n|      Check if the given codename is known.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from DistroInfo:\n|\n|  getall(self, result='codename')\n|      List all known distributions.\n|\n|  stable(self, date=None, result='codename')\n|      Get latest stable distribution based on the given date.\n|\n|  unsupported(self, date=None, result='codename')\n|      Get list of all unsupported distributions based on the given date.\n|\n|  version(self, name, default=None)\n|      Map codename or series to version\n|\n|  ----------------------------------------------------------------------\n|  Readonly properties inherited from DistroInfo:\n|\n|  all\n|      List codenames of all known distributions.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from DistroInfo:\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 DistroDataOutdated",
                    "content": "|  Distribution data outdated.\n|\n|  Method resolution order:\n|      DistroDataOutdated\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Methods defined here:\n|\n|  init(self)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  weakref\n|      list of weak references to the object (if defined)\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"
                },
                {
                    "name": "class DistroInfo",
                    "content": "|  DistroInfo(distro)\n|\n|  Base class for distribution information.\n|  Use DebianDistroInfo or UbuntuDistroInfo instead of using this directly.\n|\n|  Methods defined here:\n|\n|  init(self, distro)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  codename(self, release, date=None, default=None)\n|      Map codename aliases to the codename they describe.\n|\n|  devel(self, date=None, result='codename')\n|      Get latest development distribution based on the given date.\n|\n|  getall(self, result='codename')\n|      List all known distributions.\n|\n|  stable(self, date=None, result='codename')\n|      Get latest stable distribution based on the given date.\n|\n|  supported(self, date=None, result=None)\n|      Get list of all supported distributions based on the given date.\n|\n|  unsupported(self, date=None, result='codename')\n|      Get list of all unsupported distributions based on the given date.\n|\n|  valid(self, codename)\n|      Check if the given codename is known.\n|\n|  version(self, name, default=None)\n|      Map codename or series to version\n|\n|  ----------------------------------------------------------------------\n|  Readonly properties defined here:\n|\n|  all\n|      List codenames of all known distributions.\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 DistroRelease",
                    "content": "|  DistroRelease(version, codename, series, created=None, release=None, eol=None, eolesm=None, eollts=None, eolelts=None, eolserver=None)\n|\n|  Represents a distributions release\n|\n|  Methods defined here:\n|\n|  init(self, version, codename, series, created=None, release=None, eol=None, eolesm=None, eollts=None, eolelts=None, eolserver=None)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  issupported(self, date)\n|      Check whether this release is supported on the given date.\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 UbuntuDistroInfo",
                    "content": "|  provides information about Ubuntu's distributions\n|\n|  Method resolution order:\n|      UbuntuDistroInfo\n|      DistroInfo\n|      builtins.object\n|\n|  Methods defined here:\n|\n|  init(self)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  islts(self, codename)\n|      Is codename an LTS release?\n|\n|  lts(self, date=None, result='codename')\n|      Get latest long term support (LTS) Ubuntu distribution based on the\n|      given date.\n|\n|  supported(self, date=None, result='codename')\n|      Get list of all supported Ubuntu distributions based on the given\n|      date.\n|\n|  supportedesm(self, date=None, result='codename')\n|      Get list of all ESM supported Ubuntu distributions based on the\n|      given date.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from DistroInfo:\n|\n|  codename(self, release, date=None, default=None)\n|      Map codename aliases to the codename they describe.\n|\n|  devel(self, date=None, result='codename')\n|      Get latest development distribution based on the given date.\n|\n|  getall(self, result='codename')\n|      List all known distributions.\n|\n|  stable(self, date=None, result='codename')\n|      Get latest stable distribution based on the given date.\n|\n|  unsupported(self, date=None, result='codename')\n|      Get list of all unsupported distributions based on the given date.\n|\n|  valid(self, codename)\n|      Check if the given codename is known.\n|\n|  version(self, name, default=None)\n|      Map codename or series to version\n|\n|  ----------------------------------------------------------------------\n|  Readonly properties inherited from DistroInfo:\n|\n|  all\n|      List codenames of all known distributions.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from DistroInfo:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n"
                }
            ]
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "convert_date",
                    "content": "Convert a date string in ISO 8601 into a datetime object.\n"
                }
            ]
        },
        "FILE": {
            "content": "/usr/lib/python3/dist-packages/distroinfo.py\n\n",
            "subsections": []
        }
    },
    "summary": "distroinfo - provides information about Ubuntu's and Debian's distributions",
    "flags": [],
    "examples": [],
    "see_also": []
}