Skip to main content

Import objects dynamically, lazily, "weakly", and more.

Project description

Need to import an object when all you’ve got is its name? Need to lazily import modules, such that they don’t actually get loaded until you use them? Want to have some code in a module that only gets run if another module is imported? Then you need the “Importing” toolkit.

Installing the toolkit (using "easy_install Importing" or "setup.py install") allows you to access the peak.util.imports module. This module was previously bundled for years inside of the general PEAK distribution, but is now available as a standalone module for your convenience.

The “Importing” toolkit does not install or use any special import hooks, and is compatible with zipfile imports, py2exe, etc. Lazy and weak imports should be compatible with almost any import hooks or hacks, as long as they have reasonable support for the reload() builtin. The dynamic import utilities, however, require only that __import__() work correctly, and so should work anywhere that normal Python imports work.

Project details


Download files

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

Source Distribution

Importing-1.9.1.zip (14.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

Importing-1.9.1-py2.4.egg (11.1 kB view details)

Uploaded Egg

Importing-1.9.1-py2.3.egg (27.6 kB view details)

Uploaded Egg

File details

Details for the file Importing-1.9.1.zip.

File metadata

  • Download URL: Importing-1.9.1.zip
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Importing-1.9.1.zip
Algorithm Hash digest
SHA256 6d4e9aa5ddb865a6c1bf9918498d5f76e50fc7b64364dc50a3d000b475ae3e3c
MD5 b3feb4585af8298840bd429c0a7b495e
BLAKE2b-256 362efe67e88f0fc89382535e01f071f5fea0e95ef708e4985165f11578f0ecaf

See more details on using hashes here.

File details

Details for the file Importing-1.9.1-py2.4.egg.

File metadata

  • Download URL: Importing-1.9.1-py2.4.egg
  • Upload date:
  • Size: 11.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Importing-1.9.1-py2.4.egg
Algorithm Hash digest
SHA256 de9121b2cd1b92dc55593e86d6874a3a3f9a1abdde0116b9c83a8d270a89c295
MD5 76767a1b73a5d326c3e56aba747f4646
BLAKE2b-256 a05ffabe1ac001e9c44b9dbbcd09074394c764ea20bea654275127dcdad0c072

See more details on using hashes here.

File details

Details for the file Importing-1.9.1-py2.3.egg.

File metadata

  • Download URL: Importing-1.9.1-py2.3.egg
  • Upload date:
  • Size: 27.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Importing-1.9.1-py2.3.egg
Algorithm Hash digest
SHA256 3c3126d248171b7e255103d8c2641e1af6278b51afbb1060f089758a1d309c6b
MD5 3d122915e67f23d834913a28d8cee5ea
BLAKE2b-256 2c6ec3452555b60f0da80331efa0cab44178c3a5d78e546cb455e289070cf0ae

See more details on using hashes here.

Supported by

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