A printer suppressing UnicodeEncodeError
Project description
A printer suppressing UnicodeEncodeError.
Install
pip install safeprint
Usage
Basic:
from safeprint import print print("你好世界!" "こんにちは世界" "안녕하세요세계")
Hook callback:
import safeprint printer = safeprint.Printer() def callback(text): # do something with the text printer.add_listener(callback) printer.print(1, 2, 3, sep=", ")
Dependencies
win-unicode-console
Dev-dependencies
bumpr
wheel
docutils
twine
setuptools
Changelog
0.1.2 (Jul 21, 2016)
Compatible with win-unicode-console 0.5
0.1.1 (Apr 15, 2016)
Fix builtins bug.
0.1.0 (Apr 15, 2016)
Initial release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
safeprint-0.1.2.zip
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for safeprint-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbb8aff664f780b5a03b9c8af71f80541690d25f09a70967e5f08b6cfefb255a |
|
MD5 | ccef15404f815f87a82a673b6e8972ec |
|
BLAKE2b-256 | b91b72da1f71f7652e97e21a90425ecca5618abb6a278938368d7cd937c29e2a |