devel/py-lazy_imports 1.2.0 DragonFly
Python package helps to create lazy modules
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- APACHE20
- Categories
- devel, python
- Package size
- 23.1 KiB, 99.7 KiB installed
Description
This python utility package helps to create lazy modules. A lazy module defers loading (some of) its attributes until these attributes are first accessed. The module's lazy attributes in turn are attributes of other modules. These other modules will be imported/loaded only when (and if) associated attributes are used. A lazy import strategy can drastically reduce runtime and memory consumption.
Additionally, this package provides a utility for optional imports with which one can import a module globally while triggering associated import errors only at use-sites (when and if a dependency is actually required, for example in the context of a specific functionality).
In the other systems
The newest version among them is 1.2.0, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/py-lazy_imports | 1.2.0 newest | none known | - | [email protected] | - |
| FreeBSD | devel/py-lazy_imports | 1.2.0 newest | none known | - | [email protected] | 2026-07-12 |
| HardenedBSD | devel/py-lazy_imports | 1.2.0 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-lazy_imports | 1.2.0 newest | no data | - | [email protected] | - |
Version history 1
- 1.2.0
Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.
Install
Binary package:
pkg install py312-lazy_imports
From DPorts:
cd /usr/dports/devel/py-lazy_imports && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.