{"id":13448374,"url":"https://github.com/moskytw/uniout","last_synced_at":"2025-03-22T09:31:18.882Z","repository":{"id":3383126,"uuid":"4431254","full_name":"moskytw/uniout","owner":"moskytw","description":"Never see escaped bytes in output.","archived":false,"fork":false,"pushed_at":"2022-04-05T13:51:49.000Z","size":44,"stargazers_count":158,"open_issues_count":2,"forks_count":18,"subscribers_count":11,"default_branch":"dev","last_synced_at":"2025-03-20T11:18:58.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moskytw.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-24T09:47:05.000Z","updated_at":"2024-05-24T01:19:37.000Z","dependencies_parsed_at":"2022-08-06T14:00:31.406Z","dependency_job_id":null,"html_url":"https://github.com/moskytw/uniout","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moskytw%2Funiout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moskytw%2Funiout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moskytw%2Funiout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moskytw%2Funiout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moskytw","download_url":"https://codeload.github.com/moskytw/uniout/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937751,"owners_count":20535124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T05:01:43.710Z","updated_at":"2025-03-22T09:31:18.566Z","avatar_url":"https://github.com/moskytw.png","language":"Python","funding_links":[],"categories":["Python","Text Processing","资源列表","Awesome Python"],"sub_categories":["文本处理","Text Processing"],"readme":".. .. image:: https://pypip.in/v/uniout/badge.png\n..    :target: https://pypi.python.org/pypi/uniout\n..\n.. .. image:: https://pypip.in/d/uniout/badge.png\n..    :target: https://pypi.python.org/pypi/uniout\n\nUniout\n======\n\nIt makes Python print the object representation in readable chars instead of the\nescaped string.\n\nExample\n-------\n\n\u003e\u003e\u003e from pprint import pprint\n\u003e\u003e\u003e langs = [\n...     'Hello, world!',\n...     '你好，世界！',\n...     'こんにちは世界',\n...     u'Hello, world!',\n...     u'你好，世界！',\n...     u'こんにちは世界'\n... ]\n... \n\nBefore:\n\n\u003e\u003e\u003e pprint(langs)\n['Hello, world!',\n '\\xe4\\xbd\\xa0\\xe5\\xa5\\xbd\\xef\\xbc\\x8c\\xe4\\xb8\\x96\\xe7\\x95\\x8c\\xef\\xbc\\x81',\n '\\xe3\\x81\\x93\\xe3\\x82\\x93\\xe3\\x81\\xab\\xe3\\x81\\xa1\\xe3\\x81\\xaf\\xe4\\xb8\\x96\\xe7\\x95\\x8c',\n u'Hello, world!',\n u'\\u4f60\\u597d\\uff0c\\u4e16\\u754c\\uff01',\n u'\\u3053\\u3093\\u306b\\u3061\\u306f\\u4e16\\u754c']\n\nAfter:\n\n\u003e\u003e\u003e import uniout\n\u003e\u003e\u003e pprint(langs)\n['Hello, world!',\n '你好，世界！',\n 'こんにちは世界',\n u'Hello, world!',\n u'你好，世界！',\n u'こんにちは世界']\n\nInstallation\n------------\n\nYou can install it via PyPI,\n\n::\n\n    sudo pip install uniout\n\nor download it manually.\n\nChangelog\n---------\n\nv0.3.7\n~~~~~~\n\n1. Switch to long-string syntax (``'''`` or ``\"\"\"``) automatically.\n\nv0.3.6\n~~~~~~\n\n1. Fixed the issue with empty string.\n\nv0.3.5\n~~~~~~\n\n1. Make it still works for files.\n\nv0.3.4\n~~~~~~\n\n1. A better fix for the previous bug.\n\nv0.3.3\n~~~~~~\n\n1. Fixed the problem that Uniout can't be installed by PIP.\n\nv0.3.2\n~~~~~~\n\n1. Show the original string if the escaped string can't be decoded properly.\n2. Use better way to find string literals.\n3. Print more correct unescaped string representation.\n\nv0.3.1\n~~~~~~\n\n1. Fixed a bug when Uniout works with IPython.\n\nv0.3\n~~~~\n\nThanks for the pull requests `#3 \u003chttps://github.com/moskytw/uniout/pull/3\u003e`_ and `#4 \u003chttps://github.com/moskytw/uniout/pull/4\u003e`_ from `@timtan \u003chttps://github.com/timtan\u003e`_, it now\n\n1. works well with `IPython \u003chttp://ipython.org/\u003e`_,\n2. and also supports stderr.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoskytw%2Funiout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoskytw%2Funiout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoskytw%2Funiout/lists"}