{
    "mode": "pydoc",
    "parameter": "idna",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/idna/json",
    "generated": "2026-06-02T13:25:05Z",
    "sections": {
        "NAME": {
            "content": "idna\n",
            "subsections": []
        },
        "PACKAGE CONTENTS": {
            "content": "codec\ncompat\ncore\nidnadata\nintranges\npackagedata\nuts46data\n",
            "subsections": []
        },
        "CLASSES": {
            "content": "builtins.UnicodeError(builtins.ValueError)\nidna.core.IDNAError\nidna.core.IDNABidiError\nidna.core.InvalidCodepoint\nidna.core.InvalidCodepointContext\n",
            "subsections": [
                {
                    "name": "class IDNABidiError",
                    "content": "|  Exception when bidirectional requirements are not satisfied\n|\n|  Method resolution order:\n|      IDNABidiError\n|      IDNAError\n|      builtins.UnicodeError\n|      builtins.ValueError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from IDNAError:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.UnicodeError:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.UnicodeError:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class IDNAError",
                    "content": "|  Base exception for all IDNA-encoding related problems\n|\n|  Method resolution order:\n|      IDNAError\n|      builtins.UnicodeError\n|      builtins.ValueError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors defined here:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.UnicodeError:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.UnicodeError:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class InvalidCodepoint",
                    "content": "|  Exception when a disallowed or unallocated codepoint is used\n|\n|  Method resolution order:\n|      InvalidCodepoint\n|      IDNAError\n|      builtins.UnicodeError\n|      builtins.ValueError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from IDNAError:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.UnicodeError:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.UnicodeError:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class InvalidCodepointContext",
                    "content": "|  Exception when the codepoint is not valid in the context it is used\n|\n|  Method resolution order:\n|      InvalidCodepointContext\n|      IDNAError\n|      builtins.UnicodeError\n|      builtins.ValueError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from IDNAError:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.UnicodeError:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.UnicodeError:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                }
            ]
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "alabel",
                    "content": ""
                },
                {
                    "name": "check_bidi",
                    "content": ""
                },
                {
                    "name": "check_hyphen_ok",
                    "content": ""
                },
                {
                    "name": "check_initial_combiner",
                    "content": ""
                },
                {
                    "name": "check_label",
                    "content": ""
                },
                {
                    "name": "check_nfc",
                    "content": ""
                },
                {
                    "name": "decode",
                    "content": ""
                },
                {
                    "name": "encode",
                    "content": ""
                },
                {
                    "name": "intranges_contain",
                    "content": "Determine if `int` falls into one of the ranges in `ranges`.\n"
                },
                {
                    "name": "ulabel",
                    "content": ""
                },
                {
                    "name": "uts46_remap",
                    "content": "Re-map the characters in the string according to UTS46 processing.\n"
                },
                {
                    "name": "valid_contextj",
                    "content": ""
                },
                {
                    "name": "valid_contexto",
                    "content": ""
                },
                {
                    "name": "valid_label_length",
                    "content": ""
                },
                {
                    "name": "valid_string_length",
                    "content": ""
                }
            ]
        },
        "DATA": {
            "content": "all = ['IDNABidiError', 'IDNAError', 'InvalidCodepoint', 'InvalidC...\n",
            "subsections": []
        },
        "VERSION": {
            "content": "3.3\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3/dist-packages/idna/init.py\n\n",
            "subsections": []
        }
    },
    "summary": "idna",
    "flags": [],
    "examples": [],
    "see_also": []
}