{ "info": { "author": "Mike Miller", "author_email": "no@reply.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 6 - Mature", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2" ], "description": "\nInspired by ordereddict,\nthis is a packaging of an improved shlex module for Python 2 that handles\nUnicode properly.\n\nShlex is \"A lexical analyzer class for simple shell-like syntaxes.\"\n\nIf you've found your way here,\nyou probably already know that the standard shlex doesn't handle Unicode prior\nto Python 3\n(see `bug 1170 `_ for details).\nSince Python 2.7.3 however,\nit accepts unicode objects.\nSadly, it still does not handle non-ascii chars:\n\n.. code-block:: python\n\n >>> import sys, shlex\n >>> sys.version\n '2.7.5+ ...'\n >>> shlex.split(u'Hello world')\n ['Hello', 'world']\n\n >>> shlex.split(u'caf\u00e9')\n Traceback (most recent call last):\n File \"\", line 1, in \n File \"/usr/lib/python2.7/shlex.py\", line 275, in split\n lex = shlex(s, posix=posix)\n File \"/usr/lib/python2.7/shlex.py\", line 25, in __init__\n instream = StringIO(instream)\n UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe9' in\n position 3: ordinal not in range(128)\n\n\nThis module *does* handle unicode objects and byte strings under Python 2.x:\n\n.. code-block:: python\n\n >>> import ushlex as shlex\n >>> shlex.split(u'caf\u00e9')\n [u'caf\\xe9']\n\n >>> shlex.split(u'echo \"\u263a \u2615 \u266b\"')\n [u'echo', u'\\u263a \\u2615 \\u266b']\n\n >>> from ushlex import split as shplit\n >>> shplit('echo \"hello there\"')\n ['echo', 'hello there']\n\nI found these release notes inside::\n\n # Module and documentation by Eric S. Raymond, 21 Dec 1998\n # Input stacking and error message cleanup added by ESR, March 2000\n # push_source() and pop_source() made explicit by ESR, January 2001.\n # Posix compliance, split(), string arguments, and\n # iterator interface by Gustavo Niemeyer, April 2003.\n # Modified to support Unicode by Colin Walters, Dec 2007\n\n\nBugs\n------\n\nPackaging-only bugs may be submitted to bitbucket.\n*Do not* enter bugs for ushlex itself,\nas the packager is not the author.\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://bitbucket.org/mixmastamyk/ushlex/get/default.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/mixmastamyk/ushlex", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "ushlex", "package_url": "https://pypi.org/project/ushlex/", "platform": "", "project_url": "https://pypi.org/project/ushlex/", "project_urls": { "Download": "https://bitbucket.org/mixmastamyk/ushlex/get/default.tar.gz", "Homepage": "https://bitbucket.org/mixmastamyk/ushlex" }, "release_url": "https://pypi.org/project/ushlex/0.99.1/", "requires_dist": null, "requires_python": "", "summary": "Replacement for shlex (that works with unicode) for Python 2.X.", "version": "0.99.1" }, "last_serial": 4196637, "releases": { "0.98": [ { "comment_text": "", "digests": { "md5": "f2538093eb851173801097cd3158cb0f", "sha256": "0822dbf90c249e1932c1a3aa0e94d20569ec69fe0caea0e6658d187d1777f558" }, "downloads": -1, "filename": "ushlex-0.98.tar.gz", "has_sig": false, "md5_digest": "f2538093eb851173801097cd3158cb0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4528, "upload_time": "2013-11-09T02:32:41", "url": "https://files.pythonhosted.org/packages/60/d6/a196bfbfbc748931e711cecf390706d0c9b1c20517697fbb38b396f78a58/ushlex-0.98.tar.gz" } ], "0.99": [ { "comment_text": "", "digests": { "md5": "3d208ec143d02e42c0e30b20f7225109", "sha256": "78374e8ff1b831bfbbb787dfa7ded3a459ea1d14cddd2ab7435503cb9f090dc3" }, "downloads": -1, "filename": "ushlex-0.99.tar.gz", "has_sig": false, "md5_digest": "3d208ec143d02e42c0e30b20f7225109", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4588, "upload_time": "2014-08-02T01:55:18", "url": "https://files.pythonhosted.org/packages/50/0b/273e41a89e69fcc3947d58d03809c5203e3be8815f319e6f49d7c99c6f01/ushlex-0.99.tar.gz" } ], "0.99.1": [ { "comment_text": "", "digests": { "md5": "16fb530e4cfc589dd615d043f075bfdc", "sha256": "6d681561545a9781430d5254eab9a648bade78c82ffd127d56c9228ae8887d46" }, "downloads": -1, "filename": "ushlex-0.99.1.tar.gz", "has_sig": false, "md5_digest": "16fb530e4cfc589dd615d043f075bfdc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4712, "upload_time": "2018-08-22T15:40:31", "url": "https://files.pythonhosted.org/packages/48/e0/33fa11058c8efc51ba3520ceb85c9fa0c5e42ce414b885fcd5e12132d13b/ushlex-0.99.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "16fb530e4cfc589dd615d043f075bfdc", "sha256": "6d681561545a9781430d5254eab9a648bade78c82ffd127d56c9228ae8887d46" }, "downloads": -1, "filename": "ushlex-0.99.1.tar.gz", "has_sig": false, "md5_digest": "16fb530e4cfc589dd615d043f075bfdc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4712, "upload_time": "2018-08-22T15:40:31", "url": "https://files.pythonhosted.org/packages/48/e0/33fa11058c8efc51ba3520ceb85c9fa0c5e42ce414b885fcd5e12132d13b/ushlex-0.99.1.tar.gz" } ] }