Skip to main content

Never see escaped bytes in output.

Project description

It makes Python print the object representation in readable chars instead of the escaped string.


Here we have a Python script,


data = ['中文', 'にほんご', u'Λλ']
print 'Before:', data

import uniout
print 'After :', data

The output of

Before: ['\xe4\xb8\xad\xe6\x96\x87', '\xe3\x81\xab\xe3\x81\xbb\xe3\x82\x93\xe3\x81\x94', u'\u039b\u03bb']
After : ['中文', 'にほんご', u'Λλ']


You can install it via PyPI,

sudo pip install uniout

or download it manually.

Change Log


  1. Show the original string if the escaped string can’t be decoded properly.
  2. Use better way to find string literals.


  1. Fixed a bug when Uniout works with IPython.


Thanks for the pull requests #3 and #4 from @timtan, it now

  1. works well with IPython,
  2. and also supports stderr.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
uniout-0.3.2.tar.gz (5.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page