Skip to main content

Patch ssl.match_hostname for Unicode(idna) domains support

Project description

info:

Patch ssl.match_hostname for Unicode(idna) domains support

https://travis-ci.org/wikibusiness/idna_ssl.svg?branch=master https://img.shields.io/pypi/v/idna_ssl.svg https://codecov.io/gh/wikibusiness/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 not fixed yet (by November 2 2017) in python itself

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

idna_ssl-0.0.2.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file idna_ssl-0.0.2.tar.gz.

File metadata

  • Download URL: idna_ssl-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for idna_ssl-0.0.2.tar.gz
Algorithm Hash digest
SHA256 11d304dc62eb5c23d58e1acc0371f913958751fc3f624376068c045d9b9ce9e7
MD5 a8f5fd434135c1b930f7942d5af748c7
BLAKE2b-256 d6eb6abc4d385b90c94fb82fe4de6675f87e85ab37dcf8a07d8c06d9d90bc024

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