Registry / serialization / speaklater

speaklater

JSON →
library1.3pypypi✓ verified 80d ago

Provides a lazy string class for Python, useful for deferred string evaluation (e.g., with gettext). Current version 1.3, in maintenance mode with infrequent releases.

pip install speaklater
INSTALL
IMPORT
SIG · SPEAKLATER
S
speaklater
serializationpythonv1.3
Install
2.5s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.5s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

is_lazy_string
from speaklater import is_lazy_string
from speaklater import LazyString
make_lazy_gettext
from speaklater import make_lazy_gettext
make_lazy_string
from speaklater import make_lazy_string

Creates a lazy string that evaluates the lambda only when converted to string.

from speaklater import LazyString lazy_hello = LazyString(lambda: 'Hello, World!') print(str(lazy_hello)) # Output: Hello, World!
Debug
Known issues
gotchaLazyString objects do not compare equal to plain strings unless explicitly converted. Comparing a LazyString to a string will always be False.
fix
Use str(lazy) before comparison.
affects: all
deprecatedThis library is in maintenance mode. Consider using the built-in `str` or a PEP 501-compatible lazy string for new projects.
fix
Use `speaklater` only for legacy code; prefer modern alternatives.
affects: all
Upgrade
Version history
1.3latest on PyPI · released Jul 1, 2012
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
6
Resources
speaklater — pip install speaklater · libregistry