• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

idna_ssl.egg-info/H03-May-2022-8258

LICENSEH A D30-Mar-20221.1 KiB2318

MANIFEST.inH A D30-Mar-202296 54

PKG-INFOH A D30-Mar-20222.7 KiB8258

README.rstH A D30-Mar-20221.5 KiB6138

idna_ssl.pyH A D30-Mar-2022779 4125

setup.cfgH A D30-Mar-2022293 1611

setup.pyH A D30-Mar-20221.5 KiB5442

README.rst

1idna-ssl
2========
3
4:info: Patch ssl.match_hostname for Unicode(idna) domains support
5
6.. image:: https://travis-ci.com/aio-libs/idna-ssl.svg?branch=master
7    :target: https://travis-ci.com/aio-libs/idna-ssl
8
9.. image:: https://img.shields.io/pypi/v/idna_ssl.svg
10    :target: https://pypi.python.org/pypi/idna_ssl
11
12.. image:: https://codecov.io/gh/aio-libs/idna-ssl/branch/master/graph/badge.svg
13    :target: https://codecov.io/gh/aio-libs/idna-ssl
14
15Installation
16------------
17
18.. code-block:: shell
19
20    pip install idna-ssl
21
22Usage
23-----
24
25.. code-block:: python
26
27    from idna_ssl import patch_match_hostname  # noqa isort:skip
28    patch_match_hostname()  # noqa isort:skip
29
30    import asyncio
31
32    import aiohttp
33
34    URL = 'https://цфоут.мвд.рф/news/item/8065038/'
35
36
37    async def main():
38        async with aiohttp.ClientSession() as session:
39            async with session.get(URL) as response:
40                print(response)
41
42
43    loop = asyncio.get_event_loop()
44    loop.run_until_complete(main())
45
46Motivation
47----------
48
49* Here is 100% backward capability
50* Related aiohttp `issue <https://github.com/aio-libs/aiohttp/issues/949>`_
51* Related Python `bug <https://bugs.python.org/issue31872>`_
52* Related Python `pull request <https://github.com/python/cpython/pull/3462>`_
53* It is fixed (by January 27 2018) in upcoming Python 3.7, but `IDNA2008 <https://tools.ietf.org/html/rfc5895>`_ is still broken
54
55Thanks
56------
57
58The library was donated by `Ocean S.A. <https://ocean.io/>`_
59
60Thanks to the company for contribution.
61