zope.deferredimport allows you to perform imports names that will only be resolved when used in the code.
Project description
zope.deferredimport
Often, especially for package modules, you want to import names for convenience, but not actually perform the imports until necessary. The zope.deferredimport package provided facilities for defining names in modules that will be imported from somewhere else when used. You can also cause deprecation warnings to be issued when a variable is used.
Documentation is hosted at https://zopedeferredimport.readthedocs.io/
Changes
6.1.1 (2026-02-16)
Try harder to make the sample files generated by the narrative doctest match those in git.
6.1 (2026-02-09)
Move package metadata from setup.py to pyproject.toml.
Add support for Python 3.14.
Drop support for Python 3.9.
Remove run-time dependency on setuptools.
Adjust narrative doctest so that the sample files it generates match those in git again.
6.0 (2025-09-12)
Replace pkg_resources namespace with PEP 420 native namespace.
5.1 (2025-08-11)
Add support for Python 3.12, 3.13.
Drop support for Python 3.7, 3.8.
5.0 (2023-06-29)
Drop support for Python 2.7, 3.5, 3.6.
Add support for Python 3.11.
4.4 (2021-12-10)
Add support for Python 3.8, 3.9 and 3.10.
Drop support for Python 3.4.
4.3.1 (2019-08-05)
Avoid race condition in deferredmodule.ModuleProxy.__getattr__ #8.
4.3 (2018-10-05)
Add support for Python 3.7.
4.2.1 (2017-10-24)
Preserve the docstrings of proxied modules created with deprecatedFrom, deferredFrom, etc. See issue 5.
4.2.0 (2017-08-08)
Add support for Python 3.5 and 3.6.
Drop support for Python 2.6 and 3.3.
Convert doctests to Sphinx documentation, including building docs and running doctest snippets under tox.
4.1.0 (2014-12-26)
Add support for PyPy. PyPy3 support is blocked on release of fix for: https://bitbucket.org/pypy/pypy/issue/1946
Add support for Python 3.4.
Add support for testing on Travis.
4.0.0 (2013-02-28)
Add support for Python 3.3.
Drop support for Python 2.4 and 2.5.
3.5.3 (2010-09-25)
Add test extra to declare test dependency on zope.testing.
3.5.2 (2010-05-24)
Fix unit tests broken under Python 2.4 by the switch to the standard library doctest module.
3.5.1 (2010-04-30)
Prefer the standard library’s doctest module to the one from zope.testing.
3.5.0 (2009-02-04)
Add support to bootstrap on Jython.
Add reference documentation.
3.4.0 (2007-07-19)
Finish release of zope.deferredimport.
3.4.0b1 (2007-07-09)
Initial release as a separate project, corresponding to the zope.deferredimport from Zope 3.4.0b1.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zope_deferredimport-6.1.1.tar.gz.
File metadata
- Download URL: zope_deferredimport-6.1.1.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
959052d3f5e05c4c7854b88716971985e0b1b44a5c0163e12d9a0b90e4e3b6cc
|
|
| MD5 |
980e5c3fe51b4bba7973e2168cfb052f
|
|
| BLAKE2b-256 |
d0b1218e3d3098602710bfe4e128860d783e5e9ce757ff8de922beb578bd541b
|
File details
Details for the file zope_deferredimport-6.1.1-py3-none-any.whl.
File metadata
- Download URL: zope_deferredimport-6.1.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
833c775c927242638a54aa15c6d59e75b8f5091d44bf909fa90bf6e28aec6641
|
|
| MD5 |
4a9cbc46049639f2ecb3e50e677dcfdd
|
|
| BLAKE2b-256 |
4ae536c4eea224dcec773841fd9487c4717430b669e9122067c9cc33db195612
|