{ "info": { "author": "Felipe A. Hernandez", "author_email": "ergoithz@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "# unicategories\n\nUnicode category database, generated on setup.\n\nThis module exposes a category dictionary containing `RangeGroup` instances.\n\n\n## Example\n\n```python\nfrom unicategories import categories\n\nupperchars = categories['Lu'].characters() # iterator\nprint('Unicode uppercase caracters are \"%s\"' % ''.join(upperchars))\n# Unicode uppercase caracters are \"ABCDEF...\"\n```\n\n\n## RangeGroup\n\nImmutable iterable (based on tuple, with some useful methods) of (start, end)\ntuples being, like python's `range`, open at the end.\n\nThis method have been chosen for memory efficiency, storing individually all\ncharacters on memory would take a lot of memory.\n\nRangeGroup class provides the following methods:\n\n### `range_group.characters()`\n```rst\nGet iterator with all characters on this range group.\n\n:yields: iterator of characters (str of size 1)\n:ytype: str\n```\n\n### `range_group.codes()`\n```rst\nGet iterator for all unicode code points contained in this range group.\n\n:yields: iterator of character index (int)\n:ytype: int\n```\n\n### `range_group.has(character)`\n```rst\nGet if character (or character code point) is contained by any range on\nthis range group.\n\n:param character: character or unicode code point to look for\n:type character: str or int\n:returns: True if character is contained by any range, False otherwise\n:rtype: bool\n```\n\n## Unicode categories\n------------------\n\nTaken from [wikipedia](https://en.wikipedia.org/wiki/Template:General_Category_(Unicode)).\n\n| Value | Category Major, minor | Basic type | Character assigned | Fixed | Remarks |\n|--------|----------------------------|----------------|------------------------|-------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| Lu | Letter, uppercase | Graphic | Character | | |\n| Ll | Letter, lowercase | Graphic | Character | | |\n| Lt | Letter, titlecase | Graphic | Character | | Ligatures containing uppercase followed by lowercase letters (e.g., `\u01c5` , `\u01c8` , `\u01cb` , and `\u01f2` ) |\n| Lm | Letter, modifier | Graphic | Character | | |\n| Lo | Letter, other | Graphic | Character | | |\n| Mn | Mark, nonspacing | Graphic | Character | | |\n| Mc | Mark, spacing combining | Graphic | Character | | |\n| Me | Mark, enclosing | Graphic | Character | | |\n| Nd | Number, decimal digit | Graphic | Character | | All these, and only these, have Numeric Type = De |\n| Nl | Number, letter | Graphic | Character | | Numerals composed of letters or letterlike symbols (e.g., Roman numerals ) |\n| No | Number, other | Graphic | Character | | E.g., vulgar fractions , superscript and subscript digits |\n| Pc | Punctuation, connector | Graphic | Character | | Includes \"_\" underscore |\n| Pd | Punctuation, dash | Graphic | Character | | Includes several hyphen characters |\n| Ps | Punctuation, open | Graphic | Character | | Opening bracket characters |\n| Pe | Punctuation, close | Graphic | Character | | Closing bracket characters |\n| Pi | Punctuation, initial quote | Graphic | Character | | Opening quotation mark . Does not include the ASCII \"neutral\" quotation mark. May behave like Ps or Pe depending on usage |\n| Pf | Punctuation, final quote | Graphic | Character | | Closing quotation mark. May behave like Ps or Pe depending on usage |\n| Po | Punctuation, other | Graphic | Character | | |\n| Sm | Symbol, math | Graphic | Character | | |\n| Sc | Symbol, currency | Graphic | Character | | |\n| Sk | Symbol, modifier | Graphic | Character | | |\n| So | Symbol, other | Graphic | Character | | |\n| Zs | Separator, space | Graphic | Character | | Includes the space, but not TAB , CR , or LF , which are Cc |\n| Zl | Separator, line | Format | Character | | Only U+2028 LINE SEPARATOR (LSEP) |\n| Zp | Separator, paragraph | Format | Character | | Only U+2029 PARAGRAPH SEPARATOR (PSEP) |\n| Cc | Other, control | Control | Character | Fixed 65 | No name , `` |\n| Cf | Other, format | Format | Character | | Includes the soft hyphen , control characters to support bi-directional text , and language tag characters |\n| Cs | Other, surrogate | Surrogate | Not (but abstract) | Fixed 2,048 | No name , `` |\n| Co | Other, private use | Private-use | Not (but abstract) | Fixed 137,468 total: 6,400 in BMP , 131,068 in Planes 15\u201316 | No name , `` |\n| Cn | Other, not assigned | Noncharacter | Not | Fixed 66 | No name , `` |\n| Cn | Other, not assigned | Reserved | Not | Not fixed | No name , `` |\n\nIn addition to that, unicategories provide general categories `L`, `M`, `N`, `P`, `S`, `Z` and `C`.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/ergoithz/unicategories", "keywords": "unicode", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "unicategories", "package_url": "https://pypi.org/project/unicategories/", "platform": "any", "project_url": "https://pypi.org/project/unicategories/", "project_urls": { "Homepage": "https://gitlab.com/ergoithz/unicategories" }, "release_url": "https://pypi.org/project/unicategories/0.1.0/", "requires_dist": [ "appdirs" ], "requires_python": "", "summary": "Unicode category database", "version": "0.1.0" }, "last_serial": 5427558, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "8c5720d8957cfd33f96e9c7150141966", "sha256": "0d4d37ab10d29dedfc284e2f560c9cc0996cd3cc91b381f31815f84cf59f1b71" }, "downloads": -1, "filename": "unicategories-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8c5720d8957cfd33f96e9c7150141966", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6681, "upload_time": "2017-04-13T20:55:44", "url": "https://files.pythonhosted.org/packages/28/e5/3b425eafd38e2447b9d68041a67f3c20154655bb8cd73244e6af89708be7/unicategories-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "6b3b19e5508dbecdbb03fb7c0c131a66", "sha256": "09ae5e4bf5e65c2419003ffe59f7680d3995c33331e4f342fd7173eb10278427" }, "downloads": -1, "filename": "unicategories-0.0.2.tar.gz", "has_sig": false, "md5_digest": "6b3b19e5508dbecdbb03fb7c0c131a66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14258, "upload_time": "2017-04-13T22:43:24", "url": "https://files.pythonhosted.org/packages/ad/f0/dcf2105096687eeeecc1061c945f06879639818d3f4fd0f4eb9bd75c1d50/unicategories-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "faabdda9fd5f1944adc847ea654d1ee7", "sha256": "2f8594c9cd99208b09e925dad2cb1ec5b1bbb41ee54ee4ccb436c6c5844da104" }, "downloads": -1, "filename": "unicategories-0.0.3.tar.gz", "has_sig": false, "md5_digest": "faabdda9fd5f1944adc847ea654d1ee7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14663, "upload_time": "2017-04-14T00:11:17", "url": "https://files.pythonhosted.org/packages/ba/ad/707fe1eb1cb00ea4309e572ebaf27dcf22ba20c071ee147775d6f0e81de1/unicategories-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "bf421822c0d4690402f764238010239b", "sha256": "1fe307bc860d4dc4cac8c5cfa3cd74d5d5c883c9acf8db2eccbc0106994cb152" }, "downloads": -1, "filename": "unicategories-0.0.4.tar.gz", "has_sig": false, "md5_digest": "bf421822c0d4690402f764238010239b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14680, "upload_time": "2017-04-14T08:44:20", "url": "https://files.pythonhosted.org/packages/a6/f8/f245e0940f3cceead1bc176830dbf7f86e78e1d3982c133a138e7546832b/unicategories-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "3030ffd3b76455ef0a77511d193417f6", "sha256": "c9d0bb74b5e2e47a8ebc9fe72f742c73f740be2f0c9d8b8b627f84654071ff6f" }, "downloads": -1, "filename": "unicategories-0.0.5.tar.gz", "has_sig": false, "md5_digest": "3030ffd3b76455ef0a77511d193417f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11608, "upload_time": "2017-06-01T14:22:03", "url": "https://files.pythonhosted.org/packages/48/fb/441ae1f40e31982541fa88e492aac62167f93763de89eb1eed6d08078ddd/unicategories-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "84703455ad59206295da935ed63d1b0c", "sha256": "909bacbbeb0f19a8e8f6b97b3511d981cd3b1269dfdce626cb6b7afe8429fd8b" }, "downloads": -1, "filename": "unicategories-0.0.6.tar.gz", "has_sig": false, "md5_digest": "84703455ad59206295da935ed63d1b0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11621, "upload_time": "2017-08-08T15:39:54", "url": "https://files.pythonhosted.org/packages/48/0f/cb039e9abc5c3305100cf93cb98685f3c28a09fa54fca51cc5d36375ae05/unicategories-0.0.6.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "38db78ab227ed9a338e6c03a22d62d16", "sha256": "e56c382799245c116a539618c8162539f9d5e2350c638ebeaa0326558c689533" }, "downloads": -1, "filename": "unicategories-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "38db78ab227ed9a338e6c03a22d62d16", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 47704, "upload_time": "2019-06-20T20:43:04", "url": "https://files.pythonhosted.org/packages/ac/92/5ebbe4155301459f86b7629d7778698dcfa9bbf1f49ae32f4b3398d7396b/unicategories-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2e30d9c070ae8dfefeff6ba07f2a651f", "sha256": "f6202636473fdb229f26aedc604f2a30456789f236952d527ee947eba18843ac" }, "downloads": -1, "filename": "unicategories-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2e30d9c070ae8dfefeff6ba07f2a651f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9491, "upload_time": "2019-06-20T20:43:06", "url": "https://files.pythonhosted.org/packages/1e/f0/24373fa869554c0cec804ea5fc55e8e432f0a3481f10ac97d03467a2c61f/unicategories-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "38db78ab227ed9a338e6c03a22d62d16", "sha256": "e56c382799245c116a539618c8162539f9d5e2350c638ebeaa0326558c689533" }, "downloads": -1, "filename": "unicategories-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "38db78ab227ed9a338e6c03a22d62d16", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 47704, "upload_time": "2019-06-20T20:43:04", "url": "https://files.pythonhosted.org/packages/ac/92/5ebbe4155301459f86b7629d7778698dcfa9bbf1f49ae32f4b3398d7396b/unicategories-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2e30d9c070ae8dfefeff6ba07f2a651f", "sha256": "f6202636473fdb229f26aedc604f2a30456789f236952d527ee947eba18843ac" }, "downloads": -1, "filename": "unicategories-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2e30d9c070ae8dfefeff6ba07f2a651f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9491, "upload_time": "2019-06-20T20:43:06", "url": "https://files.pythonhosted.org/packages/1e/f0/24373fa869554c0cec804ea5fc55e8e432f0a3481f10ac97d03467a2c61f/unicategories-0.1.0.tar.gz" } ] }