Pydyimport

Latest version: v0.0.1a3

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

Scan your dependencies

0.0.1alpha.3

* (`RequireEnvInjector`) `next_injector` set `None` as default.
* update `README.md` for more usage.

0.0.1alpha.2

* (`DynamicImport.load_module_content_from`) automatically inject require* function when source file include ` inject_require`.
* (`DynamicImport.load_module_content_from`) mark as `staticmethod`.

0.0.1alpha.1

* (`DynamicImport`) new `env_injector` option to set up a environment injector in `DynamicImport`'s constructor, which accept a callable that recvice path as `str` and code as `str`, return a dict which contains fields set to global.
* (`DynamicImport`) new `inject_require` option in `DynamicImport`'s constructor, set True to inject `require*` functions to imported modules.
* (`RequireEnvInjector`) a new environment injector to inject `require*` functions to modules.
* (`DynamicImport`) global cache now set `False` as default (`global_cache=False`).
* (`DynamicImport`) new `cache` option which can set up a instance-scoped cache, default is `True`.
* (`DynamicImport.load_module_content_from`) remove decorator `staticmethod`
* (`DynamicImport.load_module_content_from`) fix: variables decalred in document-level could not be access by deeper variable scope. (commit `798f9671c8784639097ca1b127f3b7fc2412524d`)

0.0.1alpha.0

* initial version

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.