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

The tool to convert domains to the famous IDNA format.

https://travis-ci.com/PyFunceble/domain2idna.svg?branch=master https://coveralls.io/repos/github/PyFunceble/domain2idna/badge.svg?branch=master https://api.codacy.com/project/badge/Grade/7fc14987068e409e9ddb70195f2485ab https://img.shields.io/github/license/PyFunceble/domain2idna.svg https://img.shields.io/github/release/PyFunceble/domain2idna.svg https://img.shields.io/badge/code%20style-black-000000.svg

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) 2019, 2020 PyFunceble
Copyright (c) 2018, 2019, 2020 Nissar Chababy

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.10.2.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

domain2idna-1.10.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: domain2idna-1.10.2.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for domain2idna-1.10.2.tar.gz
Algorithm Hash digest
SHA256 1b422a14915d1e58f311fb2ea4c65d70efa8de94b21fecf204c56b735c3ea23c
MD5 6b1a0ce4a1c7d9528e0445d0b41ef7b5
BLAKE2b-256 d539b777d12eb39684ef42fe1734bd51812f21e2055c8384ba289627a9940d7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: domain2idna-1.10.2-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for domain2idna-1.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7965fbd6fac0d500c7d2711a88c9d8856f90650f3ddf37d93e9f7d039ca8534
MD5 531dae6a4a5a08ed003b453aa061956f
BLAKE2b-256 ea226f2e0e003a351c0cf93f07179bbd9408912792fc7d7caee5fc3f6f3455df

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