pydoc > distro_info

📖 NAME

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

🚀 Quick Reference

Use CaseCommandDescription
Get latest stable UbuntuUbuntuDistroInfo().stable()Returns codename of latest stable Ubuntu release
Get latest stable DebianDebianDistroInfo().stable()Returns codename of latest stable Debian release
Check if a codename is validUbuntuDistroInfo().valid('focal')Returns True if codename is known
Get all supported Ubuntu releasesUbuntuDistroInfo().supported()Returns list of supported codenames
Convert codename to versioninfo.version('focal')Returns version string like '20.04'
Get LTS Ubuntu releaseUbuntuDistroInfo().lts()Returns codename of latest LTS
Check if release is LTSUbuntuDistroInfo().is_lts('jammy')Returns boolean
Get development (devel) releaseinfo.devel()Returns codename of latest development release

📚 CLASSES

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

🐧 DebianDistroInfo

class DebianDistroInfo(DistroInfo) — provides information about Debian's distributions

Method resolution order: DebianDistroInfo, DistroInfo, builtins.object

Methods inherited from DistroInfo:

Readonly properties inherited from DistroInfo:

Data descriptors inherited from DistroInfo: __dict__, __weakref__

⚠️ DistroDataOutdated

class DistroDataOutdated(builtins.Exception) — Distribution data outdated.

Methods defined here:

Data descriptors defined here: __weakref__

Static methods inherited from builtins.Exception: __new__(*args, **kwargs) from builtins.type

Methods inherited from builtins.BaseException: __delattr__, __getattribute__, __reduce__, __repr__, __setattr__, __setstate__, __str__, with_traceback

Data descriptors inherited from builtins.BaseException: __cause__, __context__, __dict__, __suppress_context__, __traceback__, args

📦 DistroInfo

class DistroInfo(builtins.object) — Base class for distribution information.

Methods defined here:

Readonly properties defined here:

Data descriptors defined here: __dict__, __weakref__

📅 DistroRelease

class DistroRelease(builtins.object) — Represents a distribution release.

Methods defined here:

Data descriptors defined here: __dict__, __weakref__

🐧 UbuntuDistroInfo

class UbuntuDistroInfo(DistroInfo) — provides information about Ubuntu's distributions

Method resolution order: UbuntuDistroInfo, DistroInfo, builtins.object

Methods inherited from DistroInfo: codename, devel, get_all, stable, unsupported, valid, version

Readonly properties inherited from DistroInfo: all

Data descriptors inherited from DistroInfo: __dict__, __weakref__

🔧 FUNCTIONS

📅 convert_date

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

📁 FILE

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

distro_info
📖 NAME 🚀 Quick Reference 📚 CLASSES
🐧 DebianDistroInfo ⚠️ DistroDataOutdated 📦 DistroInfo 📅 DistroRelease 🐧 UbuntuDistroInfo
🔧 FUNCTIONS
📅 convert_date
📁 FILE

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 17:00 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^