Install & Compatibility
Where this runs
tested against v1.12.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.1MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.9s · import 0.000s · 19MB
20MB installed
● package 20MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Converter
✓ from domain2idna import Converter
✗ from domain2idna import convert
converter
✓ from domain2idna import converter
✗ from domain2idna import convert
get
✓ from domain2idna import get
✗ from domain2idna import convert
Convert a single domain with non-ASCII characters to IDNA (Punycode) format.
from domain2idna import convert
result = convert('münchen.de')
print(result) # Output: xn--mnchen-3ya.de
domain2idna --version
Upgrade
Version history
1.12.4latest on PyPI · released Jan 24, 2026
Audit
Dependencies
No dependency data recorded yet.