Skip to main content
info:

Patch ssl.match_hostname for Unicode(idna) domains support

https://travis-ci.org/aio-libs/idna_ssl.svg?branch=master https://img.shields.io/pypi/v/idna_ssl.svg https://codecov.io/gh/aio-libs/idna_ssl/branch/master/graph/badge.svg

Installation

pip install idna_ssl

Usage

from idna_ssl import patch_match_hostname  # noqa isort:skip
patch_match_hostname()  # noqa isort:skip

import asyncio

import aiohttp

URL = 'https://цфоут.мвд.рф/news/item/8065038/'


async def main():
    async with aiohttp.ClientSession() as session:
        async with session.get(URL) as response:
            print(response)


loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Motivation

  • Here is 100% backward capability

  • Related aiohttp issue

  • Related Python bug

  • Related Python pull request

  • It is fixed (by January 27 2018) in upcoming Python 3.7, but IDNA2008 is still broken

Thanks

The library was donated by Ocean S.A.

Thanks to the company for contribution.

Release files for idna_ssl 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for idna_ssl 1.0.0
File Size Uploaded
idna_ssl-1.0.0.tar.gz 3.4 kB Details

Release files / idna_ssl-1.0.0.tar.gz

Download URL idna_ssl-1.0.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1227e44039bd31e02adaeafdbba61281596d623d222643fb021f87f2144ea147
BLAKE2b-256 checksum
How to use checksums
44f497f7a58e814b3523a5e68bc8095c36cfa6daffb35f01b25248ec4605f53e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.1.0

1 release file

1.0.1

1 release file

This release

1.0.0 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page