Module Expr Str ImportFrom alias ImportFrom alias identifier ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIn TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Provides a low-level, write-only API to a serialized Open Packaging
Convention (OPC) package, essentially an implementation of OpcPackage.save()
 __future__ absolute_import constants CONTENT_TYPE CT oxml CT_Types serialize_part_xml packuri CONTENT_TYPES_URI PACKAGE_URI phys_pkg PhysPkgWriter shared CaseInsensitiveDict spec default_content_types PackageWriter N/A object N/A N/A 
    Writes a zip-format OPC package to *pkg_file*, where *pkg_file* can be
    either a path to a zip file (a string) or a file-like object. Its single
    API method, :meth:`write`, is static, so this class is not intended to
    be instantiated.
     write N/A N/A pkg_file pkg_rels parts N/A N/A N/A 
        Write a physical package (.pptx file) to *pkg_file* containing
        *pkg_rels* and *parts* and a content types stream based on the
        content types of the parts.
         N/A phys_writer N/A PhysPkgWriter pkg_file N/A N/A N/A PackageWriter _write_content_types_stream phys_writer parts N/A N/A N/A PackageWriter _write_pkg_rels phys_writer pkg_rels N/A N/A N/A PackageWriter _write_parts phys_writer parts N/A N/A N/A phys_writer close N/A staticmethod _write_content_types_stream N/A N/A phys_writer parts N/A N/A N/A 
        Write ``[Content_Types].xml`` part to the physical package with an
        appropriate content type lookup target for each part in *parts*.
         N/A content_types_blob N/A serialize_part_xml N/A N/A _ContentTypesItem xml_for parts N/A N/A N/A phys_writer write CONTENT_TYPES_URI content_types_blob N/A staticmethod _write_parts N/A N/A phys_writer parts N/A N/A N/A 
        Write the blob of each part in *parts* to the package, along with a
        rels item for its relationships if and only if it has any.
         N/A part parts N/A N/A N/A N/A phys_writer write N/A part partname N/A part blob N/A N/A len N/A part _rels N/A N/A N/A N/A phys_writer write N/A N/A part partname rels_uri N/A N/A part _rels xml N/A staticmethod _write_pkg_rels N/A N/A phys_writer pkg_rels N/A N/A N/A 
        Write the XML rels item for *pkg_rels* ('/_rels/.rels') to the
        package.
         N/A N/A N/A phys_writer write N/A PACKAGE_URI rels_uri N/A pkg_rels xml N/A staticmethod N/A _ContentTypesItem N/A object N/A N/A 
    Service class that composes a content types item ([Content_Types].xml)
    based on a list of parts. Not meant to be instantiated directly, its
    single interface method is xml_for(), e.g.
    ``_ContentTypesItem.xml_for(parts)``.
     __init__ N/A N/A self N/A N/A N/A N/A self _defaults N/A CaseInsensitiveDict N/A N/A self _overrides N/A dict N/A xml_for N/A N/A cls parts N/A N/A N/A 
        Return content types XML mapping each part in *parts* to the
        appropriate content type and suitable for storage as
        ``[Content_Types].xml`` in an OPC package.
         N/A cti N/A cls N/A N/A N/A cti _defaults N/A rels N/A CT OPC_RELATIONSHIPS N/A N/A N/A cti _defaults N/A xml N/A CT XML N/A part parts N/A N/A N/A N/A cti _add_content_type N/A part partname N/A part content_type N/A N/A N/A cti _xml N/A classmethod _add_content_type N/A N/A self partname content_type N/A N/A N/A 
        Add a content type for the part with *partname* and *content_type*,
        using a default or override as appropriate.
         N/A ext N/A partname ext N/A N/A N/A N/A N/A ext lower content_type default_content_types N/A N/A N/A N/A self _defaults N/A ext content_type N/A N/A N/A N/A self _overrides N/A partname content_type N/A _xml N/A N/A self N/A N/A N/A 
        Return etree element containing the XML representation of this content
        types item, suitable for serialization to the ``[Content_Types].xml``
        item for an OPC package. Although the sequence of elements is not
        strictly significant, as an aid to testing and readability Default
        elements are sorted by extension and Override elements are sorted by
        partname.
         N/A _types_elm N/A N/A CT_Types new N/A ext N/A sorted N/A N/A N/A self _defaults keys N/A N/A N/A N/A _types_elm add_default ext N/A N/A self _defaults N/A ext N/A partname N/A sorted N/A N/A N/A self _overrides keys N/A N/A N/A N/A _types_elm add_override partname N/A N/A self _overrides N/A partname N/A _types_elm N/A N/A