translationstring
Utility library for i18n relied on by various Repoze and Pyramid packages
What it is and what it does
translationstring is a lightweight i18n utility library used by Pylons Project packages to mark, manage, and translate text strings in Python applications. It provides a TranslationString class that wraps text with metadata (domain, default translation, message context) and a TranslationStringFactory for creating translation strings with a consistent domain. The package supports pluralization and is designed to work with Babel's translation infrastructure, though it does not depend on Babel itself.
The library is primarily used within template engines and web frameworks built on the Pylons stack. It has no runtime dependencies, making it lightweight to install. With zero known vulnerabilities and a permissive license, it is stable and safe to use, though the long dormancy since 2020 means it receives no active maintenance or updates.
Use it for:
- Mark translatable strings in Pyramid or Pylons web applications for extraction and translation workflows.
- Integrate translation support into templates using the package's translation utilities.
- Manage message pluralization and context-aware translations in applications using Babel for localization.
- Create translation string factories to enforce consistent domain naming across a codebase.
- Support multi-language applications by preparing strings for gettext-based translation pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides translation string objects and factories for marking and managing translatable text in Python applications, with support for pluralization and message contexts.
Yes, if you are working within the Pylons/Pyramid ecosystem or need lightweight i18n string management without external dependencies. The package is stable and permissively licensed, with no known vulnerabilities. However, the dormant maintenance status (last release 2020-07-09) means no active support for newer Python versions or bug fixes—verify compatibility with your target Python version before relying on it in new projects.
Install
translationstring on PyPI
pip
pip install translationstringuv
uv add translationstringpoetry
poetry add translationstringInstalling translationstring
Before you install
Low friction install with no runtime dependencies. Dormant maintenance status—last release was 2020-07-09—but the repository remains active and the package is marked Production/Stable.
License in practice
Licensed under a permissive BSD-like license (Repoze Public License), imposing no significant restrictions on use or redistribution.
Quickstart
pip install translationstring
from translationstring import TranslationString
msg = TranslationString('Hello ${name}', mapping={'name': 'World'})
print(msg)
Verify before relying
- Whether the package works reliably with Python versions released after 2020 despite dormant maintenance status.
- Whether Babel integration remains functional and well-tested given the long gap since last release.
- Current compatibility with modern Python 3 versions beyond those listed in classifiers.
Package facts
| License | BSD-like (http://repoze.org/license.html) (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 2,227 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,580,811/month — #2,989 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: translationstring-1.4-py2.py3-none-any.whl
Keywords: i18n, l10n, internationalization, localization, gettext, chameleon
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
flufl.i18nflufl.i18n provides a high-level API for…
permissive · top 15,000 on PyPI
SmartlingApiSdkA Python SDK for interacting with Smartling's…
permissive · top 15,000 on PyPI
babelBabel provides internationalization (i18n) and…
permissive · top 1,000 on PyPI
zope.i18nmessageidProvides message factory objects that tag…
unclear · top 5,000 on PyPI
i18nicei18nice provides internationalization (i18n)…
permissive · top 15,000 on PyPI
python-i18nProvides internationalization (i18n)…
permissive · top 15,000 on PyPI
django-statici18nCompiles Django's JavaScript…
permissive · top 15,000 on PyPI
flask-babelAdds internationalization (i18n) and…
permissive · top 5,000 on PyPI
ResourceBundleResourceBundle manages internationalization and…
permissive · top 15,000 on PyPI
quart_babelAdds internationalization (i18n) and…
permissive · top 15,000 on PyPI