Skip to main content

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)

Uploaded Source

Built Distribution

safeprint-0.1.2-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page