pyseeyou icon indicating copy to clipboard operation
pyseeyou copied to clipboard

A Python ICU MessageFormat parsing tool

Results 5 pyseeyou issues
Sort by recently updated
recently updated
newest added

This package's test directory is called `test`, not `tests`.

This will display it in PyPI as well as make it readable by tools like [pip-licenses](https://pypi.org/project/pip-licenses/).

> File "/../my_file.py", line 103, in _process_message return format(actual_message, processed_params, _get_message_format_locale(locale_code)) File "/.../lib/python2.7/site-packages/pyseeyou/__init__.py", line 13, in format ast = ICUMessageFormat.parse(msg) File "/.../lib/python2.7/site-packages/parsimonious/grammar.py", line 115, in parse return self.default_rule.parse(text, pos=pos) File...

[Formatted Argument](https://formatjs.io/guides/message-syntax/#formatted-argument) are used to format dates, numbers, time and even custom formats. usage example: `format('found {count, number} records', {'count': 6}, 'en')`

When running pytest, I see the following: ``` pyseeyou/grammar.py:34 github/pyseeyou/pyseeyou/grammar.py:34: DeprecationWarning: invalid escape sequence \w ''') :1 :1: DeprecationWarning: invalid escape sequence \w :1: DeprecationWarning: invalid escape sequence \w :1:...