Skip to main content

zope.deferredimport allows you to perform imports names that will only be resolved when used in the code.

Project description

zope.deferredimport

Latest release Supported Python versions https://github.com/zopefoundation/zope.deferredimport/actions/workflows/tests.yml/badge.svg https://coveralls.io/repos/github/zopefoundation/zope.deferredimport/badge.svg?branch=master Documentation Status

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

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)

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zope.deferredimport-5.0.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

zope.deferredimport-5.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file zope.deferredimport-5.0.tar.gz.

File metadata

  • Download URL: zope.deferredimport-5.0.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for zope.deferredimport-5.0.tar.gz
Algorithm Hash digest
SHA256 3abbf0e18c1f1765914ecd1d41b549e4d045b21b28e4065fb0c1de0ad736b2c3
MD5 148e4b0fe10b10a40b2abc5b7071c86c
BLAKE2b-256 a1b79b0c93edb4c6745ac8784c265d244f5b3bc4082d92f7aefe952aaa5be5f3

See more details on using hashes here.

File details

Details for the file zope.deferredimport-5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zope.deferredimport-5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b26e013b02fd1ee3e26510db66a737105128e48a0d348490f7c901ffd1928f25
MD5 fd4ad73551f4010d15e99fa475d36764
BLAKE2b-256 69f7b5e232857f4d511b2628697bf2e48fca55ea4ed75b1432efd1bf024fbd12

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page