Skip to main content

The tool to convert a domain or a file with a list of domain to the famous IDNA format.

Project description

image

domains2idna

The tool to convert domains to the famous IDNA format.

This project provides a tool for list or hosts file maintainer that can converts domain to the Punycode/IDNA format.

Documentation as the place to be!

Want to know more about domain2idna? We invite you to read the documentation at https://domain2idna.readthedocs.io!

Want a local copy!? We get you covered!

Simply run the following and enjoy the documentation!

$ # We move to the docs directory
$ cd docs/
$ # We build the documentation
$ make html
$ # We run the documentation with our favorite browser.
$ chromium _builld/html/index.html

What can domain2idna do ?

  • Read a given domain and convert it to the Punycode/IDNA format.
  • Read a given URL and convert its base to Punycode/IDNA format.
  • Read a file and convert all non-commented line to the Punycode/IDNA format.
  • Print the converted data on the screen.
  • Save into a file the converted data.
  • Return the converted data (when used as a module).
  • Ignore commented inputs (starts with #)

License

MIT License

Copyright (c) 2018, 2019, 2020, 2021, 2022, 2023, 2024 Nissar Chababy
Copyright (c) 2019, 2020, 2021, 2022, 2023, 2024 PyFunceble Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

domain2idna-1.12.2.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

domain2idna-1.12.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file domain2idna-1.12.2.tar.gz.

File metadata

  • Download URL: domain2idna-1.12.2.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for domain2idna-1.12.2.tar.gz
Algorithm Hash digest
SHA256 78c6da089f44d63b4a17d4a473bf0c8020e383a519af37a726971db72f730b83
MD5 c981e00ca286dbc3cff1eb013343e541
BLAKE2b-256 c1a709889692e1e37fd8782ada87b51759e996c68de2e30962fff409f4028761

See more details on using hashes here.

File details

Details for the file domain2idna-1.12.2-py3-none-any.whl.

File metadata

  • Download URL: domain2idna-1.12.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for domain2idna-1.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 872ff4aa20b8174b887b45a638a0701e7b5d589ceb21b6b12c9209f64bb1fbb3
MD5 3b6ad73ae35c2e8bf32006480b4bede5
BLAKE2b-256 1375901d286f5f29c23c6651d7384608ce52f6cf2707e3c4408fb975aa540ba9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page