{"id":22390,"library":"speaklater","title":"speaklater","description":"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.","status":"maintenance","version":"1.3","language":"python","source_language":"en","source_url":"http://github.com/mitsuhiko/speaklater","tags":["lazy","string","gettext","i18n"],"install":[{"cmd":"pip install speaklater","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from speaklater import LazyString","symbol":"is_lazy_string","correct":"from speaklater import is_lazy_string"},{"symbol":"make_lazy_gettext","correct":"from speaklater import make_lazy_gettext"},{"symbol":"make_lazy_string","correct":"from speaklater import make_lazy_string"}],"quickstart":{"code":"from speaklater import LazyString\n\nlazy_hello = LazyString(lambda: 'Hello, World!')\nprint(str(lazy_hello))  # Output: Hello, World!","lang":"python","description":"Creates a lazy string that evaluates the lambda only when converted to string."},"warnings":[{"fix":"Use str(lazy) before comparison.","message":"LazyString objects do not compare equal to plain strings unless explicitly converted. Comparing a LazyString to a string will always be False.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `speaklater` only for legacy code; prefer modern alternatives.","message":"This library is in maintenance mode. Consider using the built-in `str` or a PEP 501-compatible lazy string for new projects.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.3':19 'class':6 'current':17 'defer':11 'e.g':14 'evalu':13 'gettext':16,28 'i18n':29 'infrequ':24 'lazi':4,26 'mainten':21 'mode':22 'provid':2 'python':8 'releas':25 'speaklat':1 'string':5,12,27 'use':9 'version':18","created_at":"2026-04-27T17:04:55.422880+00:00","updated_at":"2026-04-27T17:04:55.422880+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.3","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"http://github.com/mitsuhiko/speaklater","docs":null,"changelog":null,"pypi":"https://pypi.org/project/speaklater/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}