Lines Matching full:zip
1 :mod:`zipimport` --- Import modules from Zip archives
5 :synopsis: Support for importing Python modules from ZIP archives.
14 :file:`\*.pyc`) and packages from ZIP-format archives. It is usually not
17 to ZIP archives.
20 also allows an item of :data:`sys.path` to be a string naming a ZIP file archive.
21 The ZIP archive can contain a subdirectory structure to support package imports,
23 subdirectory. For example, the path :file:`example.zip/lib/` would only
26 Any files may be present in the ZIP archive, but importers are only invoked for
27 :file:`.py` and :file:`.pyc` files. ZIP import of dynamic modules
30 corresponding :file:`.pyc` file, meaning that if a ZIP archive
34 Previously, ZIP archives with an archive comment were not supported.
39 Documentation on the ZIP file format by Phil Katz, the creator of the format and
42 :pep:`273` - Import Modules from Zip Archives
65 :class:`zipimporter` is the class for importing ZIP files.
69 Create a new zipimporter instance. *archivepath* must be a path to a ZIP
70 file, or to a specific path within a ZIP file. For example, an *archivepath*
71 of :file:`foo/bar.zip/lib` will look for modules in the :file:`lib` directory
72 inside the ZIP file :file:`foo/bar.zip` (provided that it exists).
74 :exc:`ZipImportError` is raised if *archivepath* doesn't point to a valid ZIP
173 the ZIP archive.
180 The file name of the importer's associated ZIP file, without a possible
186 The subpath within the ZIP file where modules are searched. This is the
187 empty string for zipimporter objects which point to the root of the ZIP
200 Here is an example that imports a module from a ZIP archive - note that the
205 $ unzip -l example.zip
206 Archive: example.zip
215 >>> sys.path.insert(0, 'example.zip') # Add .zip file to front of path
218 'example.zip/jwzthreading.py'