BSD Ports

devel/py-lazy_imports 1.2.0 FreeBSD

Python package helps to create lazy modules

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
2d4f4c1dba
License
APACHE20
Categories
devel, python
Package size
24.3 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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
FreeBSDdevel/py-lazy_imports1.2.0 newestnone known-[email protected]2026-07-12
HardenedBSDdevel/py-lazy_imports1.2.0 newestno data-[email protected]-
GhostBSDdevel/py-lazy_imports1.2.0 newestno data-[email protected]-

Version history 1

  1. 1.2.0 2d4f4c1dba

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 the ports tree:

cd /usr/ports/devel/py-lazy_imports/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-lazy_imports>0:devel/py-lazy_imports

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.2.01.2.0--1.2.0
FreeBSD:14:quarterly1.2.01.2.0n/a-1.2.0
FreeBSD:15:latest1.2.01.2.0n/a--
FreeBSD:15:quarterly1.2.01.2.0n/an/an/a
FreeBSD:16:latest1.2.01.2.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

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.

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
lazy_imports-1.2.0.tar.gz244703c546b3c1e7c4bf62a07f897f6179d9feda6118e71ef6ecc47a339cab3d2e2d9
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
2d4f4c1dba Yuri Victorovich devel/py-lazy_imports: Update to 1.2.0
PR: 296626