# apt_pkg.Cdrom - pydoc - phpman

Help on class Cdrom in apt_pkg:

apt_pkg.Cdrom = class Cdrom(builtins.object)
 |  Cdrom()
 |
 |  Cdrom objects can be used to identify Debian installation media and to
 |  add them to /etc/apt/sources.list.
 |
 |  Methods defined here:
 |
 |  add(...)
 |      add(progress: apt_pkg.CdromProgress) -> bool
 |
 |      Add the given CD-ROM to the sources.list. Return True on success;
 |      raise an error on failure or return False.
 |
 |  ident(...)
 |      ident(progress: apt_pkg.CdromProgress) -> str
 |
 |      Try to identify the CD-ROM and if successful return the hexadecimal
 |      CDROM-ID (and a integer version suffix separated by -) as a
 |      string. Otherwise, return None or raise an error.
 |
 |      The ID is created by hashing all file and directory names on the
 |      CD-ROM and appending the version.
 |
 |  ----------------------------------------------------------------------
 |  Static methods defined here:
 |
 |  __new__(*args, **kwargs) from builtins.type
 |      Create and return a new object.  See help(type) for accurate signature.

