Zipimportx

Latest version: v0.3.2

Safety actively analyzes 621239 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.1

* Make bootstrapping be more robust if it's not running from within a
module (e.g. when run by the cxFreeze init script)

0.3.0

* Always name the index <archivepath>.idx regardless of the platform; if
it's found to contain invalid separators then it's ignored.
* Allow converting a zipfile to inline python code that can be frozen
directly into the application, avoiding any file IO for the imports.
* Avoid touching the filesystem if given a path inside an already-loaded
zipfile (which happens whenever importing from a package).
* the default zipimporter trims the prefix by walking backwards down
the path, calling stat() until it finds a real file. We do the
same but hit _zip_directory_cache instead of the filesystem.
* unfortunately this has meant re-implementing basically all methods
of zipimporter, since there's no way to set the "prefix" attr on
the c-level zipimporter object without calling its constructor and
hence hitting the filesystem.
* fortunately, since the import process is mostly IO-bound this has
not adversely affected the performance of this module.
* When installing the new zipimporter class, also remove any instances of
the old class from sys.path_importer_cache

0.2.0

* only generate the index file for the host platform by default; indexes
for other platforms can be generated by passing the "platform" argument
to write_index().
* automatically install the modified zipimporter when zipimportx is
executed as __main__.

0.1.0

* initial release; you might say *everything* has changed.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.