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.

Example

Here we have a Python script, test.py:

# test.py

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

import uniout
print 'After :', data

The output of test.py:

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

Installation

You can install it via PyPI,

sudo pip install uniout

or download it manually.

Change Log

v0.3.1

  1. Fixed a bug when Uniout works with IPython.

v0.3

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.

Source Distribution

uniout-0.3.1.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file uniout-0.3.1.tar.gz.

File metadata

  • Download URL: uniout-0.3.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for uniout-0.3.1.tar.gz
Algorithm Hash digest
SHA256 299ee8b1429ffdd8afba76766c253a9932eb93204f3529ef7a4fdc0f66dc1c9d
MD5 4db07a91aa9fd88caaa9678f3291b1aa
BLAKE2b-256 00eab472ffd98b3e006e379581e81ec0d6d83b49b2b1da4d82b5fa728f2f00f6

See more details on using hashes here.

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