{"id":21180,"library":"domain2idna","title":"domain2idna","description":"A Python tool to convert domains (or files containing domain lists) to IDNA (Punycode) format. Current version 1.12.4 supports Python >=3.6.2, <4.0. Release cadence is irregular with maintenance updates.","status":"active","version":"1.12.4","language":"python","source_language":"en","source_url":"https://github.com/PyFunceble/domain2idna","tags":["idna","punycode","domain","conversion","dns"],"install":[{"cmd":"pip install domain2idna","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from domain2idna import convert","symbol":"Converter","correct":"from domain2idna import Converter"},{"wrong":"from domain2idna import convert","symbol":"converter","correct":"from domain2idna import converter"},{"wrong":"from domain2idna import convert","symbol":"get","correct":"from domain2idna import get"}],"quickstart":{"code":"from domain2idna import convert\n\nresult = convert('münchen.de')\nprint(result)  # Output: xn--mnchen-3ya.de","lang":"python","description":"Convert a single domain with non-ASCII characters to IDNA (Punycode) format."},"warnings":[{"fix":"Replace 'get()' with 'convert()'.","message":"The 'get' function was deprecated in v1.10.1 and removed in later versions. Use 'convert' instead.","severity":"deprecated","affected_versions":">=1.10.1"},{"fix":"Be aware that certain strings (e.g., 'localhost', '0.0.0.0') are ignored and returned as-is.","message":"The library may return the input unchanged if it is already ASCII or contains common hostnames like 'localhost'. Check the documentation for ignored domains.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.12.4':19 '3.6.2':22 '4.0':23 'cadenc':25 'contain':10 'convers':34 'convert':6 'current':17 'dns':35 'domain':7,11,33 'domain2idna':1 'file':9 'format':16 'idna':14,31 'irregular':27 'list':12 'mainten':29 'punycod':15,32 'python':3,21 'releas':24 'support':20 'tool':4 'updat':30 'version':18","created_at":"2026-04-27T16:58:30.270132+00:00","updated_at":"2026-04-27T16:58:30.270132+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.12.4","cli_name":"domain2idna","cli_version":"domain2idna 1.12.4","type":"library","homepage":null,"github":"https://github.com/PyFunceble/domain2idna","docs":null,"changelog":null,"pypi":"https://pypi.org/project/domain2idna/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-06-30","next_check":"2026-07-30","install_tag":null}}