ICU MessageFormat runtime backed by Rust and ICU4X
Actively maintained. Last release 12 days ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install icu-messageformaticu_messageformat
Python bindings for FormatJS's Rust ICU MessageFormat runtime.
python -m pip install icu_messageformat
from icu_messageformat import IcuMessageFormat
message = IcuMessageFormat("{count, plural, one {# item} other {# items}}")
assert message.format({"count": 2}) == "2 items"