Module Expr Str Assign NameStore Str Import alias Import alias Import alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad While NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Break Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad BinOpAdd NameLoad Str attr Str keyword Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpBitOr BinOpLShift Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpLShift Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad Num Num Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list decorator_list
N/A N/A A LibraryPackage that creates a Zip file.

This module aids in the construction of a ZIP file containing all the
components generated and required by a library.
 N/A __author__ aiuto@google.com (Tony Aiuto) N/A os N/A StringIO N/A zipfile googleapis.codegen.filesys.library_package LibraryPackage ZipLibraryPackage N/A LibraryPackage N/A N/A The library package. __init__ N/A N/A self stream N/A N/A N/A Create a new ZipLibraryPackage.

    Args:
      stream: (file) A file-like object to write to.
     N/A N/A N/A N/A super ZipLibraryPackage self __init__ N/A N/A self _zip N/A N/A zipfile ZipFile stream w N/A zipfile ZIP_STORED N/A N/A self _current_file_data None N/A N/A self _created_dirs N/A N/A StartFile N/A N/A self name N/A N/A N/A Start writing a named file to the package.

    Args:
      name: (str) path which will identify the contents in the archive.

    Returns:
      A file-like object to write the contents to.
     N/A N/A N/A self EndFile N/A N/A self _current_file_data N/A N/A StringIO StringIO N/A name N/A %s%s N/A N/A self _file_path_prefix name N/A N/A self _current_file_name N/A N/A name encode ascii N/A N/A N/A self CreateDirectory N/A N/A N/A os path dirname N/A self _current_file_name N/A N/A self _current_file_data N/A CreateDirectory N/A N/A self directory N/A N/A N/A Create one or more directory entries, esssentially mkdir -p.

    Some zip readers do not create needed folders for arbitrary file paths.
    When we encounter a new path for the first time, we make sure the tree
    exists.

    Args:
      directory: (str) a directory name.
     N/A to_create N/A N/A directory N/A N/A N/A directory N/A self _created_dirs N/A N/A N/A N/A N/A to_create append directory N/A N/A N/A N/A self _created_dirs append directory N/A directory N/A N/A N/A os path dirname directory N/A N/A N/A to_create reverse N/A directory to_create N/A N/A info N/A N/A zipfile ZipInfo N/A N/A N/A directory / encode ascii date_time N/A N/A self ZipTimestamp N/A N/A info external_attr N/A N/A 16877 16 16 N/A N/A N/A N/A self _zip writestr info N/A EndFile N/A N/A self N/A N/A N/A Flush the current output file to the ZIP container. N/A N/A self _current_file_data N/A N/A info N/A N/A zipfile ZipInfo N/A self _current_file_name date_time N/A N/A self ZipTimestamp N/A N/A info external_attr N/A 420 16 N/A data N/A N/A N/A self _current_file_data getvalue N/A N/A isinstance data unicode N/A N/A data N/A N/A data encode utf-8 N/A N/A N/A N/A self _zip writestr info data N/A N/A N/A N/A self _current_file_data close N/A N/A self _current_file_data None N/A ZipTimestamp N/A N/A self N/A N/A N/A N/A 1980 1 1 0 0 1 N/A DoneWritingArchive N/A N/A self N/A N/A N/A Signal that we are done writing the entire package.

    This method must be called to flush the zip file directory to the output
    stream.
     N/A N/A self _zip N/A N/A N/A N/A self EndFile N/A N/A N/A N/A self _zip close N/A N/A self _zip None N/A FileExtension N/A N/A self N/A N/A N/A Returns the file extension for this archive, which is zip. N/A zip N/A MimeType N/A N/A self N/A N/A N/A Returns the MIME type for this archive. N/A application/zip N/A N/A