Загрузить файлы в «venv/Lib/site-packages/idna-3.18.dist-info»
This commit is contained in:
1
venv/Lib/site-packages/idna-3.18.dist-info/INSTALLER
Normal file
1
venv/Lib/site-packages/idna-3.18.dist-info/INSTALLER
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pip
|
||||||
155
venv/Lib/site-packages/idna-3.18.dist-info/METADATA
Normal file
155
venv/Lib/site-packages/idna-3.18.dist-info/METADATA
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
Metadata-Version: 2.4
|
||||||
|
Name: idna
|
||||||
|
Version: 3.18
|
||||||
|
Summary: Internationalized Domain Names in Applications (IDNA)
|
||||||
|
Author-email: Kim Davies <kim+pypi@gumleaf.org>
|
||||||
|
Requires-Python: >=3.9
|
||||||
|
Description-Content-Type: text/markdown
|
||||||
|
License-Expression: BSD-3-Clause
|
||||||
|
Classifier: Development Status :: 5 - Production/Stable
|
||||||
|
Classifier: Intended Audience :: Developers
|
||||||
|
Classifier: Intended Audience :: System Administrators
|
||||||
|
Classifier: Operating System :: OS Independent
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 3
|
||||||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||||||
|
Classifier: Programming Language :: Python :: 3.9
|
||||||
|
Classifier: Programming Language :: Python :: 3.10
|
||||||
|
Classifier: Programming Language :: Python :: 3.11
|
||||||
|
Classifier: Programming Language :: Python :: 3.12
|
||||||
|
Classifier: Programming Language :: Python :: 3.13
|
||||||
|
Classifier: Programming Language :: Python :: 3.14
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||||
|
Classifier: Topic :: Internet :: Name Service (DNS)
|
||||||
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||||
|
Classifier: Topic :: Utilities
|
||||||
|
License-File: LICENSE.md
|
||||||
|
Requires-Dist: ruff >= 0.6.2 ; extra == "all"
|
||||||
|
Requires-Dist: mypy >= 1.11.2 ; extra == "all"
|
||||||
|
Requires-Dist: pytest >= 8.3.2 ; extra == "all"
|
||||||
|
Project-URL: Changelog, https://github.com/kjd/idna/blob/master/HISTORY.md
|
||||||
|
Project-URL: Issue tracker, https://github.com/kjd/idna/issues
|
||||||
|
Project-URL: Source, https://github.com/kjd/idna
|
||||||
|
Provides-Extra: all
|
||||||
|
|
||||||
|
# Internationalized Domain Names in Applications (IDNA)
|
||||||
|
|
||||||
|
Support for [Internationalized Domain Names in Applications
|
||||||
|
(IDNA)](https://tools.ietf.org/html/rfc5891) and [Unicode IDNA
|
||||||
|
Compatibility Processing](https://unicode.org/reports/tr46/). It
|
||||||
|
supersedes the standard library's `encodings.idna`, which only
|
||||||
|
implements the 2003 specification, offering broader script coverage and
|
||||||
|
limiting domains with known security vulnerabilities.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Package may be installed from [PyPI](https://pypi.org/project/idna/) via
|
||||||
|
the typical methods (e.g. `python3 -m pip install idna`)
|
||||||
|
|
||||||
|
For typical usage, the `encode` and `decode` functions will take a
|
||||||
|
domain name argument and perform a conversion to ASCII-compatible encoding
|
||||||
|
(known as A-labels), or to Unicode strings (known as U-labels)
|
||||||
|
respectively.
|
||||||
|
|
||||||
|
```pycon
|
||||||
|
>>> import idna
|
||||||
|
>>> idna.encode('ドメイン.テスト')
|
||||||
|
b'xn--eckwd4c7c.xn--zckzah'
|
||||||
|
>>> print(idna.decode('xn--eckwd4c7c.xn--zckzah'))
|
||||||
|
ドメイン.テスト
|
||||||
|
```
|
||||||
|
|
||||||
|
Conversions can be applied at a per-label basis using the `ulabel` or
|
||||||
|
`alabel` functions for specialized use cases.
|
||||||
|
|
||||||
|
|
||||||
|
### Compatibility Mapping (UTS #46)
|
||||||
|
|
||||||
|
This library provides support for [Unicode IDNA Compatibility
|
||||||
|
Processing](https://unicode.org/reports/tr46/) which normalizes input from
|
||||||
|
different potential ways a user may input a domain prior to performing the IDNA
|
||||||
|
conversion operations. This functionality, known as a
|
||||||
|
[mapping](https://tools.ietf.org/html/rfc5895), is considered by the
|
||||||
|
specification to be a local user-interface issue distinct from IDNA
|
||||||
|
conversion functionality.
|
||||||
|
|
||||||
|
For example, "Königsgäßchen" is not a permissible label as capital letters
|
||||||
|
are not allowed. UTS 46 will convert this into lower case prior to applying
|
||||||
|
the IDNA conversion.
|
||||||
|
|
||||||
|
```pycon
|
||||||
|
>>> import idna
|
||||||
|
>>> idna.encode('Königsgäßchen')
|
||||||
|
...
|
||||||
|
idna.core.InvalidCodepoint: Codepoint U+004B at position 1 of 'Königsgäßchen' not allowed
|
||||||
|
>>> idna.encode('Königsgäßchen', uts46=True)
|
||||||
|
b'xn--knigsgchen-b4a3dun'
|
||||||
|
>>> idna.decode('xn--knigsgchen-b4a3dun')
|
||||||
|
'königsgäßchen'
|
||||||
|
```
|
||||||
|
|
||||||
|
When performing a decode operation for display purposes, `decode()`
|
||||||
|
accepts a `display=True` argument that leaves any `xn--` label that
|
||||||
|
fails to decode unchanged. This is useful for user interface display
|
||||||
|
where a domain is in use, the A-label form can be presented when it
|
||||||
|
is not a valid IDN.
|
||||||
|
|
||||||
|
|
||||||
|
## Exceptions
|
||||||
|
|
||||||
|
All errors raised during conversion derive from the `idna.IDNAError`
|
||||||
|
base class. The more specific exceptions are:
|
||||||
|
|
||||||
|
* `idna.IDNABidiError` — raised when a label contains an illegal
|
||||||
|
combination of left-to-right and right-to-left characters.
|
||||||
|
* `idna.InvalidCodepoint` — raised when a label contains a codepoint
|
||||||
|
that is INVALID for IDNA.
|
||||||
|
* `idna.InvalidCodepointContext` — raised when a CONTEXTO or CONTEXTJ
|
||||||
|
codepoint appears in a position whose contextual requirements are
|
||||||
|
not satisfied.
|
||||||
|
|
||||||
|
|
||||||
|
## Command-line tool
|
||||||
|
|
||||||
|
The package supports command-line usage to convert domain names
|
||||||
|
between their Unicode and ASCII-compatible forms. It can be run either
|
||||||
|
as a module (`python3 -m idna`) or, once installed (such as with `uv
|
||||||
|
tool` or `pipx`), via the `idna` script:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ uv tool install idna
|
||||||
|
$ idna xn--e1afmkfd.xn--p1ai
|
||||||
|
пример.рф
|
||||||
|
$ idna пример.рф
|
||||||
|
xn--e1afmkfd.xn--p1ai
|
||||||
|
```
|
||||||
|
|
||||||
|
Mode can be specified with `-e`/`--encode` or `-d`/`--decode`, otherwise
|
||||||
|
it will be chosen automatically based on the first input. Multiple
|
||||||
|
domains can be supplied either as arguments or through standard input.
|
||||||
|
UTS #46 mapping is applied by default, which lets the tool accept
|
||||||
|
inputs that aren't strictly valid IDNA 2008 by normalising them first,
|
||||||
|
pass `--strict` to disable UTS #46.
|
||||||
|
|
||||||
|
Conversion failures are reported on stderr together with the
|
||||||
|
offending input; processing continues with the remaining domains and
|
||||||
|
the tool exits with a non-zero status if any conversion failed.
|
||||||
|
|
||||||
|
|
||||||
|
## Additional Notes
|
||||||
|
|
||||||
|
* **Version support**. This library supports Python 3.9 and higher.
|
||||||
|
As this library serves as a low-level toolkit for a variety of
|
||||||
|
applications, we strive to support all versions of Python that are
|
||||||
|
not beyond end-of-life.
|
||||||
|
|
||||||
|
* **Emoji**. It is an occasional request to support emoji domains in
|
||||||
|
this library. Encoding of symbols like emoji is expressly prohibited by
|
||||||
|
the IDNA technical standard, and emoji domains are broadly phased
|
||||||
|
out across the domain industry due to associated security risks.
|
||||||
|
|
||||||
|
* **Regenerating lookup tables**. The IDNA and UTS 46 functionality
|
||||||
|
relies upon pre-calculated lookup tables, generated using the
|
||||||
|
`idna-data` script in [`tools/`](tools/README.md).
|
||||||
|
|
||||||
28
venv/Lib/site-packages/idna-3.18.dist-info/RECORD
Normal file
28
venv/Lib/site-packages/idna-3.18.dist-info/RECORD
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
../../Scripts/idna.exe,sha256=YfMqOUrlByrTWyvI7c5sut4rSi_Ye69J4E90mgBgI-0,108365
|
||||||
|
idna-3.18.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||||
|
idna-3.18.dist-info/METADATA,sha256=Rt_m5axGLQ9oDs2avPZugptqIzSCS02eOXmzETXK8oE,6119
|
||||||
|
idna-3.18.dist-info/RECORD,,
|
||||||
|
idna-3.18.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
||||||
|
idna-3.18.dist-info/entry_points.txt,sha256=7H3nGOHap3jnLE5e7q7Ywr9Vq8axB7WIj5-C_4N2vhw,38
|
||||||
|
idna-3.18.dist-info/licenses/LICENSE.md,sha256=GppPDj1HmickDd1ZqRN6ZqtKD539yMphiMwL_YUYfwQ,1541
|
||||||
|
idna/__init__.py,sha256=MPqNDLZbXqGaNdXxAFhiqFPKEQXju2jNQhCey6-5eJM,868
|
||||||
|
idna/__main__.py,sha256=4JMK66Wj4uLZTKbF-sT3LAxOsr6buig77PmOkJCRRxw,83
|
||||||
|
idna/__pycache__/__init__.cpython-314.pyc,,
|
||||||
|
idna/__pycache__/__main__.cpython-314.pyc,,
|
||||||
|
idna/__pycache__/cli.cpython-314.pyc,,
|
||||||
|
idna/__pycache__/codec.cpython-314.pyc,,
|
||||||
|
idna/__pycache__/compat.cpython-314.pyc,,
|
||||||
|
idna/__pycache__/core.cpython-314.pyc,,
|
||||||
|
idna/__pycache__/idnadata.cpython-314.pyc,,
|
||||||
|
idna/__pycache__/intranges.cpython-314.pyc,,
|
||||||
|
idna/__pycache__/package_data.cpython-314.pyc,,
|
||||||
|
idna/__pycache__/uts46data.cpython-314.pyc,,
|
||||||
|
idna/cli.py,sha256=swqJLMNc8Uzs60KziNpbWnHuqlG3WRQwJSbo4n8xDAo,4139
|
||||||
|
idna/codec.py,sha256=JRbo-f7pEkLdWeiH89Z72UR4VBYhvKDFrQBeNX6sRDE,5040
|
||||||
|
idna/compat.py,sha256=AepA39ceRHxkfHP41-FvKW5Ki-f4PfUZ90RUMlCNdmo,1353
|
||||||
|
idna/core.py,sha256=SfOr1xO3PoE0RDYx7bMciAnjiyjJPbPw_93AB5IUYOw,24685
|
||||||
|
idna/idnadata.py,sha256=Af-mo8WBmkhAK6TyXKOQH88OX0mQNDKtdL7UWtQpppk,44862
|
||||||
|
idna/intranges.py,sha256=g49scLSkqJtAhLmOODa7hVHriSjmb60tiTsEoocJdBI,1851
|
||||||
|
idna/package_data.py,sha256=TeI94EqAFAFaXfBJwsOPUMLn2969uirPa-DaeaceAyU,21
|
||||||
|
idna/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||||
|
idna/uts46data.py,sha256=jujNz5QqWMcJf-XYLv4X1jBvb5FlI0t6-e1mILsgbPk,234325
|
||||||
4
venv/Lib/site-packages/idna-3.18.dist-info/WHEEL
Normal file
4
venv/Lib/site-packages/idna-3.18.dist-info/WHEEL
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Wheel-Version: 1.0
|
||||||
|
Generator: flit 3.12.0
|
||||||
|
Root-Is-Purelib: true
|
||||||
|
Tag: py3-none-any
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[console_scripts]
|
||||||
|
idna=idna.cli:main
|
||||||
|
|
||||||
Reference in New Issue
Block a user