We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It may be useful to allow exporting a Python dictionary to a JSON file.
I think a possible implementation is something like:
def _default_items(): return () raise ValueError("Dictionary does not support exporting!") items = mod.get('items', _default_items) if not isinstance(items, typing.Callable): raise ValueError('invalid `items\' function: %s\n' % items) self._items = items
then the Python file, if it wants, can define a items function that returns an iterable of (stroke, value): (str, str) objects.
items
(stroke, value): (str, str)
Motivation: my library https://github.com/user202729/plover-python-dictionary-lib/ supports exporting to JSON, but it would be better to allow doing that inside Plover's GUI itself, so user who are not familiar with the CLI would find it easier.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It may be useful to allow exporting a Python dictionary to a JSON file.
I think a possible implementation is something like:
then the Python file, if it wants, can define a
items
function that returns an iterable of(stroke, value): (str, str)
objects.Motivation: my library https://github.com/user202729/plover-python-dictionary-lib/ supports exporting to JSON, but it would be better to allow doing that inside Plover's GUI itself, so user who are not familiar with the CLI would find it easier.
The text was updated successfully, but these errors were encountered: