# openpyxl.packaging.manifest module

File manifest

class openpyxl.packaging.manifest.FileExtension(Extension, ContentType)

  Bases: `Serialisable`

  ContentType

    Values must be of type <class ‘str’>

  Extension

    Values must be of type <class ‘str’>

  tagname = 'Default'

class openpyxl.packaging.manifest.Manifest(Default=(), Override=())

  Bases: `Serialisable`

  Default

    A sequence (list or tuple) that may only contain objects of the declared type

  Override

    A sequence (list or tuple) that may only contain objects of the declared type

  append(obj)

    Add content object to the package manifest # needs a contract…

  property extensions

    Map content types to file extensions Skip parts without extensions

  property filenames
  find(content_type)

    Find specific content-type

  findall(content_type)

    Find all elements of a specific content-type

  path = '[Content_Types].xml'
  tagname = 'Types'
  to_tree()

    Custom serialisation method to allow setting a default namespace

class openpyxl.packaging.manifest.Override(PartName, ContentType)

  Bases: `Serialisable`

  ContentType

    Values must be of type <class ‘str’>

  PartName

    Values must be of type <class ‘str’>

  tagname = 'Override'