{
    "mode": "pydoc",
    "parameter": "unicodedata",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/unicodedata/json",
    "generated": "2026-06-02T15:03:21Z",
    "sections": {
        "NAME": {
            "content": "unicodedata\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module provides access to the Unicode Character Database which\ndefines character properties for all Unicode characters. The data in\nthis database is based on the UnicodeData.txt file version\n13.0.0 which is publicly available from ftp://ftp.unicode.org/.\n\nThe module uses the same names and symbols as defined by the\nUnicodeData File Format 13.0.0.\n",
            "subsections": []
        },
        "CLASSES": {
            "content": "builtins.object\nUCD\n",
            "subsections": [
                {
                    "name": "class UCD",
                    "content": "|  Methods defined here:\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  bidirectional(self, chr, /)\n|      Returns the bidirectional class assigned to the character chr as string.\n|\n|      If no such value is defined, an empty string is returned.\n|\n|  category(self, chr, /)\n|      Returns the general category assigned to the character chr as string.\n|\n|  combining(self, chr, /)\n|      Returns the canonical combining class assigned to the character chr as integer.\n|\n|      Returns 0 if no combining class is defined.\n|\n|  decimal(...)\n|      Converts a Unicode character into its equivalent decimal value.\n|\n|      Returns the decimal value assigned to the character chr as integer.\n|      If no such value is defined, default is returned, or, if not given,\n|      ValueError is raised.\n|\n|  decomposition(self, chr, /)\n|      Returns the character decomposition mapping assigned to the character chr as string.\n|\n|      An empty string is returned in case no such mapping is defined.\n|\n|  digit(...)\n|      Converts a Unicode character into its equivalent digit value.\n|\n|      Returns the digit value assigned to the character chr as integer.\n|      If no such value is defined, default is returned, or, if not given,\n|      ValueError is raised.\n|\n|  eastasianwidth(self, chr, /)\n|      Returns the east asian width assigned to the character chr as string.\n|\n|  isnormalized(self, form, unistr, /)\n|      Return whether the Unicode string unistr is in the normal form 'form'.\n|\n|      Valid values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'.\n|\n|  lookup(self, name, /)\n|      Look up character by name.\n|\n|      If a character with the given name is found, return the\n|      corresponding character.  If not found, KeyError is raised.\n|\n|  mirrored(self, chr, /)\n|      Returns the mirrored property assigned to the character chr as integer.\n|\n|      Returns 1 if the character has been identified as a \"mirrored\"\n|      character in bidirectional text, 0 otherwise.\n|\n|  name(...)\n|      Returns the name assigned to the character chr as a string.\n|\n|      If no name is defined, default is returned, or, if not given,\n|      ValueError is raised.\n|\n|  normalize(self, form, unistr, /)\n|      Return the normal form 'form' for the Unicode string unistr.\n|\n|      Valid values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'.\n|\n|  numeric(...)\n|      Converts a Unicode character into its equivalent numeric value.\n|\n|      Returns the numeric value assigned to the character chr as float.\n|      If no such value is defined, default is returned, or, if not given,\n|      ValueError is raised.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  unidataversion\n"
                }
            ]
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "bidirectional",
                    "content": "Returns the bidirectional class assigned to the character chr as string.\n\nIf no such value is defined, an empty string is returned.\n"
                },
                {
                    "name": "category",
                    "content": "Returns the general category assigned to the character chr as string.\n"
                },
                {
                    "name": "combining",
                    "content": "Returns the canonical combining class assigned to the character chr as integer.\n\nReturns 0 if no combining class is defined.\n"
                },
                {
                    "name": "decimal",
                    "content": "Converts a Unicode character into its equivalent decimal value.\n\nReturns the decimal value assigned to the character chr as integer.\nIf no such value is defined, default is returned, or, if not given,\nValueError is raised.\n"
                },
                {
                    "name": "decomposition",
                    "content": "Returns the character decomposition mapping assigned to the character chr as string.\n\nAn empty string is returned in case no such mapping is defined.\n"
                },
                {
                    "name": "digit",
                    "content": "Converts a Unicode character into its equivalent digit value.\n\nReturns the digit value assigned to the character chr as integer.\nIf no such value is defined, default is returned, or, if not given,\nValueError is raised.\n"
                },
                {
                    "name": "east_asian_width",
                    "content": "Returns the east asian width assigned to the character chr as string.\n"
                },
                {
                    "name": "is_normalized",
                    "content": "Return whether the Unicode string unistr is in the normal form 'form'.\n\nValid values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'.\n"
                },
                {
                    "name": "lookup",
                    "content": "Look up character by name.\n\nIf a character with the given name is found, return the\ncorresponding character.  If not found, KeyError is raised.\n"
                },
                {
                    "name": "mirrored",
                    "content": "Returns the mirrored property assigned to the character chr as integer.\n\nReturns 1 if the character has been identified as a \"mirrored\"\ncharacter in bidirectional text, 0 otherwise.\n"
                },
                {
                    "name": "name",
                    "content": "Returns the name assigned to the character chr as a string.\n\nIf no name is defined, default is returned, or, if not given,\nValueError is raised.\n"
                },
                {
                    "name": "normalize",
                    "content": "Return the normal form 'form' for the Unicode string unistr.\n\nValid values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'.\n"
                },
                {
                    "name": "numeric",
                    "content": "Converts a Unicode character into its equivalent numeric value.\n\nReturns the numeric value assigned to the character chr as float.\nIf no such value is defined, default is returned, or, if not given,\nValueError is raised.\n"
                }
            ]
        },
        "DATA": {
            "content": "ucd320 = <unicodedata.UCD object>\nunidataversion = '13.0.0'\n",
            "subsections": []
        },
        "FILE": {
            "content": "(built-in)\n\n",
            "subsections": []
        }
    },
    "summary": "unicodedata",
    "flags": [],
    "examples": [],
    "see_also": []
}