The OpenRefine Python Client from Paul Makepeace provides a library for communicating with an OpenRefine server. This fork extends the command line interface (CLI) and is distributed as a convenient one-file-executable (Windows, Linux, Mac). It is also available via Docker Hub, PyPI and Binder.
GNU General Public License v3.0
83
stars
19
forks
source link
unicode issues in --list and --info when piping stdout #15
Whenever you read data from outside your app, expect it to be bytes - eg, of type str - and call .decode() on it to interpret it as text. Likewise, always call .encode() on text you want to send to the outside world.
this bug does not affect one-file-executables
example
solution from http://blog.notdot.net/2010/07/Getting-unicode-right-in-Python