{ "info": { "author": "Clemens Radl", "author_email": "clemens.radl@googlemail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Text Processing", "Topic :: Text Processing :: General" ], "description": "*******\r\nrepchar\r\n*******\r\n\r\nThis is a simple command line script that creates a list of all\r\ncharacters contained in a given document.\r\n\r\nDownload, Installation\r\n======================\r\n\r\nrepchar is available on PyPI .\r\n\r\nInstall with ``pip install repchar``.\r\n\r\nUsage\r\n=====\r\n\r\nrepchar [-h] -o OUTFILENAME [-v] [-c] INFILENAME\r\n\r\npositional arguments:\r\n INFILENAME Filename\r\n\r\noptional arguments:\r\n -h, --help show this help message and exit\r\n -o OUTFILENAME, --outfile OUTFILENAME, --out OUTFILENAME\r\n Filename for report\r\n -v, --verbose Set log level to INFO.\r\n --version show program's version number and exit\r\n -c, --comb, --combining\r\n Create special report for combining characters\r\n\r\nThe ``Reporter`` class\r\n======================\r\n\r\nYou can also use the ``CharReporter`` class in your own code:\r\n\r\n.. code:: pycon\r\n\r\n >>> from repchar import CharReporter\r\n >>> s = u\"ABCD\"\r\n >>> r = CharReporter()\r\n >>> r.feed(s)\r\n >>> print(r.report())\r\n chr\thex\tcount\tunicode\r\n A\t0041\t1\tLATIN CAPITAL LETTER A\r\n B\t0042\t1\tLATIN CAPITAL LETTER B\r\n C\t0043\t1\tLATIN CAPITAL LETTER C\r\n D\t0044\t1\tLATIN CAPITAL LETTER D\r\n\r\nThe count of each letter is stored in ``CharReporter.chars``:\r\n\r\n.. code:: pycon\r\n\r\n >>> r.chars\r\n {u'A': 1, u'C': 1, u'B': 1, u'D': 1}\r\n\r\nSpecial information about combining characters can be collected in\r\n``CharReporter.combdir`` if you say so at instantiation:\r\n\r\n.. code:: pycon\r\n\r\n >>> from repchar import CharReporter\r\n >>> r2 = CharReporter(combining=True)\r\n >>> s = u\"Caffe\\u0300\"\r\n >>> r2.feed(s)\r\n >>> print(r2.report().encode(\"UTF-8\"))\r\n chr\thex\tcount\tunicode\r\n C\t0043\t1\tLATIN CAPITAL LETTER C\r\n a\t0061\t1\tLATIN SMALL LETTER A\r\n e\t0065\t1\tLATIN SMALL LETTER E\r\n f\t0066\t2\tLATIN SMALL LETTER F\r\n \u0300\t0300\t1\tCOMBINING GRAVE ACCENT\r\n 1 with: LATIN SMALL LETTER E\r\n >>> r2.combdir\r\n {u'\\u0300': {u'e': 1}}\r\n\r\n\r\n\r\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rotula/repchar", "keywords": "unicode", "license": "MIT", "maintainer": "Clemens Radl", "maintainer_email": "clemens.radl@googlemail.com", "name": "repchar", "package_url": "https://pypi.org/project/repchar/", "platform": "", "project_url": "https://pypi.org/project/repchar/", "project_urls": { "Homepage": "https://github.com/rotula/repchar" }, "release_url": "https://pypi.org/project/repchar/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Simple reporter for characters used in a file", "version": "1.0.2" }, "last_serial": 3831674, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "6ce2fa5ee3946f78104f0c173c648616", "sha256": "4edf2259765c6abfe09a771e59fb347a56e86cac00caf51c29451c4c77e4c146" }, "downloads": -1, "filename": "repchar-1.0.0.tar.gz", "has_sig": false, "md5_digest": "6ce2fa5ee3946f78104f0c173c648616", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3743, "upload_time": "2016-11-17T14:03:55", "url": "https://files.pythonhosted.org/packages/6a/7a/bbc91fe8428fb2571f31ce1934500916b79ed6ae2b1acf484c07db230300/repchar-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "07afa28446530e71788b12f6d47c69e1", "sha256": "172404da7b5986ae3c9cbc23d23848322111b9b40e9167e504366adb8b9d5123" }, "downloads": -1, "filename": "repchar-1.0.1.tar.gz", "has_sig": false, "md5_digest": "07afa28446530e71788b12f6d47c69e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3849, "upload_time": "2016-11-18T12:15:32", "url": "https://files.pythonhosted.org/packages/d8/28/b9c3d698aa76b4c5d4f3182f8ad3a53594d16e4b346ddd4ecd3c72a67008/repchar-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "45b2cb5dafec161fe47825b1960f5e24", "sha256": "96e57b5df90eb64f052ee57c6a419e8f3c0a998da070a5e74e3a64a09fb3fb7b" }, "downloads": -1, "filename": "repchar-1.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "45b2cb5dafec161fe47825b1960f5e24", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4455, "upload_time": "2018-05-03T17:06:26", "url": "https://files.pythonhosted.org/packages/93/03/3113ddf98e90893347069be488302b7f0cbaab7a1b71e48643091056c735/repchar-1.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d627e97a7f52626a9d1291ade35d4eaf", "sha256": "db415c57ce9e0e3ea5da4e9a49789db9369d6c32c4fe8c96b73de646c68c8646" }, "downloads": -1, "filename": "repchar-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "d627e97a7f52626a9d1291ade35d4eaf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4419, "upload_time": "2018-05-03T17:06:28", "url": "https://files.pythonhosted.org/packages/49/9b/398cfbcd75c6d125f8a834a56170d53cf1263db4d36f0444d1ee7355cbb8/repchar-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f56a33e8027ed5a099707afcafd71e5f", "sha256": "406f300e39828ffb389d7b4c1f1a381c7035fb288b3ec5b4d6351b707c8347f2" }, "downloads": -1, "filename": "repchar-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f56a33e8027ed5a099707afcafd71e5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4657, "upload_time": "2018-05-03T17:06:28", "url": "https://files.pythonhosted.org/packages/11/40/e7f1b96b29cae49a1f26c1551dbe621768bbe43ab0fdebf11e2b29178ce2/repchar-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "45b2cb5dafec161fe47825b1960f5e24", "sha256": "96e57b5df90eb64f052ee57c6a419e8f3c0a998da070a5e74e3a64a09fb3fb7b" }, "downloads": -1, "filename": "repchar-1.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "45b2cb5dafec161fe47825b1960f5e24", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4455, "upload_time": "2018-05-03T17:06:26", "url": "https://files.pythonhosted.org/packages/93/03/3113ddf98e90893347069be488302b7f0cbaab7a1b71e48643091056c735/repchar-1.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d627e97a7f52626a9d1291ade35d4eaf", "sha256": "db415c57ce9e0e3ea5da4e9a49789db9369d6c32c4fe8c96b73de646c68c8646" }, "downloads": -1, "filename": "repchar-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "d627e97a7f52626a9d1291ade35d4eaf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4419, "upload_time": "2018-05-03T17:06:28", "url": "https://files.pythonhosted.org/packages/49/9b/398cfbcd75c6d125f8a834a56170d53cf1263db4d36f0444d1ee7355cbb8/repchar-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f56a33e8027ed5a099707afcafd71e5f", "sha256": "406f300e39828ffb389d7b4c1f1a381c7035fb288b3ec5b4d6351b707c8347f2" }, "downloads": -1, "filename": "repchar-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f56a33e8027ed5a099707afcafd71e5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4657, "upload_time": "2018-05-03T17:06:28", "url": "https://files.pythonhosted.org/packages/11/40/e7f1b96b29cae49a1f26c1551dbe621768bbe43ab0fdebf11e2b29178ce2/repchar-1.0.2.tar.gz" } ] }