• Home
  • Raw
  • Download

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
37 Previously, ZIP archives with an archive comment were not supported.
42 Documentation on the ZIP file format by Phil Katz, the creator of the format and
45 :pep:`273` - Import Modules from Zip Archives
68 :class:`zipimporter` is the class for importing ZIP files.
72 Create a new zipimporter instance. *archivepath* must be a path to a ZIP
73 file, or to a specific path within a ZIP file. For example, an *archivepath*
74 of :file:`foo/bar.zip/lib` will look for modules in the :file:`lib` directory
75 inside the ZIP file :file:`foo/bar.zip` (provided that it exists).
77 :exc:`ZipImportError` is raised if *archivepath* doesn't point to a valid ZIP
159 the ZIP archive.
166 The file name of the importer's associated ZIP file, without a possible
172 The subpath within the ZIP file where modules are searched. This is the
173 empty string for zipimporter objects which point to the root of the ZIP
186 Here is an example that imports a module from a ZIP archive - note that the
191 $ unzip -l example.zip
192 Archive: example.zip
201 >>> sys.path.insert(0, 'example.zip') # Add .zip file to front of path
204 'example.zip/jwzthreading.py'