Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/INSTALLER +1 -0
- python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/LICENSE +22 -0
- python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/METADATA +321 -0
- python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/RECORD +10 -0
- python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/WHEEL +5 -0
- python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/top_level.txt +2 -0
- python/user_packages/Python313/site-packages/pillow-12.2.0.dist-info/METADATA +175 -0
- python/user_packages/Python313/site-packages/pillow-12.2.0.dist-info/RECORD +218 -0
- python/user_packages/Python313/site-packages/pillow-12.2.0.dist-info/WHEEL +5 -0
- python/user_packages/Python313/site-packages/pillow-12.2.0.dist-info/top_level.txt +1 -0
- python/user_packages/Python313/site-packages/pillow-12.2.0.dist-info/zip-safe +1 -0
- python/user_packages/Python313/site-packages/propcache-0.5.2.dist-info/INSTALLER +1 -0
- python/user_packages/Python313/site-packages/propcache-0.5.2.dist-info/METADATA +539 -0
- python/user_packages/Python313/site-packages/propcache-0.5.2.dist-info/RECORD +18 -0
- python/user_packages/Python313/site-packages/propcache-0.5.2.dist-info/WHEEL +5 -0
- python/user_packages/Python313/site-packages/propcache-0.5.2.dist-info/top_level.txt +1 -0
- python/user_packages/Python313/site-packages/propcache/__init__.py +32 -0
- python/user_packages/Python313/site-packages/propcache/_helpers.py +39 -0
- python/user_packages/Python313/site-packages/propcache/_helpers_c.cp313-win_amd64.pyd +0 -0
- python/user_packages/Python313/site-packages/propcache/_helpers_c.pyx +103 -0
- python/user_packages/Python313/site-packages/propcache/_helpers_py.py +64 -0
- python/user_packages/Python313/site-packages/propcache/api.py +8 -0
- python/user_packages/Python313/site-packages/propcache/py.typed +1 -0
- python/user_packages/Python313/site-packages/protobuf-6.33.6.dist-info/INSTALLER +1 -0
- python/user_packages/Python313/site-packages/protobuf-6.33.6.dist-info/LICENSE +32 -0
- python/user_packages/Python313/site-packages/protobuf-6.33.6.dist-info/METADATA +17 -0
- python/user_packages/Python313/site-packages/protobuf-6.33.6.dist-info/RECORD +114 -0
- python/user_packages/Python313/site-packages/protobuf-6.33.6.dist-info/WHEEL +4 -0
- python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/AUTHORS.rst +12 -0
- python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/INSTALLER +1 -0
- python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/METADATA +377 -0
- python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/RECORD +11 -0
- python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/WHEEL +6 -0
- python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/top_level.txt +1 -0
- python/user_packages/Python313/site-packages/publicsuffix2/__init__.py +397 -0
- python/user_packages/Python313/site-packages/publicsuffix2/mpl-2.0.LICENSE +378 -0
- python/user_packages/Python313/site-packages/publicsuffix2/public_suffix_list.ABOUT +11 -0
- python/user_packages/Python313/site-packages/publicsuffix2/public_suffix_list.dat +0 -0
- python/user_packages/Python313/site-packages/py_rust_stemmers-0.1.5.dist-info/INSTALLER +1 -0
- python/user_packages/Python313/site-packages/py_rust_stemmers-0.1.5.dist-info/METADATA +91 -0
- python/user_packages/Python313/site-packages/py_rust_stemmers-0.1.5.dist-info/RECORD +8 -0
- python/user_packages/Python313/site-packages/py_rust_stemmers-0.1.5.dist-info/WHEEL +4 -0
- python/user_packages/Python313/site-packages/py_rust_stemmers/__init__.py +5 -0
- python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/INSTALLER +1 -0
- python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/METADATA +228 -0
- python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/RECORD +71 -0
- python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/WHEEL +5 -0
- python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/top_level.txt +1 -0
- python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/zip-safe +1 -0
- python/user_packages/Python313/site-packages/pyasn1/__init__.py +2 -0
python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright 2006 Dan-Haim. All rights reserved.
|
| 2 |
+
|
| 3 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 4 |
+
are permitted provided that the following conditions are met:
|
| 5 |
+
1. Redistributions of source code must retain the above copyright notice, this
|
| 6 |
+
list of conditions and the following disclaimer.
|
| 7 |
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
| 8 |
+
this list of conditions and the following disclaimer in the documentation
|
| 9 |
+
and/or other materials provided with the distribution.
|
| 10 |
+
3. Neither the name of Dan Haim nor the names of his contributors may be used
|
| 11 |
+
to endorse or promote products derived from this software without specific
|
| 12 |
+
prior written permission.
|
| 13 |
+
|
| 14 |
+
THIS SOFTWARE IS PROVIDED BY DAN HAIM "AS IS" AND ANY EXPRESS OR IMPLIED
|
| 15 |
+
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
| 16 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
| 17 |
+
EVENT SHALL DAN HAIM OR HIS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
| 18 |
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 19 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA
|
| 20 |
+
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
| 21 |
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
| 22 |
+
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMANGE.
|
python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/METADATA
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: PySocks
|
| 3 |
+
Version: 1.7.1
|
| 4 |
+
Summary: A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.
|
| 5 |
+
Home-page: https://github.com/Anorov/PySocks
|
| 6 |
+
Author: Anorov
|
| 7 |
+
Author-email: anorov.vorona@gmail.com
|
| 8 |
+
License: BSD
|
| 9 |
+
Keywords: socks,proxy
|
| 10 |
+
Platform: UNKNOWN
|
| 11 |
+
Classifier: Programming Language :: Python :: 2
|
| 12 |
+
Classifier: Programming Language :: Python :: 2.7
|
| 13 |
+
Classifier: Programming Language :: Python :: 3
|
| 14 |
+
Classifier: Programming Language :: Python :: 3.4
|
| 15 |
+
Classifier: Programming Language :: Python :: 3.5
|
| 16 |
+
Classifier: Programming Language :: Python :: 3.6
|
| 17 |
+
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
|
| 18 |
+
Description-Content-Type: text/markdown
|
| 19 |
+
|
| 20 |
+
PySocks
|
| 21 |
+
=======
|
| 22 |
+
|
| 23 |
+
PySocks lets you send traffic through SOCKS and HTTP proxy servers. It is a modern fork of [SocksiPy](http://socksipy.sourceforge.net/) with bug fixes and extra features.
|
| 24 |
+
|
| 25 |
+
Acts as a drop-in replacement to the socket module. Seamlessly configure SOCKS proxies for any socket object by calling `socket_object.set_proxy()`.
|
| 26 |
+
|
| 27 |
+
----------------
|
| 28 |
+
|
| 29 |
+
Features
|
| 30 |
+
========
|
| 31 |
+
|
| 32 |
+
* SOCKS proxy client for Python 2.7 and 3.4+
|
| 33 |
+
* TCP supported
|
| 34 |
+
* UDP mostly supported (issues may occur in some edge cases)
|
| 35 |
+
* HTTP proxy client included but not supported or recommended (you should use urllib2's or requests' own HTTP proxy interface)
|
| 36 |
+
* urllib2 handler included. `pip install` / `setup.py install` will automatically install the `sockshandler` module.
|
| 37 |
+
|
| 38 |
+
Installation
|
| 39 |
+
============
|
| 40 |
+
|
| 41 |
+
pip install PySocks
|
| 42 |
+
|
| 43 |
+
Or download the tarball / `git clone` and...
|
| 44 |
+
|
| 45 |
+
python setup.py install
|
| 46 |
+
|
| 47 |
+
These will install both the `socks` and `sockshandler` modules.
|
| 48 |
+
|
| 49 |
+
Alternatively, include just `socks.py` in your project.
|
| 50 |
+
|
| 51 |
+
--------------------------------------------
|
| 52 |
+
|
| 53 |
+
*Warning:* PySocks/SocksiPy only supports HTTP proxies that use CONNECT tunneling. Certain HTTP proxies may not work with this library. If you wish to use HTTP (not SOCKS) proxies, it is recommended that you rely on your HTTP client's native proxy support (`proxies` dict for `requests`, or `urllib2.ProxyHandler` for `urllib2`) instead.
|
| 54 |
+
|
| 55 |
+
--------------------------------------------
|
| 56 |
+
|
| 57 |
+
Usage
|
| 58 |
+
=====
|
| 59 |
+
|
| 60 |
+
## socks.socksocket ##
|
| 61 |
+
|
| 62 |
+
import socks
|
| 63 |
+
|
| 64 |
+
s = socks.socksocket() # Same API as socket.socket in the standard lib
|
| 65 |
+
|
| 66 |
+
s.set_proxy(socks.SOCKS5, "localhost") # SOCKS4 and SOCKS5 use port 1080 by default
|
| 67 |
+
# Or
|
| 68 |
+
s.set_proxy(socks.SOCKS4, "localhost", 4444)
|
| 69 |
+
# Or
|
| 70 |
+
s.set_proxy(socks.HTTP, "5.5.5.5", 8888)
|
| 71 |
+
|
| 72 |
+
# Can be treated identical to a regular socket object
|
| 73 |
+
s.connect(("www.somesite.com", 80))
|
| 74 |
+
s.sendall("GET / HTTP/1.1 ...")
|
| 75 |
+
print s.recv(4096)
|
| 76 |
+
|
| 77 |
+
## Monkeypatching ##
|
| 78 |
+
|
| 79 |
+
To monkeypatch the entire standard library with a single default proxy:
|
| 80 |
+
|
| 81 |
+
import urllib2
|
| 82 |
+
import socket
|
| 83 |
+
import socks
|
| 84 |
+
|
| 85 |
+
socks.set_default_proxy(socks.SOCKS5, "localhost")
|
| 86 |
+
socket.socket = socks.socksocket
|
| 87 |
+
|
| 88 |
+
urllib2.urlopen("http://www.somesite.com/") # All requests will pass through the SOCKS proxy
|
| 89 |
+
|
| 90 |
+
Note that monkeypatching may not work for all standard modules or for all third party modules, and generally isn't recommended. Monkeypatching is usually an anti-pattern in Python.
|
| 91 |
+
|
| 92 |
+
## urllib2 Handler ##
|
| 93 |
+
|
| 94 |
+
Example use case with the `sockshandler` urllib2 handler. Note that you must import both `socks` and `sockshandler`, as the handler is its own module separate from PySocks. The module is included in the PyPI package.
|
| 95 |
+
|
| 96 |
+
import urllib2
|
| 97 |
+
import socks
|
| 98 |
+
from sockshandler import SocksiPyHandler
|
| 99 |
+
|
| 100 |
+
opener = urllib2.build_opener(SocksiPyHandler(socks.SOCKS5, "127.0.0.1", 9050))
|
| 101 |
+
print opener.open("http://www.somesite.com/") # All requests made by the opener will pass through the SOCKS proxy
|
| 102 |
+
|
| 103 |
+
--------------------------------------------
|
| 104 |
+
|
| 105 |
+
Original SocksiPy README attached below, amended to reflect API changes.
|
| 106 |
+
|
| 107 |
+
--------------------------------------------
|
| 108 |
+
|
| 109 |
+
SocksiPy
|
| 110 |
+
|
| 111 |
+
A Python SOCKS module.
|
| 112 |
+
|
| 113 |
+
(C) 2006 Dan-Haim. All rights reserved.
|
| 114 |
+
|
| 115 |
+
See LICENSE file for details.
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
*WHAT IS A SOCKS PROXY?*
|
| 119 |
+
|
| 120 |
+
A SOCKS proxy is a proxy server at the TCP level. In other words, it acts as
|
| 121 |
+
a tunnel, relaying all traffic going through it without modifying it.
|
| 122 |
+
SOCKS proxies can be used to relay traffic using any network protocol that
|
| 123 |
+
uses TCP.
|
| 124 |
+
|
| 125 |
+
*WHAT IS SOCKSIPY?*
|
| 126 |
+
|
| 127 |
+
This Python module allows you to create TCP connections through a SOCKS
|
| 128 |
+
proxy without any special effort.
|
| 129 |
+
It also supports relaying UDP packets with a SOCKS5 proxy.
|
| 130 |
+
|
| 131 |
+
*PROXY COMPATIBILITY*
|
| 132 |
+
|
| 133 |
+
SocksiPy is compatible with three different types of proxies:
|
| 134 |
+
|
| 135 |
+
1. SOCKS Version 4 (SOCKS4), including the SOCKS4a extension.
|
| 136 |
+
2. SOCKS Version 5 (SOCKS5).
|
| 137 |
+
3. HTTP Proxies which support tunneling using the CONNECT method.
|
| 138 |
+
|
| 139 |
+
*SYSTEM REQUIREMENTS*
|
| 140 |
+
|
| 141 |
+
Being written in Python, SocksiPy can run on any platform that has a Python
|
| 142 |
+
interpreter and TCP/IP support.
|
| 143 |
+
This module has been tested with Python 2.3 and should work with greater versions
|
| 144 |
+
just as well.
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
INSTALLATION
|
| 148 |
+
-------------
|
| 149 |
+
|
| 150 |
+
Simply copy the file "socks.py" to your Python's `lib/site-packages` directory,
|
| 151 |
+
and you're ready to go. [Editor's note: it is better to use `python setup.py install` for PySocks]
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
USAGE
|
| 155 |
+
------
|
| 156 |
+
|
| 157 |
+
First load the socks module with the command:
|
| 158 |
+
|
| 159 |
+
>>> import socks
|
| 160 |
+
>>>
|
| 161 |
+
|
| 162 |
+
The socks module provides a class called `socksocket`, which is the base to all of the module's functionality.
|
| 163 |
+
|
| 164 |
+
The `socksocket` object has the same initialization parameters as the normal socket
|
| 165 |
+
object to ensure maximal compatibility, however it should be noted that `socksocket` will only function with family being `AF_INET` and
|
| 166 |
+
type being either `SOCK_STREAM` or `SOCK_DGRAM`.
|
| 167 |
+
Generally, it is best to initialize the `socksocket` object with no parameters
|
| 168 |
+
|
| 169 |
+
>>> s = socks.socksocket()
|
| 170 |
+
>>>
|
| 171 |
+
|
| 172 |
+
The `socksocket` object has an interface which is very similiar to socket's (in fact
|
| 173 |
+
the `socksocket` class is derived from socket) with a few extra methods.
|
| 174 |
+
To select the proxy server you would like to use, use the `set_proxy` method, whose
|
| 175 |
+
syntax is:
|
| 176 |
+
|
| 177 |
+
set_proxy(proxy_type, addr[, port[, rdns[, username[, password]]]])
|
| 178 |
+
|
| 179 |
+
Explanation of the parameters:
|
| 180 |
+
|
| 181 |
+
`proxy_type` - The type of the proxy server. This can be one of three possible
|
| 182 |
+
choices: `PROXY_TYPE_SOCKS4`, `PROXY_TYPE_SOCKS5` and `PROXY_TYPE_HTTP` for SOCKS4,
|
| 183 |
+
SOCKS5 and HTTP servers respectively. `SOCKS4`, `SOCKS5`, and `HTTP` are all aliases, respectively.
|
| 184 |
+
|
| 185 |
+
`addr` - The IP address or DNS name of the proxy server.
|
| 186 |
+
|
| 187 |
+
`port` - The port of the proxy server. Defaults to 1080 for socks and 8080 for http.
|
| 188 |
+
|
| 189 |
+
`rdns` - This is a boolean flag than modifies the behavior regarding DNS resolving.
|
| 190 |
+
If it is set to True, DNS resolving will be preformed remotely, on the server.
|
| 191 |
+
If it is set to False, DNS resolving will be preformed locally. Please note that
|
| 192 |
+
setting this to True with SOCKS4 servers actually use an extension to the protocol,
|
| 193 |
+
called SOCKS4a, which may not be supported on all servers (SOCKS5 and http servers
|
| 194 |
+
always support DNS). The default is True.
|
| 195 |
+
|
| 196 |
+
`username` - For SOCKS5 servers, this allows simple username / password authentication
|
| 197 |
+
with the server. For SOCKS4 servers, this parameter will be sent as the userid.
|
| 198 |
+
This parameter is ignored if an HTTP server is being used. If it is not provided,
|
| 199 |
+
authentication will not be used (servers may accept unauthenticated requests).
|
| 200 |
+
|
| 201 |
+
`password` - This parameter is valid only for SOCKS5 servers and specifies the
|
| 202 |
+
respective password for the username provided.
|
| 203 |
+
|
| 204 |
+
Example of usage:
|
| 205 |
+
|
| 206 |
+
>>> s.set_proxy(socks.SOCKS5, "socks.example.com") # uses default port 1080
|
| 207 |
+
>>> s.set_proxy(socks.SOCKS4, "socks.test.com", 1081)
|
| 208 |
+
|
| 209 |
+
After the set_proxy method has been called, simply call the connect method with the
|
| 210 |
+
traditional parameters to establish a connection through the proxy:
|
| 211 |
+
|
| 212 |
+
>>> s.connect(("www.sourceforge.net", 80))
|
| 213 |
+
>>>
|
| 214 |
+
|
| 215 |
+
Connection will take a bit longer to allow negotiation with the proxy server.
|
| 216 |
+
Please note that calling connect without calling `set_proxy` earlier will connect
|
| 217 |
+
without a proxy (just like a regular socket).
|
| 218 |
+
|
| 219 |
+
Errors: Any errors in the connection process will trigger exceptions. The exception
|
| 220 |
+
may either be generated by the underlying socket layer or may be custom module
|
| 221 |
+
exceptions, whose details follow:
|
| 222 |
+
|
| 223 |
+
class `ProxyError` - This is a base exception class. It is not raised directly but
|
| 224 |
+
rather all other exception classes raised by this module are derived from it.
|
| 225 |
+
This allows an easy way to catch all proxy-related errors. It descends from `IOError`.
|
| 226 |
+
|
| 227 |
+
All `ProxyError` exceptions have an attribute `socket_err`, which will contain either a
|
| 228 |
+
caught `socket.error` exception, or `None` if there wasn't any.
|
| 229 |
+
|
| 230 |
+
class `GeneralProxyError` - When thrown, it indicates a problem which does not fall
|
| 231 |
+
into another category.
|
| 232 |
+
|
| 233 |
+
* `Sent invalid data` - This error means that unexpected data has been received from
|
| 234 |
+
the server. The most common reason is that the server specified as the proxy is
|
| 235 |
+
not really a SOCKS4/SOCKS5/HTTP proxy, or maybe the proxy type specified is wrong.
|
| 236 |
+
|
| 237 |
+
* `Connection closed unexpectedly` - The proxy server unexpectedly closed the connection.
|
| 238 |
+
This may indicate that the proxy server is experiencing network or software problems.
|
| 239 |
+
|
| 240 |
+
* `Bad proxy type` - This will be raised if the type of the proxy supplied to the
|
| 241 |
+
set_proxy function was not one of `SOCKS4`/`SOCKS5`/`HTTP`.
|
| 242 |
+
|
| 243 |
+
* `Bad input` - This will be raised if the `connect()` method is called with bad input
|
| 244 |
+
parameters.
|
| 245 |
+
|
| 246 |
+
class `SOCKS5AuthError` - This indicates that the connection through a SOCKS5 server
|
| 247 |
+
failed due to an authentication problem.
|
| 248 |
+
|
| 249 |
+
* `Authentication is required` - This will happen if you use a SOCKS5 server which
|
| 250 |
+
requires authentication without providing a username / password at all.
|
| 251 |
+
|
| 252 |
+
* `All offered authentication methods were rejected` - This will happen if the proxy
|
| 253 |
+
requires a special authentication method which is not supported by this module.
|
| 254 |
+
|
| 255 |
+
* `Unknown username or invalid password` - Self descriptive.
|
| 256 |
+
|
| 257 |
+
class `SOCKS5Error` - This will be raised for SOCKS5 errors which are not related to
|
| 258 |
+
authentication.
|
| 259 |
+
The parameter is a tuple containing a code, as given by the server,
|
| 260 |
+
and a description of the
|
| 261 |
+
error. The possible errors, according to the RFC, are:
|
| 262 |
+
|
| 263 |
+
* `0x01` - General SOCKS server failure - If for any reason the proxy server is unable to
|
| 264 |
+
fulfill your request (internal server error).
|
| 265 |
+
* `0x02` - connection not allowed by ruleset - If the address you're trying to connect to
|
| 266 |
+
is blacklisted on the server or requires authentication.
|
| 267 |
+
* `0x03` - Network unreachable - The target could not be contacted. A router on the network
|
| 268 |
+
had replied with a destination net unreachable error.
|
| 269 |
+
* `0x04` - Host unreachable - The target could not be contacted. A router on the network
|
| 270 |
+
had replied with a destination host unreachable error.
|
| 271 |
+
* `0x05` - Connection refused - The target server has actively refused the connection
|
| 272 |
+
(the requested port is closed).
|
| 273 |
+
* `0x06` - TTL expired - The TTL value of the SYN packet from the proxy to the target server
|
| 274 |
+
has expired. This usually means that there are network problems causing the packet
|
| 275 |
+
to be caught in a router-to-router "ping-pong".
|
| 276 |
+
* `0x07` - Command not supported - For instance if the server does not support UDP.
|
| 277 |
+
* `0x08` - Address type not supported - The client has provided an invalid address type.
|
| 278 |
+
When using this module, this error should not occur.
|
| 279 |
+
|
| 280 |
+
class `SOCKS4Error` - This will be raised for SOCKS4 errors. The parameter is a tuple
|
| 281 |
+
containing a code and a description of the error, as given by the server. The
|
| 282 |
+
possible error, according to the specification are:
|
| 283 |
+
|
| 284 |
+
* `0x5B` - Request rejected or failed - Will be raised in the event of an failure for any
|
| 285 |
+
reason other then the two mentioned next.
|
| 286 |
+
* `0x5C` - request rejected because SOCKS server cannot connect to identd on the client -
|
| 287 |
+
The Socks server had tried an ident lookup on your computer and has failed. In this
|
| 288 |
+
case you should run an identd server and/or configure your firewall to allow incoming
|
| 289 |
+
connections to local port 113 from the remote server.
|
| 290 |
+
* `0x5D` - request rejected because the client program and identd report different user-ids -
|
| 291 |
+
The Socks server had performed an ident lookup on your computer and has received a
|
| 292 |
+
different userid than the one you have provided. Change your userid (through the
|
| 293 |
+
username parameter of the set_proxy method) to match and try again.
|
| 294 |
+
|
| 295 |
+
class `HTTPError` - This will be raised for HTTP errors. The message will contain
|
| 296 |
+
the HTTP status code and provided error message.
|
| 297 |
+
|
| 298 |
+
After establishing the connection, the object behaves like a standard socket.
|
| 299 |
+
|
| 300 |
+
Methods like `makefile()` and `settimeout()` should behave just like regular sockets.
|
| 301 |
+
Call the `close()` method to close the connection.
|
| 302 |
+
|
| 303 |
+
In addition to the `socksocket` class, an additional function worth mentioning is the
|
| 304 |
+
`set_default_proxy` function. The parameters are the same as the `set_proxy` method.
|
| 305 |
+
This function will set default proxy settings for newly created `socksocket` objects,
|
| 306 |
+
in which the proxy settings haven't been changed via the `set_proxy` method.
|
| 307 |
+
This is quite useful if you wish to force 3rd party modules to use a SOCKS proxy,
|
| 308 |
+
by overriding the socket object.
|
| 309 |
+
For example:
|
| 310 |
+
|
| 311 |
+
>>> socks.set_default_proxy(socks.SOCKS5, "socks.example.com")
|
| 312 |
+
>>> socket.socket = socks.socksocket
|
| 313 |
+
>>> urllib.urlopen("http://www.sourceforge.net/")
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
PROBLEMS
|
| 317 |
+
---------
|
| 318 |
+
|
| 319 |
+
Please open a GitHub issue at https://github.com/Anorov/PySocks
|
| 320 |
+
|
| 321 |
+
|
python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/RECORD
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PySocks-1.7.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
PySocks-1.7.1.dist-info/LICENSE,sha256=cCfiFOAU63i3rcwc7aWspxOnn8T2oMUsnaWz5wfm_-k,1401
|
| 3 |
+
PySocks-1.7.1.dist-info/METADATA,sha256=zbQMizjPOOP4DhEiEX24XXjNrYuIxF9UGUpN0uFDB6Y,13235
|
| 4 |
+
PySocks-1.7.1.dist-info/RECORD,,
|
| 5 |
+
PySocks-1.7.1.dist-info/WHEEL,sha256=t_MpApv386-8PVts2R6wsTifdIn0vbUDTVv61IbqFC8,92
|
| 6 |
+
PySocks-1.7.1.dist-info/top_level.txt,sha256=TKSOIfCFBoK9EY8FBYbYqC3PWd3--G15ph9n8-QHPDk,19
|
| 7 |
+
__pycache__/socks.cpython-313.pyc,,
|
| 8 |
+
__pycache__/sockshandler.cpython-313.pyc,,
|
| 9 |
+
socks.py,sha256=xOYn27t9IGrbTBzWsUUuPa0YBuplgiUykzkOB5V5iFY,31086
|
| 10 |
+
sockshandler.py,sha256=2SYGj-pwt1kjgLoZAmyeaEXCeZDWRmfVS_QG6kErGtY,3966
|
python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.33.3)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
python/user_packages/Python313/site-packages/PySocks-1.7.1.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
socks
|
| 2 |
+
sockshandler
|
python/user_packages/Python313/site-packages/pillow-12.2.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: pillow
|
| 3 |
+
Version: 12.2.0
|
| 4 |
+
Summary: Python Imaging Library (fork)
|
| 5 |
+
Author-email: Jeffrey 'Alex' Clark <aclark@aclark.net>
|
| 6 |
+
License-Expression: MIT-CMU
|
| 7 |
+
Project-URL: Release notes, https://pillow.readthedocs.io/en/stable/releasenotes/index.html
|
| 8 |
+
Project-URL: Changelog, https://github.com/python-pillow/Pillow/releases
|
| 9 |
+
Project-URL: Documentation, https://pillow.readthedocs.io
|
| 10 |
+
Project-URL: Funding, https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=pypi
|
| 11 |
+
Project-URL: Homepage, https://python-pillow.github.io
|
| 12 |
+
Project-URL: Mastodon, https://fosstodon.org/@pillow
|
| 13 |
+
Project-URL: Source, https://github.com/python-pillow/Pillow
|
| 14 |
+
Keywords: Imaging
|
| 15 |
+
Classifier: Development Status :: 6 - Mature
|
| 16 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 22 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 23 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 24 |
+
Classifier: Topic :: Multimedia :: Graphics
|
| 25 |
+
Classifier: Topic :: Multimedia :: Graphics :: Capture :: Digital Camera
|
| 26 |
+
Classifier: Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
|
| 27 |
+
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
|
| 28 |
+
Classifier: Topic :: Multimedia :: Graphics :: Viewers
|
| 29 |
+
Classifier: Typing :: Typed
|
| 30 |
+
Requires-Python: >=3.10
|
| 31 |
+
Description-Content-Type: text/markdown
|
| 32 |
+
License-File: LICENSE
|
| 33 |
+
Provides-Extra: docs
|
| 34 |
+
Requires-Dist: furo; extra == "docs"
|
| 35 |
+
Requires-Dist: olefile; extra == "docs"
|
| 36 |
+
Requires-Dist: sphinx>=8.2; extra == "docs"
|
| 37 |
+
Requires-Dist: sphinx-autobuild; extra == "docs"
|
| 38 |
+
Requires-Dist: sphinx-copybutton; extra == "docs"
|
| 39 |
+
Requires-Dist: sphinx-inline-tabs; extra == "docs"
|
| 40 |
+
Requires-Dist: sphinxext-opengraph; extra == "docs"
|
| 41 |
+
Provides-Extra: fpx
|
| 42 |
+
Requires-Dist: olefile; extra == "fpx"
|
| 43 |
+
Provides-Extra: mic
|
| 44 |
+
Requires-Dist: olefile; extra == "mic"
|
| 45 |
+
Provides-Extra: test-arrow
|
| 46 |
+
Requires-Dist: arro3-compute; extra == "test-arrow"
|
| 47 |
+
Requires-Dist: arro3-core; extra == "test-arrow"
|
| 48 |
+
Requires-Dist: nanoarrow; extra == "test-arrow"
|
| 49 |
+
Requires-Dist: pyarrow; extra == "test-arrow"
|
| 50 |
+
Provides-Extra: tests
|
| 51 |
+
Requires-Dist: check-manifest; extra == "tests"
|
| 52 |
+
Requires-Dist: coverage>=7.4.2; extra == "tests"
|
| 53 |
+
Requires-Dist: defusedxml; extra == "tests"
|
| 54 |
+
Requires-Dist: markdown2; extra == "tests"
|
| 55 |
+
Requires-Dist: olefile; extra == "tests"
|
| 56 |
+
Requires-Dist: packaging; extra == "tests"
|
| 57 |
+
Requires-Dist: pyroma>=5; extra == "tests"
|
| 58 |
+
Requires-Dist: pytest; extra == "tests"
|
| 59 |
+
Requires-Dist: pytest-cov; extra == "tests"
|
| 60 |
+
Requires-Dist: pytest-timeout; extra == "tests"
|
| 61 |
+
Requires-Dist: pytest-xdist; extra == "tests"
|
| 62 |
+
Requires-Dist: trove-classifiers>=2024.10.12; extra == "tests"
|
| 63 |
+
Provides-Extra: xmp
|
| 64 |
+
Requires-Dist: defusedxml; extra == "xmp"
|
| 65 |
+
Dynamic: license-file
|
| 66 |
+
|
| 67 |
+
<p align="center">
|
| 68 |
+
<img width="248" height="250" src="https://raw.githubusercontent.com/python-pillow/pillow-logo/main/pillow-logo-248x250.png" alt="Pillow logo">
|
| 69 |
+
</p>
|
| 70 |
+
|
| 71 |
+
# Pillow
|
| 72 |
+
|
| 73 |
+
## Python Imaging Library (Fork)
|
| 74 |
+
|
| 75 |
+
Pillow is the friendly PIL fork by [Jeffrey 'Alex' Clark and
|
| 76 |
+
contributors](https://github.com/python-pillow/Pillow/graphs/contributors).
|
| 77 |
+
PIL is the Python Imaging Library by Fredrik Lundh and contributors.
|
| 78 |
+
As of 2019, Pillow development is
|
| 79 |
+
[supported by Tidelift](https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=readme&utm_campaign=enterprise).
|
| 80 |
+
|
| 81 |
+
<table>
|
| 82 |
+
<tr>
|
| 83 |
+
<th>docs</th>
|
| 84 |
+
<td>
|
| 85 |
+
<a href="https://pillow.readthedocs.io/?badge=latest"><img
|
| 86 |
+
alt="Documentation Status"
|
| 87 |
+
src="https://readthedocs.org/projects/pillow/badge/?version=latest"></a>
|
| 88 |
+
</td>
|
| 89 |
+
</tr>
|
| 90 |
+
<tr>
|
| 91 |
+
<th>tests</th>
|
| 92 |
+
<td>
|
| 93 |
+
<a href="https://github.com/python-pillow/Pillow/actions/workflows/lint.yml"><img
|
| 94 |
+
alt="GitHub Actions build status (Lint)"
|
| 95 |
+
src="https://github.com/python-pillow/Pillow/workflows/Lint/badge.svg"></a>
|
| 96 |
+
<a href="https://github.com/python-pillow/Pillow/actions/workflows/test.yml"><img
|
| 97 |
+
alt="GitHub Actions build status (Test Linux and macOS)"
|
| 98 |
+
src="https://github.com/python-pillow/Pillow/workflows/Test/badge.svg"></a>
|
| 99 |
+
<a href="https://github.com/python-pillow/Pillow/actions/workflows/test-windows.yml"><img
|
| 100 |
+
alt="GitHub Actions build status (Test Windows)"
|
| 101 |
+
src="https://github.com/python-pillow/Pillow/workflows/Test%20Windows/badge.svg"></a>
|
| 102 |
+
<a href="https://github.com/python-pillow/Pillow/actions/workflows/test-mingw.yml"><img
|
| 103 |
+
alt="GitHub Actions build status (Test MinGW)"
|
| 104 |
+
src="https://github.com/python-pillow/Pillow/workflows/Test%20MinGW/badge.svg"></a>
|
| 105 |
+
<a href="https://github.com/python-pillow/Pillow/actions/workflows/test-docker.yml"><img
|
| 106 |
+
alt="GitHub Actions build status (Test Docker)"
|
| 107 |
+
src="https://github.com/python-pillow/Pillow/workflows/Test%20Docker/badge.svg"></a>
|
| 108 |
+
<a href="https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml"><img
|
| 109 |
+
alt="GitHub Actions build status (Wheels)"
|
| 110 |
+
src="https://github.com/python-pillow/Pillow/workflows/Wheels/badge.svg"></a>
|
| 111 |
+
<a href="https://app.codecov.io/gh/python-pillow/Pillow"><img
|
| 112 |
+
alt="Code coverage"
|
| 113 |
+
src="https://codecov.io/gh/python-pillow/Pillow/branch/main/graph/badge.svg"></a>
|
| 114 |
+
<a href="https://issues.oss-fuzz.com/issues?q=title:pillow"><img
|
| 115 |
+
alt="Fuzzing Status"
|
| 116 |
+
src="https://oss-fuzz-build-logs.storage.googleapis.com/badges/pillow.svg"></a>
|
| 117 |
+
</td>
|
| 118 |
+
</tr>
|
| 119 |
+
<tr>
|
| 120 |
+
<th>package</th>
|
| 121 |
+
<td>
|
| 122 |
+
<a href="https://zenodo.org/badge/latestdoi/17549/python-pillow/Pillow"><img
|
| 123 |
+
alt="Zenodo"
|
| 124 |
+
src="https://zenodo.org/badge/17549/python-pillow/Pillow.svg"></a>
|
| 125 |
+
<a href="https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=badge"><img
|
| 126 |
+
alt="Tidelift"
|
| 127 |
+
src="https://tidelift.com/badges/package/pypi/pillow?style=flat"></a>
|
| 128 |
+
<a href="https://pypi.org/project/pillow/"><img
|
| 129 |
+
alt="Newest PyPI version"
|
| 130 |
+
src="https://img.shields.io/pypi/v/pillow.svg"></a>
|
| 131 |
+
<a href="https://pypi.org/project/pillow/"><img
|
| 132 |
+
alt="Number of PyPI downloads"
|
| 133 |
+
src="https://img.shields.io/pypi/dm/pillow.svg"></a>
|
| 134 |
+
<a href="https://www.bestpractices.dev/projects/6331"><img
|
| 135 |
+
alt="OpenSSF Best Practices"
|
| 136 |
+
src="https://www.bestpractices.dev/projects/6331/badge"></a>
|
| 137 |
+
</td>
|
| 138 |
+
</tr>
|
| 139 |
+
<tr>
|
| 140 |
+
<th>social</th>
|
| 141 |
+
<td>
|
| 142 |
+
<a href="https://gitter.im/python-pillow/Pillow?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img
|
| 143 |
+
alt="Join the chat at https://gitter.im/python-pillow/Pillow"
|
| 144 |
+
src="https://badges.gitter.im/python-pillow/Pillow.svg"></a>
|
| 145 |
+
<a href="https://fosstodon.org/@pillow"><img
|
| 146 |
+
alt="Follow on https://fosstodon.org/@pillow"
|
| 147 |
+
src="https://img.shields.io/badge/publish-on%20Mastodon-595aff.svg"
|
| 148 |
+
rel="me"></a>
|
| 149 |
+
</td>
|
| 150 |
+
</tr>
|
| 151 |
+
</table>
|
| 152 |
+
|
| 153 |
+
## Overview
|
| 154 |
+
|
| 155 |
+
The Python Imaging Library adds image processing capabilities to your Python interpreter.
|
| 156 |
+
|
| 157 |
+
This library provides extensive file format support, an efficient internal representation, and fairly powerful image processing capabilities.
|
| 158 |
+
|
| 159 |
+
The core image library is designed for fast access to data stored in a few basic pixel formats. It should provide a solid foundation for a general image processing tool.
|
| 160 |
+
|
| 161 |
+
## More information
|
| 162 |
+
|
| 163 |
+
- [Documentation](https://pillow.readthedocs.io/)
|
| 164 |
+
- [Installation](https://pillow.readthedocs.io/en/latest/installation/basic-installation.html)
|
| 165 |
+
- [Handbook](https://pillow.readthedocs.io/en/latest/handbook/index.html)
|
| 166 |
+
- [Contribute](https://github.com/python-pillow/Pillow/blob/main/.github/CONTRIBUTING.md)
|
| 167 |
+
- [Issues](https://github.com/python-pillow/Pillow/issues)
|
| 168 |
+
- [Pull requests](https://github.com/python-pillow/Pillow/pulls)
|
| 169 |
+
- [Release notes](https://pillow.readthedocs.io/en/stable/releasenotes/index.html)
|
| 170 |
+
- [Changelog](https://github.com/python-pillow/Pillow/releases)
|
| 171 |
+
- [Pre-fork](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst#pre-fork)
|
| 172 |
+
|
| 173 |
+
## Report a vulnerability
|
| 174 |
+
|
| 175 |
+
To report a security vulnerability, please follow the procedure described in the [Tidelift security policy](https://tidelift.com/docs/security).
|
python/user_packages/Python313/site-packages/pillow-12.2.0.dist-info/RECORD
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PIL/AvifImagePlugin.py,sha256=YCw3mGsZiu8LDpu8eUZuf4o-7nuPTOW6CFA6FIPkWTM,9323
|
| 2 |
+
PIL/BdfFontFile.py,sha256=mb1WNJaM0ee87RsfRLD4FZE_qOEBysIHT9faWfm5dzs,3409
|
| 3 |
+
PIL/BlpImagePlugin.py,sha256=EpHoVShYXypqxnEoiSShngD7CPhCeY8efwSH1G5lnXk,17066
|
| 4 |
+
PIL/BmpImagePlugin.py,sha256=cawQBTB_XZojBt2uA7ud8PDgsyqa0QSRqBP9uIAghsA,20395
|
| 5 |
+
PIL/BufrStubImagePlugin.py,sha256=OyqCM0uUIuFTMVCZEI9P2iA3eoN4XVQPfFfNuDW_yeQ,1757
|
| 6 |
+
PIL/ContainerIO.py,sha256=I6yO_YFEEqMKA1ckgEEzF2r_Ik5p_GjM-RrWOJYjSlY,4777
|
| 7 |
+
PIL/CurImagePlugin.py,sha256=O_bFtW82YhAM8_F8tpr3O5UrzKPPyiV9S2zjV9QwqaI,1866
|
| 8 |
+
PIL/DcxImagePlugin.py,sha256=L21c3gVX6IPmk4zuf_ltt3mAeRfcuCCcXhkCVpued2U,2264
|
| 9 |
+
PIL/DdsImagePlugin.py,sha256=2JxzvTsnaiaE5xWE-bUjNjuuN6HjhCaVuozY74Ml9YU,19556
|
| 10 |
+
PIL/EpsImagePlugin.py,sha256=jlQqQjuKSzb_vVhdNVlH_-vC9EaLrawIInJizmYaIIM,17105
|
| 11 |
+
PIL/ExifTags.py,sha256=NiyvtmUET79BMiokijMTp_q8deWWzpydtTcTBfJy8KE,10339
|
| 12 |
+
PIL/FitsImagePlugin.py,sha256=bMTxCcNkeXd2DRQiH295s-t-aawFc92fsPs_OyKUk3s,4893
|
| 13 |
+
PIL/FliImagePlugin.py,sha256=L1vf4QjsaMV0eRQTmfy1wnqJ9l9hGV5lvTILW7znzD8,5113
|
| 14 |
+
PIL/FontFile.py,sha256=OWQRodoD92QDBeEuapedDk77U_gO8MIlTcfKt_RAhsw,4367
|
| 15 |
+
PIL/FpxImagePlugin.py,sha256=d26jrzYoCcScJJwA2w_LsjdhKz-0AQ3KEeUwCRd3Z-U,7590
|
| 16 |
+
PIL/FtexImagePlugin.py,sha256=-zKvvhMTczUe3o0f4HpDC9_DK6lKHT5LABf0r5-3l-4,3685
|
| 17 |
+
PIL/GbrImagePlugin.py,sha256=Ib_y35ZzNOmMqG2SuOyjxRh3Oxt42QpcEcgLa6BhmtA,3156
|
| 18 |
+
PIL/GdImageFile.py,sha256=5NQQVPFpMMletKDCnrP138d2GAnqhECmDca0ZPw3n0w,2892
|
| 19 |
+
PIL/GifImagePlugin.py,sha256=DPndg3uiO0EslXZa6kQiu_bnwiEMbu_ekeq0PUMIsNU,43596
|
| 20 |
+
PIL/GimpGradientFile.py,sha256=zsIW1MkV6ko5lk4HJVXegSHU3yUPwW1pUynRs5z0iZA,4137
|
| 21 |
+
PIL/GimpPaletteFile.py,sha256=EmBHcQ9ExC4f47taD7S7G6VaMkr9HjynlV8NdTXV5iQ,1935
|
| 22 |
+
PIL/GribStubImagePlugin.py,sha256=c8iPEqQOSBcWFqdWEiucubjaXwYfZSB2GjZXYVaPAxM,1786
|
| 23 |
+
PIL/Hdf5StubImagePlugin.py,sha256=rIMdf7uDskjJqwe6CvGLw_tjJfh1go5vKSnmftBdCKg,1768
|
| 24 |
+
PIL/IcnsImagePlugin.py,sha256=ToCSy5aFJ7_6niZszFORfCMr8_U5O6vgd1RHMVr_J_o,12798
|
| 25 |
+
PIL/IcoImagePlugin.py,sha256=DZoBj2zKv76Sk96PKq8el9aZAM2J3wULVqPeono_0z0,13499
|
| 26 |
+
PIL/ImImagePlugin.py,sha256=X9iBSQ4x7rauxbOIn72j7v6TAUgZldpYD5cAc6Z1MNA,11992
|
| 27 |
+
PIL/Image.py,sha256=IYwLwXy3zh6CI9-zLBHkgYzMoUH9V7hM5l0UkwjdQlo,157992
|
| 28 |
+
PIL/ImageChops.py,sha256=hZ8EPUPlQIzugsEedV8trkKX0jBCDGb6Cszma6ZeMZQ,8257
|
| 29 |
+
PIL/ImageCms.py,sha256=5rDN-FiLHebKlWP2kN6jbvDEF9jcb3somkBaDX8dFbs,41752
|
| 30 |
+
PIL/ImageColor.py,sha256=KV-u7HnZWrrL3zuBAOLqerI-7vFcXTxdLeoaYVjsnwI,9761
|
| 31 |
+
PIL/ImageDraw.py,sha256=Q7QOviprDqmDgm2xplXW78-BNxPRt2BHo89BklUCDsA,37268
|
| 32 |
+
PIL/ImageDraw2.py,sha256=G0OIz7sOW_Tnr1tDHujTyPVEdqohb7M4OOOt4ZQkVQw,7470
|
| 33 |
+
PIL/ImageEnhance.py,sha256=ugDU0sljaR_zaTibtumlTvf-qFH1x1W6l2QMpc386XU,3740
|
| 34 |
+
PIL/ImageFile.py,sha256=MdyB4EgB2bocYgWGULqzITkQcXqWcCJBU4gU6rI8now,30806
|
| 35 |
+
PIL/ImageFilter.py,sha256=n3aT1MkbKrqGPeoSuqxmWliVqhkhOgLZ3ixjLn8vqK8,19336
|
| 36 |
+
PIL/ImageFont.py,sha256=klmVPsi30koF3Gx0sTxciOYMHliU8li1fURWfkUd-7o,64454
|
| 37 |
+
PIL/ImageGrab.py,sha256=KYT-Q8u648JPr2IxfBuS8n9lMRLAon_r-CK7uQ9MOEE,8349
|
| 38 |
+
PIL/ImageMath.py,sha256=xhGBhvet2v7bgyLRl_adzVWnmZ7zVcbT8d1q1cpJHFI,10683
|
| 39 |
+
PIL/ImageMode.py,sha256=ULkA-jsCgGwxVjr2LPSP42dDmj6nWaQk9L4UKj7KfSg,2480
|
| 40 |
+
PIL/ImageMorph.py,sha256=Vr1QQB5vGYpGVffRGJQod4H7_AlQmO3l-BlhpaYeDyI,10673
|
| 41 |
+
PIL/ImageOps.py,sha256=0Qc0PTg5r8t8JSgaKkzd-cjYMGtMUUMSBkXmmaJm-JU,26313
|
| 42 |
+
PIL/ImagePalette.py,sha256=9Klz-7I6JTSUp2lfZJM6V0DycFQKkm6RxfyXDT4U_nw,9498
|
| 43 |
+
PIL/ImagePath.py,sha256=ZnnJuvQNtbKRhCmr61TEmEh1vVV5_90WMEPL8Opy5l8,391
|
| 44 |
+
PIL/ImageQt.py,sha256=SpxHePgWh5gdjVIGNC4GG5v9V3smQm_nPiJDcrhnHXc,6903
|
| 45 |
+
PIL/ImageSequence.py,sha256=guZHUdpWrznzZkcY0OYpDzuF0uFXlCEu260oP-7e_fI,2341
|
| 46 |
+
PIL/ImageShow.py,sha256=TqO6nzj5EMwp5dExag3jhBJXdHojccnFx59LOnMQao0,10468
|
| 47 |
+
PIL/ImageStat.py,sha256=W0uUa8YNC6vhowlerSzZIwE7Ru-Kp2rWuqGNLBFLZyo,5662
|
| 48 |
+
PIL/ImageText.py,sha256=GG6x6pMoYUJ-O_tgsZbDocHvcFSubR6isFepvjHRiR0,19084
|
| 49 |
+
PIL/ImageTk.py,sha256=Tx0zf9kTaBuAGvZuo0JAHrNbk3n6ewr4ZndWnWxZK0Q,8398
|
| 50 |
+
PIL/ImageTransform.py,sha256=Zu6oySXENtq712-nkqFLqafYPviRAgsgkzfLWG0K3V8,4052
|
| 51 |
+
PIL/ImageWin.py,sha256=b-fO6kn4icHpy-zk-Xg-nO382zPXl-MKjZcs3vAXl1Q,8332
|
| 52 |
+
PIL/ImtImagePlugin.py,sha256=r-ZDz3Xji6EBF8eUnK6iuCEZEtllp0xLRSIQ0_h14UE,2768
|
| 53 |
+
PIL/IptcImagePlugin.py,sha256=4Ftue4jda7pUY0Lh272ODfhOBIiJOZK0QQ2e0PYQwig,6663
|
| 54 |
+
PIL/Jpeg2KImagePlugin.py,sha256=628lshCLIxb0B5GDVuV0y7u1XfYRN07psPMOtYQsL7c,14867
|
| 55 |
+
PIL/JpegImagePlugin.py,sha256=BJ_BLPQ2sQGlYiRWobg7qLKLVM-BBtOVOu11G7DAjz8,32223
|
| 56 |
+
PIL/JpegPresets.py,sha256=UUIsKzvyzdPzsndODd90eu_luMqauG1PJh10UOuQvmg,12621
|
| 57 |
+
PIL/McIdasImagePlugin.py,sha256=P9d1kr4Ste0QVkxfqix31sfGD8sWn-eVmYK0wg6DvIw,1955
|
| 58 |
+
PIL/MicImagePlugin.py,sha256=uCxGM4llIFPjfu2Kji-zSnPacnqiGUZGqs_Dtb3JktI,2702
|
| 59 |
+
PIL/MpegImagePlugin.py,sha256=kem9zofsBtIq6xlMJcsFkOXTcJCPEICk9lchTfR9pDI,2094
|
| 60 |
+
PIL/MpoImagePlugin.py,sha256=_8WAsYgeYkRDNqsy0I_yw4pyw0caddrf1MWUDNKAhjY,6987
|
| 61 |
+
PIL/MspImagePlugin.py,sha256=SkbsbClOuHrvB0dR2XS78RfgPNhaAJu2LDD4iIjbP6g,6090
|
| 62 |
+
PIL/PSDraw.py,sha256=7sBfAGfBmqnZWMTkRfLm4oBXtRlBXAuYT__NP3GtHw0,7230
|
| 63 |
+
PIL/PaletteFile.py,sha256=QdEa99jLC-PPhEqGy6_4fDua8TzKSSUzkAeYcClFX7M,1270
|
| 64 |
+
PIL/PalmImagePlugin.py,sha256=Ikeu76nbW6gxMGlqUWwbV57BJEGr13VGXIQvkWK54mU,8965
|
| 65 |
+
PIL/PcdImagePlugin.py,sha256=gZsCcXDIqEVTK2z-GWKptT25pFU1AUOgpr3J06cjPCg,1842
|
| 66 |
+
PIL/PcfFontFile.py,sha256=C6wi5KuIacmUs_cEGm8MomwpZrDUpYVCEmJeyB6nkJM,7498
|
| 67 |
+
PIL/PcxImagePlugin.py,sha256=Xm8UI_5_AQBsiWk7B8SJrdeE_8z7DSBAUmnNpjbnk5Y,6596
|
| 68 |
+
PIL/PdfImagePlugin.py,sha256=gJMr0sSEWzyn7LnK5P5WQI995Cu_l-W3T8FX4jVgYf8,9632
|
| 69 |
+
PIL/PdfParser.py,sha256=JKOTgoaTIlwEm9mrrQHRhvzQljl6XST-g2OnhTTLexw,39338
|
| 70 |
+
PIL/PixarImagePlugin.py,sha256=-RnuJSGhGF8MsUsiHZq3VzBxV-BNnK35kBjJfhYzwXs,1830
|
| 71 |
+
PIL/PngImagePlugin.py,sha256=djUcMW5Drbw7WNGrg7j2L2qO75PIP7f231yyCy861v4,53289
|
| 72 |
+
PIL/PpmImagePlugin.py,sha256=WhtClGFMAO8VZZU9mFBZfMj7DbkytZ8XP7nQbVtZN5U,12766
|
| 73 |
+
PIL/PsdImagePlugin.py,sha256=EdDffLdv4vVXyf4-3NKFcWISpWRTx6QOPcSdUEeG3is,9173
|
| 74 |
+
PIL/QoiImagePlugin.py,sha256=XKWT6v5f7l_3WmTWxbmmNWsMkzl5j-Uh5pnJwV2ybFg,8842
|
| 75 |
+
PIL/SgiImagePlugin.py,sha256=w1xV4-ELYBHKL_AaGf9oJSYJzBwTpdJ-rNPqiArKgGs,6620
|
| 76 |
+
PIL/SpiderImagePlugin.py,sha256=p1V_ixSytYluGUxOGw43ymZ9i95pCQMeUBP9qYG7E5I,10659
|
| 77 |
+
PIL/SunImagePlugin.py,sha256=YKYEvuG4QUkies34OKtXWKTYSZ8U3qzcE_vdTrOuRsw,4734
|
| 78 |
+
PIL/TarIO.py,sha256=K6tLkFDcaar3vb6EyYb7G4oVEB41x_LMuGJeUT9w5DQ,1503
|
| 79 |
+
PIL/TgaImagePlugin.py,sha256=UAvMYuazA79OFzVeval5uUaMrmsQPHR1TsbqrCWtKiQ,7873
|
| 80 |
+
PIL/TiffImagePlugin.py,sha256=dBv2c94vH06pu0DFGLbbXo-PQNzIy8Gvhm4vR8UL9f0,88194
|
| 81 |
+
PIL/TiffTags.py,sha256=FsdqbIQJOI7ihG7MZ_K4YUQDZ4zo-raYbihVDe42U9E,17772
|
| 82 |
+
PIL/WalImageFile.py,sha256=cLRCKYysnE0v5Z_Ud0Xe0YDeM4mIxFGXqDIx8VeuMcY,5891
|
| 83 |
+
PIL/WebPImagePlugin.py,sha256=mqdblF3URZ_V2dijWXtloM328_Ja-txMUervzEVI0Wk,10171
|
| 84 |
+
PIL/WmfImagePlugin.py,sha256=E20YDJZJIKrUQyftOmrJrAuXumDGZiwjHyN2IKKCybg,5390
|
| 85 |
+
PIL/XVThumbImagePlugin.py,sha256=OEtEhQgCLLgvx8J1iI911TMzjJ5iTlOOqQpLQx1bzQ4,2209
|
| 86 |
+
PIL/XbmImagePlugin.py,sha256=wc0NpfTzlShx9Ymi0zwo0aVZjDa4_B7NEiG2TgCO65Q,2767
|
| 87 |
+
PIL/XpmImagePlugin.py,sha256=wYf7Q7TGo4JL6n5ouQx8pbTMnMZVshgp-xwoAMZEUKg,4557
|
| 88 |
+
PIL/__init__.py,sha256=P___hQL0tZymHTnM5xPVX_7wRpVCYvzhq6w-l_OANzQ,2122
|
| 89 |
+
PIL/__main__.py,sha256=X8eIpGlmHfnp7zazp5mdav228Itcf2lkiMP0tLU6X9c,140
|
| 90 |
+
PIL/__pycache__/AvifImagePlugin.cpython-313.pyc,,
|
| 91 |
+
PIL/__pycache__/BdfFontFile.cpython-313.pyc,,
|
| 92 |
+
PIL/__pycache__/BlpImagePlugin.cpython-313.pyc,,
|
| 93 |
+
PIL/__pycache__/BmpImagePlugin.cpython-313.pyc,,
|
| 94 |
+
PIL/__pycache__/BufrStubImagePlugin.cpython-313.pyc,,
|
| 95 |
+
PIL/__pycache__/ContainerIO.cpython-313.pyc,,
|
| 96 |
+
PIL/__pycache__/CurImagePlugin.cpython-313.pyc,,
|
| 97 |
+
PIL/__pycache__/DcxImagePlugin.cpython-313.pyc,,
|
| 98 |
+
PIL/__pycache__/DdsImagePlugin.cpython-313.pyc,,
|
| 99 |
+
PIL/__pycache__/EpsImagePlugin.cpython-313.pyc,,
|
| 100 |
+
PIL/__pycache__/ExifTags.cpython-313.pyc,,
|
| 101 |
+
PIL/__pycache__/FitsImagePlugin.cpython-313.pyc,,
|
| 102 |
+
PIL/__pycache__/FliImagePlugin.cpython-313.pyc,,
|
| 103 |
+
PIL/__pycache__/FontFile.cpython-313.pyc,,
|
| 104 |
+
PIL/__pycache__/FpxImagePlugin.cpython-313.pyc,,
|
| 105 |
+
PIL/__pycache__/FtexImagePlugin.cpython-313.pyc,,
|
| 106 |
+
PIL/__pycache__/GbrImagePlugin.cpython-313.pyc,,
|
| 107 |
+
PIL/__pycache__/GdImageFile.cpython-313.pyc,,
|
| 108 |
+
PIL/__pycache__/GifImagePlugin.cpython-313.pyc,,
|
| 109 |
+
PIL/__pycache__/GimpGradientFile.cpython-313.pyc,,
|
| 110 |
+
PIL/__pycache__/GimpPaletteFile.cpython-313.pyc,,
|
| 111 |
+
PIL/__pycache__/GribStubImagePlugin.cpython-313.pyc,,
|
| 112 |
+
PIL/__pycache__/Hdf5StubImagePlugin.cpython-313.pyc,,
|
| 113 |
+
PIL/__pycache__/IcnsImagePlugin.cpython-313.pyc,,
|
| 114 |
+
PIL/__pycache__/IcoImagePlugin.cpython-313.pyc,,
|
| 115 |
+
PIL/__pycache__/ImImagePlugin.cpython-313.pyc,,
|
| 116 |
+
PIL/__pycache__/Image.cpython-313.pyc,,
|
| 117 |
+
PIL/__pycache__/ImageChops.cpython-313.pyc,,
|
| 118 |
+
PIL/__pycache__/ImageCms.cpython-313.pyc,,
|
| 119 |
+
PIL/__pycache__/ImageColor.cpython-313.pyc,,
|
| 120 |
+
PIL/__pycache__/ImageDraw.cpython-313.pyc,,
|
| 121 |
+
PIL/__pycache__/ImageDraw2.cpython-313.pyc,,
|
| 122 |
+
PIL/__pycache__/ImageEnhance.cpython-313.pyc,,
|
| 123 |
+
PIL/__pycache__/ImageFile.cpython-313.pyc,,
|
| 124 |
+
PIL/__pycache__/ImageFilter.cpython-313.pyc,,
|
| 125 |
+
PIL/__pycache__/ImageFont.cpython-313.pyc,,
|
| 126 |
+
PIL/__pycache__/ImageGrab.cpython-313.pyc,,
|
| 127 |
+
PIL/__pycache__/ImageMath.cpython-313.pyc,,
|
| 128 |
+
PIL/__pycache__/ImageMode.cpython-313.pyc,,
|
| 129 |
+
PIL/__pycache__/ImageMorph.cpython-313.pyc,,
|
| 130 |
+
PIL/__pycache__/ImageOps.cpython-313.pyc,,
|
| 131 |
+
PIL/__pycache__/ImagePalette.cpython-313.pyc,,
|
| 132 |
+
PIL/__pycache__/ImagePath.cpython-313.pyc,,
|
| 133 |
+
PIL/__pycache__/ImageQt.cpython-313.pyc,,
|
| 134 |
+
PIL/__pycache__/ImageSequence.cpython-313.pyc,,
|
| 135 |
+
PIL/__pycache__/ImageShow.cpython-313.pyc,,
|
| 136 |
+
PIL/__pycache__/ImageStat.cpython-313.pyc,,
|
| 137 |
+
PIL/__pycache__/ImageText.cpython-313.pyc,,
|
| 138 |
+
PIL/__pycache__/ImageTk.cpython-313.pyc,,
|
| 139 |
+
PIL/__pycache__/ImageTransform.cpython-313.pyc,,
|
| 140 |
+
PIL/__pycache__/ImageWin.cpython-313.pyc,,
|
| 141 |
+
PIL/__pycache__/ImtImagePlugin.cpython-313.pyc,,
|
| 142 |
+
PIL/__pycache__/IptcImagePlugin.cpython-313.pyc,,
|
| 143 |
+
PIL/__pycache__/Jpeg2KImagePlugin.cpython-313.pyc,,
|
| 144 |
+
PIL/__pycache__/JpegImagePlugin.cpython-313.pyc,,
|
| 145 |
+
PIL/__pycache__/JpegPresets.cpython-313.pyc,,
|
| 146 |
+
PIL/__pycache__/McIdasImagePlugin.cpython-313.pyc,,
|
| 147 |
+
PIL/__pycache__/MicImagePlugin.cpython-313.pyc,,
|
| 148 |
+
PIL/__pycache__/MpegImagePlugin.cpython-313.pyc,,
|
| 149 |
+
PIL/__pycache__/MpoImagePlugin.cpython-313.pyc,,
|
| 150 |
+
PIL/__pycache__/MspImagePlugin.cpython-313.pyc,,
|
| 151 |
+
PIL/__pycache__/PSDraw.cpython-313.pyc,,
|
| 152 |
+
PIL/__pycache__/PaletteFile.cpython-313.pyc,,
|
| 153 |
+
PIL/__pycache__/PalmImagePlugin.cpython-313.pyc,,
|
| 154 |
+
PIL/__pycache__/PcdImagePlugin.cpython-313.pyc,,
|
| 155 |
+
PIL/__pycache__/PcfFontFile.cpython-313.pyc,,
|
| 156 |
+
PIL/__pycache__/PcxImagePlugin.cpython-313.pyc,,
|
| 157 |
+
PIL/__pycache__/PdfImagePlugin.cpython-313.pyc,,
|
| 158 |
+
PIL/__pycache__/PdfParser.cpython-313.pyc,,
|
| 159 |
+
PIL/__pycache__/PixarImagePlugin.cpython-313.pyc,,
|
| 160 |
+
PIL/__pycache__/PngImagePlugin.cpython-313.pyc,,
|
| 161 |
+
PIL/__pycache__/PpmImagePlugin.cpython-313.pyc,,
|
| 162 |
+
PIL/__pycache__/PsdImagePlugin.cpython-313.pyc,,
|
| 163 |
+
PIL/__pycache__/QoiImagePlugin.cpython-313.pyc,,
|
| 164 |
+
PIL/__pycache__/SgiImagePlugin.cpython-313.pyc,,
|
| 165 |
+
PIL/__pycache__/SpiderImagePlugin.cpython-313.pyc,,
|
| 166 |
+
PIL/__pycache__/SunImagePlugin.cpython-313.pyc,,
|
| 167 |
+
PIL/__pycache__/TarIO.cpython-313.pyc,,
|
| 168 |
+
PIL/__pycache__/TgaImagePlugin.cpython-313.pyc,,
|
| 169 |
+
PIL/__pycache__/TiffImagePlugin.cpython-313.pyc,,
|
| 170 |
+
PIL/__pycache__/TiffTags.cpython-313.pyc,,
|
| 171 |
+
PIL/__pycache__/WalImageFile.cpython-313.pyc,,
|
| 172 |
+
PIL/__pycache__/WebPImagePlugin.cpython-313.pyc,,
|
| 173 |
+
PIL/__pycache__/WmfImagePlugin.cpython-313.pyc,,
|
| 174 |
+
PIL/__pycache__/XVThumbImagePlugin.cpython-313.pyc,,
|
| 175 |
+
PIL/__pycache__/XbmImagePlugin.cpython-313.pyc,,
|
| 176 |
+
PIL/__pycache__/XpmImagePlugin.cpython-313.pyc,,
|
| 177 |
+
PIL/__pycache__/__init__.cpython-313.pyc,,
|
| 178 |
+
PIL/__pycache__/__main__.cpython-313.pyc,,
|
| 179 |
+
PIL/__pycache__/_binary.cpython-313.pyc,,
|
| 180 |
+
PIL/__pycache__/_deprecate.cpython-313.pyc,,
|
| 181 |
+
PIL/__pycache__/_tkinter_finder.cpython-313.pyc,,
|
| 182 |
+
PIL/__pycache__/_typing.cpython-313.pyc,,
|
| 183 |
+
PIL/__pycache__/_util.cpython-313.pyc,,
|
| 184 |
+
PIL/__pycache__/_version.cpython-313.pyc,,
|
| 185 |
+
PIL/__pycache__/features.cpython-313.pyc,,
|
| 186 |
+
PIL/__pycache__/report.cpython-313.pyc,,
|
| 187 |
+
PIL/_avif.cp313-win_amd64.pyd,sha256=Anr72SZWMXjTEe2yHFvGxV_prouXNwcVgqId_Hp0AYw,7895552
|
| 188 |
+
PIL/_avif.pyi,sha256=zD8vAoPC8aEIVjfckLtFskRW5saiVel3-sJUA2pHaGc,66
|
| 189 |
+
PIL/_binary.py,sha256=um3Ef6Ih50cpfuga_L2u8uqb5mTHpLUfU4JWMTLgsgs,2664
|
| 190 |
+
PIL/_deprecate.py,sha256=UirDlwsyef6u6sL_rlE3mnKtRf1mavmnhkt_1PA7Q8A,2106
|
| 191 |
+
PIL/_imaging.cp313-win_amd64.pyd,sha256=NLn70EDEZ3bzQ8Zbns0lLBzzDoTe95KU1-JnX-7xo2M,2589696
|
| 192 |
+
PIL/_imaging.pyi,sha256=jSRG3q1dwiBMqOwIhLtTBe3LMKwsi3YkTcDfsKV32E0,924
|
| 193 |
+
PIL/_imagingcms.cp313-win_amd64.pyd,sha256=GLRz2Hv2hXU_VVEcFXXB8lFTLO1b8-lG_r7oRxp-Blg,269824
|
| 194 |
+
PIL/_imagingcms.pyi,sha256=5_SDKe7KwT9ab5EeG-wn6F5sv_fs0o212xoPBm3H-Io,4576
|
| 195 |
+
PIL/_imagingft.cp313-win_amd64.pyd,sha256=tF7q5QxFKv1f5U9HW6FLOlQ89BJHUtzPrRKiS26-yG8,2166272
|
| 196 |
+
PIL/_imagingft.pyi,sha256=U1rpwqQX1hULvTAo8fY0_IrXng-VPuCXVaWBUj2p1z0,1903
|
| 197 |
+
PIL/_imagingmath.cp313-win_amd64.pyd,sha256=q20FqlbDSnFm7LqX_ABOTDP5e81Hkp60yP-kFd8hVxI,25600
|
| 198 |
+
PIL/_imagingmath.pyi,sha256=zD8vAoPC8aEIVjfckLtFskRW5saiVel3-sJUA2pHaGc,66
|
| 199 |
+
PIL/_imagingmorph.cp313-win_amd64.pyd,sha256=C67-Kv62M8g_SKUifDxUqH29CIJnJLBjdyy9f2RrtXs,13824
|
| 200 |
+
PIL/_imagingmorph.pyi,sha256=zD8vAoPC8aEIVjfckLtFskRW5saiVel3-sJUA2pHaGc,66
|
| 201 |
+
PIL/_imagingtk.cp313-win_amd64.pyd,sha256=G79UbdbQTt_huAYmoEEDCbK6sz3mZQmVdE4aILG2fJ8,14848
|
| 202 |
+
PIL/_imagingtk.pyi,sha256=zD8vAoPC8aEIVjfckLtFskRW5saiVel3-sJUA2pHaGc,66
|
| 203 |
+
PIL/_tkinter_finder.py,sha256=H1Uw3dV7gWHIj_osUnJFxWh1aRsQ2MdKpNP3vQwQcW0,558
|
| 204 |
+
PIL/_typing.py,sha256=t-MVS5f_pRdL-M072YZqlXFB_D8z1KOl8EcKsT_d9s4,964
|
| 205 |
+
PIL/_util.py,sha256=eP8IfmWJmbE_PqbUJb4qTqGNLi4zT0TTadrrqmykg7Y,713
|
| 206 |
+
PIL/_version.py,sha256=_TZ_MjcNZcW_yX2--8d9bRepwldvZNQUxEKeB6xMYWs,91
|
| 207 |
+
PIL/_webp.cp313-win_amd64.pyd,sha256=3EF3IDeGb_9RmFl3ZPi6_w44K4xd5cgNCo808sz5Eb0,409600
|
| 208 |
+
PIL/_webp.pyi,sha256=zD8vAoPC8aEIVjfckLtFskRW5saiVel3-sJUA2pHaGc,66
|
| 209 |
+
PIL/features.py,sha256=y_elNCzgB6RgMP9AMf3CdOP3jdoN4ho4vxoSKzg6eWc,11118
|
| 210 |
+
PIL/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 211 |
+
PIL/report.py,sha256=6m7NOv1a24577ZiJoxX89ip5JeOgf2O1F95f6-1K5aM,105
|
| 212 |
+
pillow-12.2.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 213 |
+
pillow-12.2.0.dist-info/METADATA,sha256=UApNzyFU9SkWYepKkCWJgIHVNsMCbVBsZIwxtop6Zsw,8989
|
| 214 |
+
pillow-12.2.0.dist-info/RECORD,,
|
| 215 |
+
pillow-12.2.0.dist-info/WHEEL,sha256=x5Wpw_tLx5PQKiWdxpqvs0e7Sg-SO0mTWdEADYDGPGA,101
|
| 216 |
+
pillow-12.2.0.dist-info/licenses/LICENSE,sha256=dbuBtY-bOXhu6y5WoeuCmq5QEELUnh3HZsoYe2zpZW8,78014
|
| 217 |
+
pillow-12.2.0.dist-info/top_level.txt,sha256=riZqrk-hyZqh5f1Z0Zwii3dKfxEsByhu9cU9IODF-NY,4
|
| 218 |
+
pillow-12.2.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
python/user_packages/Python313/site-packages/pillow-12.2.0.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (82.0.1)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp313-cp313-win_amd64
|
| 5 |
+
|
python/user_packages/Python313/site-packages/pillow-12.2.0.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
PIL
|
python/user_packages/Python313/site-packages/pillow-12.2.0.dist-info/zip-safe
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
|
python/user_packages/Python313/site-packages/propcache-0.5.2.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
python/user_packages/Python313/site-packages/propcache-0.5.2.dist-info/METADATA
ADDED
|
@@ -0,0 +1,539 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: propcache
|
| 3 |
+
Version: 0.5.2
|
| 4 |
+
Summary: Accelerated property cache
|
| 5 |
+
Home-page: https://github.com/aio-libs/propcache
|
| 6 |
+
Author: Andrew Svetlov
|
| 7 |
+
Author-email: andrew.svetlov@gmail.com
|
| 8 |
+
Maintainer: aiohttp team <team@aiohttp.org>
|
| 9 |
+
Maintainer-email: team@aiohttp.org
|
| 10 |
+
License: Apache-2.0
|
| 11 |
+
Project-URL: Chat: Matrix, https://matrix.to/#/#aio-libs:matrix.org
|
| 12 |
+
Project-URL: Chat: Matrix Space, https://matrix.to/#/#aio-libs-space:matrix.org
|
| 13 |
+
Project-URL: CI: GitHub Workflows, https://github.com/aio-libs/propcache/actions?query=branch:master
|
| 14 |
+
Project-URL: Code of Conduct, https://github.com/aio-libs/.github/blob/master/CODE_OF_CONDUCT.md
|
| 15 |
+
Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/propcache
|
| 16 |
+
Project-URL: Docs: Changelog, https://propcache.readthedocs.io/en/latest/changes/
|
| 17 |
+
Project-URL: Docs: RTD, https://propcache.readthedocs.io
|
| 18 |
+
Project-URL: GitHub: issues, https://github.com/aio-libs/propcache/issues
|
| 19 |
+
Project-URL: GitHub: repo, https://github.com/aio-libs/propcache
|
| 20 |
+
Keywords: cython,cext,propcache
|
| 21 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 22 |
+
Classifier: Intended Audience :: Developers
|
| 23 |
+
Classifier: License :: OSI Approved :: Apache Software License
|
| 24 |
+
Classifier: Programming Language :: Cython
|
| 25 |
+
Classifier: Programming Language :: Python
|
| 26 |
+
Classifier: Programming Language :: Python :: 3
|
| 27 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 28 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 29 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 30 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 31 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 32 |
+
Classifier: Topic :: Internet :: WWW/HTTP
|
| 33 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 34 |
+
Requires-Python: >=3.10
|
| 35 |
+
Description-Content-Type: text/x-rst
|
| 36 |
+
License-File: LICENSE
|
| 37 |
+
License-File: NOTICE
|
| 38 |
+
Dynamic: license-file
|
| 39 |
+
|
| 40 |
+
propcache
|
| 41 |
+
=========
|
| 42 |
+
|
| 43 |
+
The module provides a fast implementation of cached properties for Python 3.10+.
|
| 44 |
+
|
| 45 |
+
.. image:: https://github.com/aio-libs/propcache/actions/workflows/ci-cd.yml/badge.svg
|
| 46 |
+
:target: https://github.com/aio-libs/propcache/actions?query=workflow%3ACI
|
| 47 |
+
:align: right
|
| 48 |
+
|
| 49 |
+
.. image:: https://codecov.io/gh/aio-libs/propcache/branch/master/graph/badge.svg
|
| 50 |
+
:target: https://codecov.io/gh/aio-libs/propcache
|
| 51 |
+
|
| 52 |
+
.. image:: https://badge.fury.io/py/propcache.svg
|
| 53 |
+
:target: https://badge.fury.io/py/propcache
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
.. image:: https://readthedocs.org/projects/propcache/badge/?version=latest
|
| 57 |
+
:target: https://propcache.readthedocs.io
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
.. image:: https://img.shields.io/pypi/pyversions/propcache.svg
|
| 61 |
+
:target: https://pypi.python.org/pypi/propcache
|
| 62 |
+
|
| 63 |
+
.. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
| 64 |
+
:target: https://matrix.to/#/%23aio-libs:matrix.org
|
| 65 |
+
:alt: Matrix Room — #aio-libs:matrix.org
|
| 66 |
+
|
| 67 |
+
.. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
|
| 68 |
+
:target: https://matrix.to/#/%23aio-libs-space:matrix.org
|
| 69 |
+
:alt: Matrix Space — #aio-libs-space:matrix.org
|
| 70 |
+
|
| 71 |
+
Introduction
|
| 72 |
+
------------
|
| 73 |
+
|
| 74 |
+
The API is designed to be nearly identical to the built-in ``functools.cached_property`` class,
|
| 75 |
+
except for the additional ``under_cached_property`` class which uses ``self._cache``
|
| 76 |
+
instead of ``self.__dict__`` to store the cached values and prevents ``__set__`` from being called.
|
| 77 |
+
|
| 78 |
+
For full documentation please read https://propcache.readthedocs.io.
|
| 79 |
+
|
| 80 |
+
Installation
|
| 81 |
+
------------
|
| 82 |
+
|
| 83 |
+
::
|
| 84 |
+
|
| 85 |
+
$ pip install propcache
|
| 86 |
+
|
| 87 |
+
The library is Python 3 only!
|
| 88 |
+
|
| 89 |
+
PyPI contains binary wheels for Linux, Windows and MacOS. If you want to install
|
| 90 |
+
``propcache`` on another operating system where wheels are not provided,
|
| 91 |
+
the the tarball will be used to compile the library from
|
| 92 |
+
the source code. It requires a C compiler and and Python headers installed.
|
| 93 |
+
|
| 94 |
+
To skip the compilation you must explicitly opt-in by using a PEP 517
|
| 95 |
+
configuration setting ``pure-python``, or setting the ``PROPCACHE_NO_EXTENSIONS``
|
| 96 |
+
environment variable to a non-empty value, e.g.:
|
| 97 |
+
|
| 98 |
+
.. code-block:: console
|
| 99 |
+
|
| 100 |
+
$ pip install propcache --config-settings=pure-python=false
|
| 101 |
+
|
| 102 |
+
Please note that the pure-Python (uncompiled) version is much slower. However,
|
| 103 |
+
PyPy always uses a pure-Python implementation, and, as such, it is unaffected
|
| 104 |
+
by this variable.
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
API documentation
|
| 108 |
+
------------------
|
| 109 |
+
|
| 110 |
+
The documentation is located at https://propcache.readthedocs.io.
|
| 111 |
+
|
| 112 |
+
Source code
|
| 113 |
+
-----------
|
| 114 |
+
|
| 115 |
+
The project is hosted on GitHub_
|
| 116 |
+
|
| 117 |
+
Please file an issue on the `bug tracker
|
| 118 |
+
<https://github.com/aio-libs/propcache/issues>`_ if you have found a bug
|
| 119 |
+
or have some suggestion in order to improve the library.
|
| 120 |
+
|
| 121 |
+
Discussion list
|
| 122 |
+
---------------
|
| 123 |
+
|
| 124 |
+
*aio-libs* google group: https://groups.google.com/forum/#!forum/aio-libs
|
| 125 |
+
|
| 126 |
+
Feel free to post your questions and ideas here.
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
Authors and License
|
| 130 |
+
-------------------
|
| 131 |
+
|
| 132 |
+
The ``propcache`` package is derived from ``yarl`` which is written by Andrew Svetlov.
|
| 133 |
+
|
| 134 |
+
It's *Apache 2* licensed and freely available.
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
.. _GitHub: https://github.com/aio-libs/propcache
|
| 138 |
+
|
| 139 |
+
=========
|
| 140 |
+
Changelog
|
| 141 |
+
=========
|
| 142 |
+
|
| 143 |
+
..
|
| 144 |
+
You should *NOT* be adding new change log entries to this file, this
|
| 145 |
+
file is managed by towncrier. You *may* edit previous change logs to
|
| 146 |
+
fix problems like typo corrections or such.
|
| 147 |
+
To add a new change log entry, please see
|
| 148 |
+
https://pip.pypa.io/en/latest/development/#adding-a-news-entry
|
| 149 |
+
we named the news folder "changes".
|
| 150 |
+
|
| 151 |
+
WARNING: Don't drop the next directive!
|
| 152 |
+
|
| 153 |
+
.. towncrier release notes start
|
| 154 |
+
|
| 155 |
+
0.5.2
|
| 156 |
+
=====
|
| 157 |
+
|
| 158 |
+
*(2026-05-08)*
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
No significant changes.
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
----
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
0.5.1
|
| 168 |
+
=====
|
| 169 |
+
|
| 170 |
+
*(2026-05-08)*
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
No significant changes.
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
----
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
0.5.0
|
| 180 |
+
=====
|
| 181 |
+
|
| 182 |
+
*(2026-05-08)*
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
Features
|
| 186 |
+
--------
|
| 187 |
+
|
| 188 |
+
- Added support for newer type hints and remove ``Optional`` and ``Union`` from all annotations
|
| 189 |
+
-- by `@Vizonex <https://github.com/sponsors/Vizonex>`__
|
| 190 |
+
|
| 191 |
+
*Related issues and pull requests on GitHub:*
|
| 192 |
+
`#193 <https://github.com/aio-libs/propcache/issues/193>`__.
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
Removals and backward incompatible breaking changes
|
| 196 |
+
---------------------------------------------------
|
| 197 |
+
|
| 198 |
+
- Dropped support for Python 3.9 as it has reached end of life.
|
| 199 |
+
|
| 200 |
+
*Related issues and pull requests on GitHub:*
|
| 201 |
+
`#216 <https://github.com/aio-libs/propcache/issues/216>`__.
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
Packaging updates and notes for downstreams
|
| 205 |
+
-------------------------------------------
|
| 206 |
+
|
| 207 |
+
- Changed the Cython build dependency from ``~= 3.1.0`` to ``>= 3.2.0``,
|
| 208 |
+
removing the upper version bound to avoid conflicts for downstream packagers
|
| 209 |
+
-- by `@jameshilliard <https://github.com/sponsors/jameshilliard>`__ and `@gundalow <https://github.com/sponsors/gundalow>`__.
|
| 210 |
+
|
| 211 |
+
The upstream Cython version is pinned to 3.2.4 in the CI/CD environment.
|
| 212 |
+
|
| 213 |
+
*Related issues and pull requests on GitHub:*
|
| 214 |
+
`#184 <https://github.com/aio-libs/propcache/issues/184>`__, `#188 <https://github.com/aio-libs/propcache/issues/188>`__, `#214 <https://github.com/aio-libs/propcache/issues/214>`__.
|
| 215 |
+
|
| 216 |
+
- Start building and shipping riscv64 wheels
|
| 217 |
+
-- by `@justeph <https://github.com/sponsors/justeph>`__.
|
| 218 |
+
|
| 219 |
+
*Related issues and pull requests on GitHub:*
|
| 220 |
+
`#194 <https://github.com/aio-libs/propcache/issues/194>`__.
|
| 221 |
+
|
| 222 |
+
- The `PEP 517 <https://peps.python.org/pep-517>`__ build backend now supports a new ``build-inplace``
|
| 223 |
+
config setting (and ``PROPCACHE_BUILD_INPLACE`` environment variable)
|
| 224 |
+
for controlling whether to build the project in-tree or in a
|
| 225 |
+
temporary directory. It only affects wheels and is set up to build
|
| 226 |
+
in a temporary directory by default. It does not affect editable
|
| 227 |
+
wheel builds; they will keep being built in-tree regardless.
|
| 228 |
+
|
| 229 |
+
Here's an example of using this setting:
|
| 230 |
+
|
| 231 |
+
.. code-block:: console
|
| 232 |
+
|
| 233 |
+
$ python -m build --config-setting=build-inplace=true
|
| 234 |
+
|
| 235 |
+
Additionally, when building wheels in an automatically created
|
| 236 |
+
temporary directory, the build backend now normalizes the
|
| 237 |
+
respective file system path to a deterministic source checkout
|
| 238 |
+
directory by injecting the ``-ffile-prefix-map`` compiler option
|
| 239 |
+
into the ``CFLAGS`` environment variable, as suggested by known
|
| 240 |
+
`reproducible build practices
|
| 241 |
+
<https://reproducible-builds.org/docs/build-path/>`__.
|
| 242 |
+
|
| 243 |
+
The effect is that downstreams will get reproducible build results.
|
| 244 |
+
|
| 245 |
+
*Related issues and pull requests on GitHub:*
|
| 246 |
+
`#218 <https://github.com/aio-libs/propcache/issues/218>`__.
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
----
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
0.4.1
|
| 253 |
+
=====
|
| 254 |
+
|
| 255 |
+
*(2025-10-08)*
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
Bug fixes
|
| 259 |
+
---------
|
| 260 |
+
|
| 261 |
+
- Fixed reference leak caused by ``Py_INCREF`` because Cython has its own reference counter systems -- by `@Vizonex <https://github.com/sponsors/Vizonex>`__.
|
| 262 |
+
|
| 263 |
+
*Related issues and pull requests on GitHub:*
|
| 264 |
+
`#162 <https://github.com/aio-libs/propcache/issues/162>`__.
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
Contributor-facing changes
|
| 268 |
+
--------------------------
|
| 269 |
+
|
| 270 |
+
- Fixes the default value for the ``os``
|
| 271 |
+
parameter in ``reusable-build-wheel.yml``
|
| 272 |
+
to be ``ubuntu-latest`` instead of
|
| 273 |
+
``ubuntu``.
|
| 274 |
+
|
| 275 |
+
*Related issues and pull requests on GitHub:*
|
| 276 |
+
`#155 <https://github.com/aio-libs/propcache/issues/155>`__.
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
----
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
0.4.0
|
| 283 |
+
=====
|
| 284 |
+
|
| 285 |
+
*(2025-10-04)*
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
Features
|
| 289 |
+
--------
|
| 290 |
+
|
| 291 |
+
- Optimized propcache by replacing sentinel ``object`` for checking if
|
| 292 |
+
the ``object`` is ``NULL`` and changed ``dict`` API for
|
| 293 |
+
Python C-API -- by `@Vizonex <https://github.com/sponsors/Vizonex>`__.
|
| 294 |
+
|
| 295 |
+
*Related issues and pull requests on GitHub:*
|
| 296 |
+
`#121 <https://github.com/aio-libs/propcache/issues/121>`__.
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
Contributor-facing changes
|
| 300 |
+
--------------------------
|
| 301 |
+
|
| 302 |
+
- Builds have been added for arm64 Windows
|
| 303 |
+
wheels and the ``reusable-build-wheel.yml``
|
| 304 |
+
workflow has been modified to allow for
|
| 305 |
+
an OS value (``windows-11-arm``) which
|
| 306 |
+
does not include the ``-latest`` postfix
|
| 307 |
+
-- by `@finnagin <https://github.com/sponsors/finnagin>`__.
|
| 308 |
+
|
| 309 |
+
*Related issues and pull requests on GitHub:*
|
| 310 |
+
`#133 <https://github.com/aio-libs/propcache/issues/133>`__.
|
| 311 |
+
|
| 312 |
+
- Added CI for CPython 3.14 -- by `@kumaraditya303 <https://github.com/sponsors/kumaraditya303>`__.
|
| 313 |
+
|
| 314 |
+
*Related issues and pull requests on GitHub:*
|
| 315 |
+
`#140 <https://github.com/aio-libs/propcache/issues/140>`__.
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
----
|
| 319 |
+
|
| 320 |
+
|
| 321 |
+
0.3.2
|
| 322 |
+
=====
|
| 323 |
+
|
| 324 |
+
*(2025-06-09)*
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
Improved documentation
|
| 328 |
+
----------------------
|
| 329 |
+
|
| 330 |
+
- Fixed incorrect decorator usage in the ``~propcache.api.under_cached_property`` example code -- by `@meanmail <https://github.com/sponsors/meanmail>`__.
|
| 331 |
+
|
| 332 |
+
*Related issues and pull requests on GitHub:*
|
| 333 |
+
`#109 <https://github.com/aio-libs/propcache/issues/109>`__.
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
Packaging updates and notes for downstreams
|
| 337 |
+
-------------------------------------------
|
| 338 |
+
|
| 339 |
+
- Updated to use Cython 3.1 universally across the build path -- by `@lysnikolaou <https://github.com/sponsors/lysnikolaou>`__.
|
| 340 |
+
|
| 341 |
+
*Related issues and pull requests on GitHub:*
|
| 342 |
+
`#117 <https://github.com/aio-libs/propcache/issues/117>`__.
|
| 343 |
+
|
| 344 |
+
- Made Cython line tracing opt-in via the ``with-cython-tracing`` build config setting -- by `@bdraco <https://github.com/sponsors/bdraco>`__.
|
| 345 |
+
|
| 346 |
+
Previously, line tracing was enabled by default in ``pyproject.toml``, which caused build issues for some users and made wheels nearly twice as slow.
|
| 347 |
+
|
| 348 |
+
Now line tracing is only enabled when explicitly requested via ``pip install . --config-setting=with-cython-tracing=true`` or by setting the ``PROPCACHE_CYTHON_TRACING`` environment variable.
|
| 349 |
+
|
| 350 |
+
*Related issues and pull requests on GitHub:*
|
| 351 |
+
`#118 <https://github.com/aio-libs/propcache/issues/118>`__.
|
| 352 |
+
|
| 353 |
+
|
| 354 |
+
----
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
0.3.1
|
| 358 |
+
=====
|
| 359 |
+
|
| 360 |
+
*(2025-03-25)*
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
Bug fixes
|
| 364 |
+
---------
|
| 365 |
+
|
| 366 |
+
- Improved typing annotations, fixing some type errors under correct usage
|
| 367 |
+
and improving typing robustness generally -- by `@Dreamsorcerer <https://github.com/sponsors/Dreamsorcerer>`__.
|
| 368 |
+
|
| 369 |
+
*Related issues and pull requests on GitHub:*
|
| 370 |
+
`#103 <https://github.com/aio-libs/propcache/issues/103>`__.
|
| 371 |
+
|
| 372 |
+
|
| 373 |
+
----
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
0.3.0
|
| 377 |
+
=====
|
| 378 |
+
|
| 379 |
+
*(2025-02-20)*
|
| 380 |
+
|
| 381 |
+
|
| 382 |
+
Features
|
| 383 |
+
--------
|
| 384 |
+
|
| 385 |
+
- Implemented support for the free-threaded build of CPython 3.13 -- by `@lysnikolaou <https://github.com/sponsors/lysnikolaou>`__.
|
| 386 |
+
|
| 387 |
+
*Related issues and pull requests on GitHub:*
|
| 388 |
+
`#84 <https://github.com/aio-libs/propcache/issues/84>`__.
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
Packaging updates and notes for downstreams
|
| 392 |
+
-------------------------------------------
|
| 393 |
+
|
| 394 |
+
- Started building wheels for the free-threaded build of CPython 3.13 -- by `@lysnikolaou <https://github.com/sponsors/lysnikolaou>`__.
|
| 395 |
+
|
| 396 |
+
*Related issues and pull requests on GitHub:*
|
| 397 |
+
`#84 <https://github.com/aio-libs/propcache/issues/84>`__.
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
Contributor-facing changes
|
| 401 |
+
--------------------------
|
| 402 |
+
|
| 403 |
+
- GitHub Actions CI/CD is now configured to manage caching pip-ecosystem
|
| 404 |
+
dependencies using `re-actors/cache-python-deps`_ -- an action by
|
| 405 |
+
`@webknjaz <https://github.com/sponsors/webknjaz>`__ that takes into account ABI stability and the exact
|
| 406 |
+
version of Python runtime.
|
| 407 |
+
|
| 408 |
+
.. _`re-actors/cache-python-deps`:
|
| 409 |
+
https://github.com/marketplace/actions/cache-python-deps
|
| 410 |
+
|
| 411 |
+
*Related issues and pull requests on GitHub:*
|
| 412 |
+
`#93 <https://github.com/aio-libs/propcache/issues/93>`__.
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
----
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
0.2.1
|
| 419 |
+
=====
|
| 420 |
+
|
| 421 |
+
*(2024-12-01)*
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
Bug fixes
|
| 425 |
+
---------
|
| 426 |
+
|
| 427 |
+
- Stopped implicitly allowing the use of Cython pre-release versions when
|
| 428 |
+
building the distribution package -- by `@ajsanchezsanz <https://github.com/sponsors/ajsanchezsanz>`__ and
|
| 429 |
+
`@markgreene74 <https://github.com/sponsors/markgreene74>`__.
|
| 430 |
+
|
| 431 |
+
*Related commits on GitHub:*
|
| 432 |
+
`64df0a6 <https://github.com/aio-libs/propcache/commit/64df0a6>`__.
|
| 433 |
+
|
| 434 |
+
- Fixed ``wrapped`` and ``func`` not being accessible in the Cython versions of ``propcache.api.cached_property`` and ``propcache.api.under_cached_property`` decorators -- by `@bdraco <https://github.com/sponsors/bdraco>`__.
|
| 435 |
+
|
| 436 |
+
*Related issues and pull requests on GitHub:*
|
| 437 |
+
`#72 <https://github.com/aio-libs/propcache/issues/72>`__.
|
| 438 |
+
|
| 439 |
+
|
| 440 |
+
Removals and backward incompatible breaking changes
|
| 441 |
+
---------------------------------------------------
|
| 442 |
+
|
| 443 |
+
- Removed support for Python 3.8 as it has reached end of life -- by `@bdraco <https://github.com/sponsors/bdraco>`__.
|
| 444 |
+
|
| 445 |
+
*Related issues and pull requests on GitHub:*
|
| 446 |
+
`#57 <https://github.com/aio-libs/propcache/issues/57>`__.
|
| 447 |
+
|
| 448 |
+
|
| 449 |
+
Packaging updates and notes for downstreams
|
| 450 |
+
-------------------------------------------
|
| 451 |
+
|
| 452 |
+
- Stopped implicitly allowing the use of Cython pre-release versions when
|
| 453 |
+
building the distribution package -- by `@ajsanchezsanz <https://github.com/sponsors/ajsanchezsanz>`__ and
|
| 454 |
+
`@markgreene74 <https://github.com/sponsors/markgreene74>`__.
|
| 455 |
+
|
| 456 |
+
*Related commits on GitHub:*
|
| 457 |
+
`64df0a6 <https://github.com/aio-libs/propcache/commit/64df0a6>`__.
|
| 458 |
+
|
| 459 |
+
|
| 460 |
+
----
|
| 461 |
+
|
| 462 |
+
|
| 463 |
+
0.2.0
|
| 464 |
+
=====
|
| 465 |
+
|
| 466 |
+
*(2024-10-07)*
|
| 467 |
+
|
| 468 |
+
|
| 469 |
+
Bug fixes
|
| 470 |
+
---------
|
| 471 |
+
|
| 472 |
+
- Fixed loading the C-extensions on Python 3.8 -- by `@bdraco <https://github.com/sponsors/bdraco>`__.
|
| 473 |
+
|
| 474 |
+
*Related issues and pull requests on GitHub:*
|
| 475 |
+
`#26 <https://github.com/aio-libs/propcache/issues/26>`__.
|
| 476 |
+
|
| 477 |
+
|
| 478 |
+
Features
|
| 479 |
+
--------
|
| 480 |
+
|
| 481 |
+
- Improved typing for the ``propcache.api.under_cached_property`` decorator -- by `@bdraco <https://github.com/sponsors/bdraco>`__.
|
| 482 |
+
|
| 483 |
+
*Related issues and pull requests on GitHub:*
|
| 484 |
+
`#38 <https://github.com/aio-libs/propcache/issues/38>`__.
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
Improved documentation
|
| 488 |
+
----------------------
|
| 489 |
+
|
| 490 |
+
- Added API documentation for the ``propcache.api.cached_property`` and ``propcache.api.under_cached_property`` decorators -- by `@bdraco <https://github.com/sponsors/bdraco>`__.
|
| 491 |
+
|
| 492 |
+
*Related issues and pull requests on GitHub:*
|
| 493 |
+
`#16 <https://github.com/aio-libs/propcache/issues/16>`__.
|
| 494 |
+
|
| 495 |
+
|
| 496 |
+
Packaging updates and notes for downstreams
|
| 497 |
+
-------------------------------------------
|
| 498 |
+
|
| 499 |
+
- Moved ``propcache.api.under_cached_property`` and ``propcache.api.cached_property`` to `propcache.api` -- by `@bdraco <https://github.com/sponsors/bdraco>`__.
|
| 500 |
+
|
| 501 |
+
Both decorators remain importable from the top-level package, however importing from `propcache.api` is now the recommended way to use them.
|
| 502 |
+
|
| 503 |
+
*Related issues and pull requests on GitHub:*
|
| 504 |
+
`#19 <https://github.com/aio-libs/propcache/issues/19>`__, `#24 <https://github.com/aio-libs/propcache/issues/24>`__, `#32 <https://github.com/aio-libs/propcache/issues/32>`__.
|
| 505 |
+
|
| 506 |
+
- Converted project to use a src layout -- by `@bdraco <https://github.com/sponsors/bdraco>`__.
|
| 507 |
+
|
| 508 |
+
*Related issues and pull requests on GitHub:*
|
| 509 |
+
`#22 <https://github.com/aio-libs/propcache/issues/22>`__, `#29 <https://github.com/aio-libs/propcache/issues/29>`__, `#37 <https://github.com/aio-libs/propcache/issues/37>`__.
|
| 510 |
+
|
| 511 |
+
|
| 512 |
+
----
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
0.1.0
|
| 516 |
+
=====
|
| 517 |
+
|
| 518 |
+
*(2024-10-03)*
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
Features
|
| 522 |
+
--------
|
| 523 |
+
|
| 524 |
+
- Added ``armv7l`` wheels -- by `@bdraco <https://github.com/sponsors/bdraco>`__.
|
| 525 |
+
|
| 526 |
+
*Related issues and pull requests on GitHub:*
|
| 527 |
+
`#5 <https://github.com/aio-libs/propcache/issues/5>`__.
|
| 528 |
+
|
| 529 |
+
|
| 530 |
+
----
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
0.0.0
|
| 534 |
+
=====
|
| 535 |
+
|
| 536 |
+
*(2024-10-02)*
|
| 537 |
+
|
| 538 |
+
|
| 539 |
+
- Initial release.
|
python/user_packages/Python313/site-packages/propcache-0.5.2.dist-info/RECORD
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
propcache-0.5.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
propcache-0.5.2.dist-info/METADATA,sha256=fHYfKiSwP4jj2MaCP8q3WjXtmIfOIyoIBpTvpgPzfwg,17035
|
| 3 |
+
propcache-0.5.2.dist-info/RECORD,,
|
| 4 |
+
propcache-0.5.2.dist-info/WHEEL,sha256=x5Wpw_tLx5PQKiWdxpqvs0e7Sg-SO0mTWdEADYDGPGA,101
|
| 5 |
+
propcache-0.5.2.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
| 6 |
+
propcache-0.5.2.dist-info/licenses/NOTICE,sha256=VtasbIEFwKUTBMIdsGDjYa-ajqCvmnXCOcKLXRNpODg,609
|
| 7 |
+
propcache-0.5.2.dist-info/top_level.txt,sha256=pVF_GbqSAITPMiX27kfU3QP9-ufhRvkADmudDxWdF3w,10
|
| 8 |
+
propcache/__init__.py,sha256=lNXqBAR5xSfCkeeYrdUBmpk154KWjPTdrh1rdqowtYE,965
|
| 9 |
+
propcache/__pycache__/__init__.cpython-313.pyc,,
|
| 10 |
+
propcache/__pycache__/_helpers.cpython-313.pyc,,
|
| 11 |
+
propcache/__pycache__/_helpers_py.cpython-313.pyc,,
|
| 12 |
+
propcache/__pycache__/api.cpython-313.pyc,,
|
| 13 |
+
propcache/_helpers.py,sha256=68SQm6kETN8Mnt9Ol26LJYgHgmB0mKy1tp92888zN4k,1553
|
| 14 |
+
propcache/_helpers_c.cp313-win_amd64.pyd,sha256=HD6v4AwqDh3ZNkegHr8YdPsiZcsJ9YYZdh-BTchZnzo,61440
|
| 15 |
+
propcache/_helpers_c.pyx,sha256=kcJa1U5lh54TPCqAeZ0cVB7URcb3I8ZbJieOrkNhLQE,3265
|
| 16 |
+
propcache/_helpers_py.py,sha256=G29pl3XJ8T0LqleQxYMTh9SwI3_UdG7r9KGcQwbi0pc,1910
|
| 17 |
+
propcache/api.py,sha256=wvgB-ypkkI5uf72VVYl2NFGc_TnzUQA2CxC7dTlL5ak,179
|
| 18 |
+
propcache/py.typed,sha256=ay5OMO475PlcZ_Fbun9maHW7Y6MBTk0UXL4ztHx3Iug,14
|
python/user_packages/Python313/site-packages/propcache-0.5.2.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (82.0.1)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp313-cp313-win_amd64
|
| 5 |
+
|
python/user_packages/Python313/site-packages/propcache-0.5.2.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
propcache
|
python/user_packages/Python313/site-packages/propcache/__init__.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""propcache: An accelerated property cache for Python classes."""
|
| 2 |
+
|
| 3 |
+
from typing import TYPE_CHECKING
|
| 4 |
+
|
| 5 |
+
_PUBLIC_API = ("cached_property", "under_cached_property")
|
| 6 |
+
|
| 7 |
+
__version__ = "0.5.2"
|
| 8 |
+
__all__ = ()
|
| 9 |
+
|
| 10 |
+
# Imports have moved to `propcache.api` in 0.2.0+.
|
| 11 |
+
# This module is now a facade for the API.
|
| 12 |
+
if TYPE_CHECKING:
|
| 13 |
+
from .api import cached_property as cached_property # noqa: F401
|
| 14 |
+
from .api import under_cached_property as under_cached_property # noqa: F401
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def _import_facade(attr: str) -> object:
|
| 18 |
+
"""Import the public API from the `api` module."""
|
| 19 |
+
if attr in _PUBLIC_API:
|
| 20 |
+
from . import api # pylint: disable=import-outside-toplevel
|
| 21 |
+
|
| 22 |
+
return getattr(api, attr)
|
| 23 |
+
raise AttributeError(f"module '{__package__}' has no attribute '{attr}'")
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def _dir_facade() -> list[str]:
|
| 27 |
+
"""Include the public API in the module's dir() output."""
|
| 28 |
+
return [*_PUBLIC_API, *globals().keys()]
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
__getattr__ = _import_facade
|
| 32 |
+
__dir__ = _dir_facade
|
python/user_packages/Python313/site-packages/propcache/_helpers.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
+
from typing import TYPE_CHECKING
|
| 4 |
+
|
| 5 |
+
__all__ = ("cached_property", "under_cached_property")
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
NO_EXTENSIONS = bool(os.environ.get("PROPCACHE_NO_EXTENSIONS")) # type: bool
|
| 9 |
+
if sys.implementation.name != "cpython":
|
| 10 |
+
NO_EXTENSIONS = True
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# isort: off
|
| 14 |
+
if TYPE_CHECKING:
|
| 15 |
+
from ._helpers_py import cached_property as cached_property_py
|
| 16 |
+
from ._helpers_py import under_cached_property as under_cached_property_py
|
| 17 |
+
|
| 18 |
+
cached_property = cached_property_py
|
| 19 |
+
under_cached_property = under_cached_property_py
|
| 20 |
+
elif not NO_EXTENSIONS: # pragma: no branch
|
| 21 |
+
try:
|
| 22 |
+
from ._helpers_c import cached_property as cached_property_c # type: ignore[attr-defined, unused-ignore]
|
| 23 |
+
from ._helpers_c import under_cached_property as under_cached_property_c # type: ignore[attr-defined, unused-ignore]
|
| 24 |
+
|
| 25 |
+
cached_property = cached_property_c
|
| 26 |
+
under_cached_property = under_cached_property_c
|
| 27 |
+
except ImportError: # pragma: no cover
|
| 28 |
+
from ._helpers_py import cached_property as cached_property_py
|
| 29 |
+
from ._helpers_py import under_cached_property as under_cached_property_py
|
| 30 |
+
|
| 31 |
+
cached_property = cached_property_py # type: ignore[assignment, misc]
|
| 32 |
+
under_cached_property = under_cached_property_py
|
| 33 |
+
else:
|
| 34 |
+
from ._helpers_py import cached_property as cached_property_py
|
| 35 |
+
from ._helpers_py import under_cached_property as under_cached_property_py
|
| 36 |
+
|
| 37 |
+
cached_property = cached_property_py # type: ignore[assignment, misc]
|
| 38 |
+
under_cached_property = under_cached_property_py
|
| 39 |
+
# isort: on
|
python/user_packages/Python313/site-packages/propcache/_helpers_c.cp313-win_amd64.pyd
ADDED
|
Binary file (61.4 kB). View file
|
|
|
python/user_packages/Python313/site-packages/propcache/_helpers_c.pyx
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# cython: language_level=3, freethreading_compatible=True
|
| 2 |
+
from types import GenericAlias
|
| 3 |
+
|
| 4 |
+
from cpython.dict cimport PyDict_GetItem
|
| 5 |
+
from cpython.object cimport PyObject
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
cdef extern from "Python.h":
|
| 9 |
+
# Call a callable Python object callable with exactly
|
| 10 |
+
# 1 positional argument arg and no keyword arguments.
|
| 11 |
+
# Return the result of the call on success, or raise
|
| 12 |
+
# an exception and return NULL on failure.
|
| 13 |
+
PyObject* PyObject_CallOneArg(
|
| 14 |
+
object callable, object arg
|
| 15 |
+
) except NULL
|
| 16 |
+
int PyDict_SetItem(
|
| 17 |
+
object dict, object key, PyObject* value
|
| 18 |
+
) except -1
|
| 19 |
+
void Py_DECREF(PyObject*)
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
cdef class under_cached_property:
|
| 23 |
+
"""Use as a class method decorator. It operates almost exactly like
|
| 24 |
+
the Python `@property` decorator, but it puts the result of the
|
| 25 |
+
method it decorates into the instance dict after the first call,
|
| 26 |
+
effectively replacing the function it decorates with an instance
|
| 27 |
+
variable. It is, in Python parlance, a data descriptor.
|
| 28 |
+
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
+
cdef readonly object wrapped
|
| 32 |
+
cdef object name
|
| 33 |
+
|
| 34 |
+
def __init__(self, object wrapped):
|
| 35 |
+
self.wrapped = wrapped
|
| 36 |
+
self.name = wrapped.__name__
|
| 37 |
+
|
| 38 |
+
@property
|
| 39 |
+
def __doc__(self):
|
| 40 |
+
return self.wrapped.__doc__
|
| 41 |
+
|
| 42 |
+
def __get__(self, object inst, owner):
|
| 43 |
+
if inst is None:
|
| 44 |
+
return self
|
| 45 |
+
cdef dict cache = inst._cache
|
| 46 |
+
cdef PyObject* val = PyDict_GetItem(cache, self.name)
|
| 47 |
+
if val == NULL:
|
| 48 |
+
val = PyObject_CallOneArg(self.wrapped, inst)
|
| 49 |
+
PyDict_SetItem(cache, self.name, val)
|
| 50 |
+
Py_DECREF(val)
|
| 51 |
+
return <object>val
|
| 52 |
+
|
| 53 |
+
def __set__(self, inst, value):
|
| 54 |
+
raise AttributeError("cached property is read-only")
|
| 55 |
+
|
| 56 |
+
__class_getitem__ = classmethod(GenericAlias)
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
cdef class cached_property:
|
| 60 |
+
"""Use as a class method decorator. It operates almost exactly like
|
| 61 |
+
the Python `@property` decorator, but it puts the result of the
|
| 62 |
+
method it decorates into the instance dict after the first call,
|
| 63 |
+
effectively replacing the function it decorates with an instance
|
| 64 |
+
variable. It is, in Python parlance, a data descriptor.
|
| 65 |
+
|
| 66 |
+
"""
|
| 67 |
+
|
| 68 |
+
cdef readonly object func
|
| 69 |
+
cdef object name
|
| 70 |
+
|
| 71 |
+
def __init__(self, func):
|
| 72 |
+
self.func = func
|
| 73 |
+
self.name = None
|
| 74 |
+
|
| 75 |
+
@property
|
| 76 |
+
def __doc__(self):
|
| 77 |
+
return self.func.__doc__
|
| 78 |
+
|
| 79 |
+
def __set_name__(self, owner, object name):
|
| 80 |
+
if self.name is None:
|
| 81 |
+
self.name = name
|
| 82 |
+
elif name != self.name:
|
| 83 |
+
raise TypeError(
|
| 84 |
+
"Cannot assign the same cached_property to two different names "
|
| 85 |
+
f"({self.name!r} and {name!r})."
|
| 86 |
+
)
|
| 87 |
+
|
| 88 |
+
def __get__(self, inst, owner):
|
| 89 |
+
if inst is None:
|
| 90 |
+
return self
|
| 91 |
+
if self.name is None:
|
| 92 |
+
raise TypeError(
|
| 93 |
+
"Cannot use cached_property instance"
|
| 94 |
+
" without calling __set_name__ on it.")
|
| 95 |
+
cdef dict cache = inst.__dict__
|
| 96 |
+
cdef PyObject* val = PyDict_GetItem(cache, self.name)
|
| 97 |
+
if val is NULL:
|
| 98 |
+
val = PyObject_CallOneArg(self.func, inst)
|
| 99 |
+
PyDict_SetItem(cache, self.name, val)
|
| 100 |
+
Py_DECREF(val)
|
| 101 |
+
return <object>val
|
| 102 |
+
|
| 103 |
+
__class_getitem__ = classmethod(GenericAlias)
|
python/user_packages/Python313/site-packages/propcache/_helpers_py.py
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Various helper functions."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import sys
|
| 6 |
+
from collections.abc import Callable, Mapping
|
| 7 |
+
from functools import cached_property
|
| 8 |
+
from typing import Any, Generic, Protocol, TypeVar, overload
|
| 9 |
+
|
| 10 |
+
__all__ = ("under_cached_property", "cached_property")
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
if sys.version_info >= (3, 11):
|
| 14 |
+
from typing import Self
|
| 15 |
+
else:
|
| 16 |
+
Self = Any
|
| 17 |
+
|
| 18 |
+
_T = TypeVar("_T")
|
| 19 |
+
# We use Mapping to make it possible to use TypedDict, but this isn't
|
| 20 |
+
# technically type safe as we need to assign into the dict.
|
| 21 |
+
_Cache = TypeVar("_Cache", bound=Mapping[str, Any])
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
class _CacheImpl(Protocol[_Cache]):
|
| 25 |
+
_cache: _Cache
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
class under_cached_property(Generic[_T]):
|
| 29 |
+
"""Use as a class method decorator.
|
| 30 |
+
|
| 31 |
+
It operates almost exactly like
|
| 32 |
+
the Python `@property` decorator, but it puts the result of the
|
| 33 |
+
method it decorates into the instance dict after the first call,
|
| 34 |
+
effectively replacing the function it decorates with an instance
|
| 35 |
+
variable. It is, in Python parlance, a data descriptor.
|
| 36 |
+
"""
|
| 37 |
+
|
| 38 |
+
def __init__(self, wrapped: Callable[[Any], _T]) -> None:
|
| 39 |
+
self.wrapped = wrapped
|
| 40 |
+
self.__doc__ = wrapped.__doc__
|
| 41 |
+
self.name = wrapped.__name__
|
| 42 |
+
|
| 43 |
+
@overload
|
| 44 |
+
def __get__(self, inst: None, owner: type[object] | None = None) -> Self: ...
|
| 45 |
+
|
| 46 |
+
@overload
|
| 47 |
+
def __get__(
|
| 48 |
+
self, inst: _CacheImpl[Any], owner: type[object] | None = None
|
| 49 |
+
) -> _T: ...
|
| 50 |
+
|
| 51 |
+
def __get__(
|
| 52 |
+
self, inst: _CacheImpl[Any] | None, owner: type[object] | None = None
|
| 53 |
+
) -> _T | Self:
|
| 54 |
+
if inst is None:
|
| 55 |
+
return self
|
| 56 |
+
try:
|
| 57 |
+
return inst._cache[self.name] # type: ignore[no-any-return]
|
| 58 |
+
except KeyError:
|
| 59 |
+
val = self.wrapped(inst)
|
| 60 |
+
inst._cache[self.name] = val
|
| 61 |
+
return val
|
| 62 |
+
|
| 63 |
+
def __set__(self, inst: _CacheImpl[Any], value: _T) -> None:
|
| 64 |
+
raise AttributeError("cached property is read-only")
|
python/user_packages/Python313/site-packages/propcache/api.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Public API of the property caching library."""
|
| 2 |
+
|
| 3 |
+
from ._helpers import cached_property, under_cached_property
|
| 4 |
+
|
| 5 |
+
__all__ = (
|
| 6 |
+
"cached_property",
|
| 7 |
+
"under_cached_property",
|
| 8 |
+
)
|
python/user_packages/Python313/site-packages/propcache/py.typed
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
# Placeholder
|
python/user_packages/Python313/site-packages/protobuf-6.33.6.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
python/user_packages/Python313/site-packages/protobuf-6.33.6.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright 2008 Google Inc. All rights reserved.
|
| 2 |
+
|
| 3 |
+
Redistribution and use in source and binary forms, with or without
|
| 4 |
+
modification, are permitted provided that the following conditions are
|
| 5 |
+
met:
|
| 6 |
+
|
| 7 |
+
* Redistributions of source code must retain the above copyright
|
| 8 |
+
notice, this list of conditions and the following disclaimer.
|
| 9 |
+
* Redistributions in binary form must reproduce the above
|
| 10 |
+
copyright notice, this list of conditions and the following disclaimer
|
| 11 |
+
in the documentation and/or other materials provided with the
|
| 12 |
+
distribution.
|
| 13 |
+
* Neither the name of Google Inc. nor the names of its
|
| 14 |
+
contributors may be used to endorse or promote products derived from
|
| 15 |
+
this software without specific prior written permission.
|
| 16 |
+
|
| 17 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 18 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 19 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 20 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 21 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 22 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 23 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 24 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 25 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 26 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 27 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
Code generated by the Protocol Buffer compiler is owned by the owner
|
| 30 |
+
of the input file used when generating it. This code is not
|
| 31 |
+
standalone and requires a support library to be linked with it. This
|
| 32 |
+
support library is itself covered by the above license.
|
python/user_packages/Python313/site-packages/protobuf-6.33.6.dist-info/METADATA
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: protobuf
|
| 3 |
+
Author: protobuf@googlegroups.com
|
| 4 |
+
Author-email: protobuf@googlegroups.com
|
| 5 |
+
Home-page: https://developers.google.com/protocol-buffers/
|
| 6 |
+
License: 3-Clause BSD License
|
| 7 |
+
Classifier: Programming Language :: Python
|
| 8 |
+
Classifier: Programming Language :: Python :: 3
|
| 9 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 10 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 11 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 12 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 13 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 14 |
+
Requires-Python: >=3.9
|
| 15 |
+
Version: 6.33.6
|
| 16 |
+
|
| 17 |
+
UNKNOWN
|
python/user_packages/Python313/site-packages/protobuf-6.33.6.dist-info/RECORD
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
google/_upb/_message.pyd,sha256=cpcLtmZ2pONLpf5v_Y-FO3jqHvfkrRCCu4AoenjUeSM,724239
|
| 2 |
+
google/protobuf/__init__.py,sha256=PWau5gh5rotmz6VUjBIOnzK0LQPppHQ4MrcBt2yAJ_0,346
|
| 3 |
+
google/protobuf/__pycache__/__init__.cpython-313.pyc,,
|
| 4 |
+
google/protobuf/__pycache__/any.cpython-313.pyc,,
|
| 5 |
+
google/protobuf/__pycache__/any_pb2.cpython-313.pyc,,
|
| 6 |
+
google/protobuf/__pycache__/api_pb2.cpython-313.pyc,,
|
| 7 |
+
google/protobuf/__pycache__/descriptor.cpython-313.pyc,,
|
| 8 |
+
google/protobuf/__pycache__/descriptor_database.cpython-313.pyc,,
|
| 9 |
+
google/protobuf/__pycache__/descriptor_pb2.cpython-313.pyc,,
|
| 10 |
+
google/protobuf/__pycache__/descriptor_pool.cpython-313.pyc,,
|
| 11 |
+
google/protobuf/__pycache__/duration.cpython-313.pyc,,
|
| 12 |
+
google/protobuf/__pycache__/duration_pb2.cpython-313.pyc,,
|
| 13 |
+
google/protobuf/__pycache__/empty_pb2.cpython-313.pyc,,
|
| 14 |
+
google/protobuf/__pycache__/field_mask_pb2.cpython-313.pyc,,
|
| 15 |
+
google/protobuf/__pycache__/json_format.cpython-313.pyc,,
|
| 16 |
+
google/protobuf/__pycache__/message.cpython-313.pyc,,
|
| 17 |
+
google/protobuf/__pycache__/message_factory.cpython-313.pyc,,
|
| 18 |
+
google/protobuf/__pycache__/proto.cpython-313.pyc,,
|
| 19 |
+
google/protobuf/__pycache__/proto_builder.cpython-313.pyc,,
|
| 20 |
+
google/protobuf/__pycache__/proto_json.cpython-313.pyc,,
|
| 21 |
+
google/protobuf/__pycache__/proto_text.cpython-313.pyc,,
|
| 22 |
+
google/protobuf/__pycache__/reflection.cpython-313.pyc,,
|
| 23 |
+
google/protobuf/__pycache__/runtime_version.cpython-313.pyc,,
|
| 24 |
+
google/protobuf/__pycache__/service_reflection.cpython-313.pyc,,
|
| 25 |
+
google/protobuf/__pycache__/source_context_pb2.cpython-313.pyc,,
|
| 26 |
+
google/protobuf/__pycache__/struct_pb2.cpython-313.pyc,,
|
| 27 |
+
google/protobuf/__pycache__/symbol_database.cpython-313.pyc,,
|
| 28 |
+
google/protobuf/__pycache__/text_encoding.cpython-313.pyc,,
|
| 29 |
+
google/protobuf/__pycache__/text_format.cpython-313.pyc,,
|
| 30 |
+
google/protobuf/__pycache__/timestamp.cpython-313.pyc,,
|
| 31 |
+
google/protobuf/__pycache__/timestamp_pb2.cpython-313.pyc,,
|
| 32 |
+
google/protobuf/__pycache__/type_pb2.cpython-313.pyc,,
|
| 33 |
+
google/protobuf/__pycache__/unknown_fields.cpython-313.pyc,,
|
| 34 |
+
google/protobuf/__pycache__/wrappers_pb2.cpython-313.pyc,,
|
| 35 |
+
google/protobuf/any.py,sha256=37npo8IyL1i9heh7Dxih_RKQE2BKFuv7m9NXbWxoSdo,1319
|
| 36 |
+
google/protobuf/any_pb2.py,sha256=UAUpxp8GbYX2agR-FKylxORJkKy-N-xZchNQ3cIL6cE,1725
|
| 37 |
+
google/protobuf/api_pb2.py,sha256=8BqMAj81za8DQC-wJR0Xoz3eRl9NtTlBJF3O4wc-pkw,3600
|
| 38 |
+
google/protobuf/compiler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 39 |
+
google/protobuf/compiler/__pycache__/__init__.cpython-313.pyc,,
|
| 40 |
+
google/protobuf/compiler/__pycache__/plugin_pb2.cpython-313.pyc,,
|
| 41 |
+
google/protobuf/compiler/plugin_pb2.py,sha256=5eD6UGqzqPOWXO0tJPRJ0r0Xdmky6YAoWi-L4cXRLVU,3797
|
| 42 |
+
google/protobuf/descriptor.py,sha256=h69lWJP0qsxrpA659qda5IxwvIdFC1eqnkZxe7u-bTI,53428
|
| 43 |
+
google/protobuf/descriptor_database.py,sha256=FHAOZc5uz86IsMqr3Omc19AenuwrOknut2wCQ0mGsGc,5936
|
| 44 |
+
google/protobuf/descriptor_pb2.py,sha256=Xs5aM_0_wT2WMFw0b82hKvZq5Zm6k--TOJJJbDtYup4,366972
|
| 45 |
+
google/protobuf/descriptor_pool.py,sha256=4xko_PLwO-OIw8ZatN-ySjQxlKwYuffrNm0YOqVuTlk,48864
|
| 46 |
+
google/protobuf/duration.py,sha256=vQTwVyiiyGm3Wy3LW8ohA3tkGkrUKoTn_p4SdEBU8bM,2672
|
| 47 |
+
google/protobuf/duration_pb2.py,sha256=UTOFiA-Pncz4AERVHralMqQp3GU8QK_cZAUtxOAoiXg,1805
|
| 48 |
+
google/protobuf/empty_pb2.py,sha256=jbHuKRpOD6ztWzS2RyJe4DPa7w774gmXSOa4AhzF1sc,1669
|
| 49 |
+
google/protobuf/field_mask_pb2.py,sha256=rFu97hiVEufflBueyxb--goCVycZYelh8wfheTzKH44,1765
|
| 50 |
+
google/protobuf/internal/__init__.py,sha256=8d_k1ksNWIuqPDEEEtOjgC3Xx8kAXD2-04R7mxJlSbs,272
|
| 51 |
+
google/protobuf/internal/__pycache__/__init__.cpython-313.pyc,,
|
| 52 |
+
google/protobuf/internal/__pycache__/api_implementation.cpython-313.pyc,,
|
| 53 |
+
google/protobuf/internal/__pycache__/builder.cpython-313.pyc,,
|
| 54 |
+
google/protobuf/internal/__pycache__/containers.cpython-313.pyc,,
|
| 55 |
+
google/protobuf/internal/__pycache__/decoder.cpython-313.pyc,,
|
| 56 |
+
google/protobuf/internal/__pycache__/encoder.cpython-313.pyc,,
|
| 57 |
+
google/protobuf/internal/__pycache__/enum_type_wrapper.cpython-313.pyc,,
|
| 58 |
+
google/protobuf/internal/__pycache__/extension_dict.cpython-313.pyc,,
|
| 59 |
+
google/protobuf/internal/__pycache__/field_mask.cpython-313.pyc,,
|
| 60 |
+
google/protobuf/internal/__pycache__/message_listener.cpython-313.pyc,,
|
| 61 |
+
google/protobuf/internal/__pycache__/python_edition_defaults.cpython-313.pyc,,
|
| 62 |
+
google/protobuf/internal/__pycache__/python_message.cpython-313.pyc,,
|
| 63 |
+
google/protobuf/internal/__pycache__/testing_refleaks.cpython-313.pyc,,
|
| 64 |
+
google/protobuf/internal/__pycache__/type_checkers.cpython-313.pyc,,
|
| 65 |
+
google/protobuf/internal/__pycache__/well_known_types.cpython-313.pyc,,
|
| 66 |
+
google/protobuf/internal/__pycache__/wire_format.cpython-313.pyc,,
|
| 67 |
+
google/protobuf/internal/api_implementation.py,sha256=EQ7EImSxJDLiM3AXoQwuuD7K0Lz50072CS1trt2bzqo,4669
|
| 68 |
+
google/protobuf/internal/builder.py,sha256=VPnrHqqt6J66RwZe19hLm01Zl1vP_jFKpL-bC8nEncY,4112
|
| 69 |
+
google/protobuf/internal/containers.py,sha256=xC6yATB8GxCAlVQtZj0QIfSPcGORJb0kDxoWAKRV7YQ,22175
|
| 70 |
+
google/protobuf/internal/decoder.py,sha256=TwaTXm9Ioew3oO3Wa1hgVYLiHVe7BFdF4NAsjv2FyGs,37588
|
| 71 |
+
google/protobuf/internal/encoder.py,sha256=Vujp3bU10dLBasUnRaGZKD-ZTLq7zEGA8wKh7mVLR-g,27297
|
| 72 |
+
google/protobuf/internal/enum_type_wrapper.py,sha256=PNhK87a_NP1JIfFHuYFibpE4hHdHYawXwqZxMEtvsvo,3747
|
| 73 |
+
google/protobuf/internal/extension_dict.py,sha256=4af0h32jq5BwL7uB6ym3ipdzz3kTH75WGMHLHluGsNA,7141
|
| 74 |
+
google/protobuf/internal/field_mask.py,sha256=QbOfhzKaTkvYR9k7HYigVidVgyobBRUicBibO71ufHo,10442
|
| 75 |
+
google/protobuf/internal/message_listener.py,sha256=uh8viU_MvWdDe4Kl14CromKVFAzBMPlMzFZ4vew_UJc,2008
|
| 76 |
+
google/protobuf/internal/python_edition_defaults.py,sha256=iYUirQbUcoj-fLbWZJwtItLWHk406eSFIPJegaFbEhA,542
|
| 77 |
+
google/protobuf/internal/python_message.py,sha256=S4SsXLNX9zGzR_XDfiMONv0M4gxzxwqswbtPnAV6qEg,57984
|
| 78 |
+
google/protobuf/internal/testing_refleaks.py,sha256=VnitLBTnynWcayPsvHlScMZCczZs7vf0_x8csPFBxBg,4495
|
| 79 |
+
google/protobuf/internal/type_checkers.py,sha256=gCOL390SA4A4EQvnUpa-lKxyxHtmiZBoLQelo6JBdX4,17252
|
| 80 |
+
google/protobuf/internal/well_known_types.py,sha256=b2MhbOXaQY8FRzpiTGcUT16R9DKhZEeEj3xBkYNdwAk,22850
|
| 81 |
+
google/protobuf/internal/wire_format.py,sha256=EbAXZdb23iCObCZxNgaMx8-VRF2UjgyPrBCTtV10Rx8,7087
|
| 82 |
+
google/protobuf/json_format.py,sha256=ezhsxW9kgVT3RLLRs49E6U26J8jDOYAALhWMI1RDx6c,38402
|
| 83 |
+
google/protobuf/message.py,sha256=IeyQE68rj_YcUhy20XS5Dr3tU27_JYZ5GLLHm-TbbD4,14917
|
| 84 |
+
google/protobuf/message_factory.py,sha256=uELqRiWo-3pBJupnQTlHsGJmgDJ3p4HqX3T7d46MMug,6607
|
| 85 |
+
google/protobuf/proto.py,sha256=cuqMtlacasjTNQdfyKiTubEKXNapgdAEcnQTv65AmoE,4389
|
| 86 |
+
google/protobuf/proto_builder.py,sha256=pGU2L_pPEYkylZkrvHMCUH2PFWvc9wI-awwT7F5i740,4203
|
| 87 |
+
google/protobuf/proto_json.py,sha256=fUy0Vb4m_831-oabn7JbzmyipcoJpQWtBdgTMoj8Yp4,3094
|
| 88 |
+
google/protobuf/proto_text.py,sha256=ZD21wifWF_HVMcJkVJBo3jGNFxqELCrgOeIshuz565U,5307
|
| 89 |
+
google/protobuf/pyext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 90 |
+
google/protobuf/pyext/__pycache__/__init__.cpython-313.pyc,,
|
| 91 |
+
google/protobuf/pyext/__pycache__/cpp_message.cpython-313.pyc,,
|
| 92 |
+
google/protobuf/pyext/cpp_message.py,sha256=8uSrWX9kD3HPRhntvTPc4bgnfQ2BzX9FPC73CgifXAw,1715
|
| 93 |
+
google/protobuf/reflection.py,sha256=gMVfWDmnckEbp4vTR5gKq2HDwRb_eI5rfylZOoFSmEQ,1241
|
| 94 |
+
google/protobuf/runtime_version.py,sha256=1RL7AaEu3r2UlnbMfrErKAmkMwn4Y-yxdEjiuUMI8ow,3033
|
| 95 |
+
google/protobuf/service_reflection.py,sha256=WHElGnPgywDtn3X8xKVNsZZOCgJOTzgpAyTd-rmCKGU,10058
|
| 96 |
+
google/protobuf/source_context_pb2.py,sha256=nceI1sFIEPja1wLJHEy9j7uWAjWcwS3-G5prD6B_aYg,1791
|
| 97 |
+
google/protobuf/struct_pb2.py,sha256=v9AaoD1txawhDNQzmWyNoCf7jWMB5lX20mz-JRnoGeU,3061
|
| 98 |
+
google/protobuf/symbol_database.py,sha256=s0pExuYyJvi1q0pD82AEoJtH2EDZ2vAZCIqja84CKcc,5752
|
| 99 |
+
google/protobuf/testdata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 100 |
+
google/protobuf/testdata/__pycache__/__init__.cpython-313.pyc,,
|
| 101 |
+
google/protobuf/text_encoding.py,sha256=Ao1Q6OP8i4p8VDtvpe8uW1BjX7aQZvkJggvhFYYrB7w,3621
|
| 102 |
+
google/protobuf/text_format.py,sha256=URjGtTNUqe0OSJ-3AAjEjhHH9L084OoUD8gsGFZkvkg,64149
|
| 103 |
+
google/protobuf/timestamp.py,sha256=s23LWq6hDiFIeAtVUn8LwfEc5aRM7WAwTz_hCaOVndk,3133
|
| 104 |
+
google/protobuf/timestamp_pb2.py,sha256=iIJnuPk-_VnNlvI-pfK-GyJ021_kzUK418eYn8Mw81w,1815
|
| 105 |
+
google/protobuf/type_pb2.py,sha256=1ZxX20h2cJKmOq7zHzqTQPsOjD5n0D1Ruz9HfuHQFdA,5438
|
| 106 |
+
google/protobuf/unknown_fields.py,sha256=r3CJ2e4_XUq41TcgB8w6E0yZxxzSTCQLF4C7OOHa9lo,3065
|
| 107 |
+
google/protobuf/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 108 |
+
google/protobuf/util/__pycache__/__init__.cpython-313.pyc,,
|
| 109 |
+
google/protobuf/wrappers_pb2.py,sha256=7esW0_gRv6O8asmE2FP0aGOUYRoH7nj_a_rhAjW-zfk,3037
|
| 110 |
+
protobuf-6.33.6.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 111 |
+
protobuf-6.33.6.dist-info/LICENSE,sha256=bl4RcySv2UTc9n82zzKYQ7wakiKajNm7Vz16gxMP6n0,1732
|
| 112 |
+
protobuf-6.33.6.dist-info/METADATA,sha256=bzsx_WQ4D15g7RD1opVGmbzB9iZut0MW8LqWcC0wVG8,593
|
| 113 |
+
protobuf-6.33.6.dist-info/RECORD,,
|
| 114 |
+
protobuf-6.33.6.dist-info/WHEEL,sha256=MNGKiqVzcEm_R-x4M_B59ZGraKmu9XeiF3PVWlldfs4,100
|
python/user_packages/Python313/site-packages/protobuf-6.33.6.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bazel-wheelmaker 1.0
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp310-abi3-win_amd64
|
python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/AUTHORS.rst
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=======
|
| 2 |
+
Credits
|
| 3 |
+
=======
|
| 4 |
+
|
| 5 |
+
- Mozilla and the public suffix list maintainers
|
| 6 |
+
- David Wilson @dw
|
| 7 |
+
- Tomaž Šolc @avian2
|
| 8 |
+
- Philippe Ombredanne @pombredanne
|
| 9 |
+
- Renée Burton @KnitCode
|
| 10 |
+
- @vpiserchia
|
| 11 |
+
- Kevin Olbrich @kevin-olbrich
|
| 12 |
+
- Masahiro Honma @hiratara
|
python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/METADATA
ADDED
|
@@ -0,0 +1,377 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: publicsuffix2
|
| 3 |
+
Version: 2.20191221
|
| 4 |
+
Summary: Get a public suffix for a domain name using the Public Suffix List. Forked from and using the same API as the publicsuffix package.
|
| 5 |
+
Home-page: https://github.com/nexb/python-publicsuffix2
|
| 6 |
+
Author: nexB Inc., Tomaz Solc, David Wilson and others.
|
| 7 |
+
Author-email: info@nexb.com
|
| 8 |
+
License: MIT and MPL-2.0
|
| 9 |
+
Keywords: domain,public suffix,suffix,dns,tld,sld,psl,idna
|
| 10 |
+
Platform: UNKNOWN
|
| 11 |
+
Classifier: Intended Audience :: Developers
|
| 12 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 13 |
+
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
|
| 14 |
+
Classifier: Programming Language :: Python
|
| 15 |
+
Classifier: Programming Language :: Python :: 2
|
| 16 |
+
Classifier: Programming Language :: Python :: 3
|
| 17 |
+
Classifier: Topic :: Internet :: Name Service (DNS)
|
| 18 |
+
Classifier: Topic :: Utilities
|
| 19 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 20 |
+
Description-Content-Type: text/x-rst
|
| 21 |
+
|
| 22 |
+
Public Suffix List module for Python
|
| 23 |
+
====================================
|
| 24 |
+
|
| 25 |
+
This module allows you to get the public suffix, as well as the registrable domain,
|
| 26 |
+
of a domain name using the Public Suffix List from http://publicsuffix.org
|
| 27 |
+
|
| 28 |
+
A public suffix is a domain suffix under which you can register domain
|
| 29 |
+
names, or under which the suffix owner does not control the subdomains.
|
| 30 |
+
Some examples of public suffixes in the former example are ".com",
|
| 31 |
+
".co.uk" and "pvt.k12.wy.us"; examples of the latter case are "github.io" and
|
| 32 |
+
"blogspot.com". The public suffix is sometimes referred to as the effective
|
| 33 |
+
or extended TLD (eTLD).
|
| 34 |
+
Accurately knowing the public suffix of a domain is useful when handling
|
| 35 |
+
web browser cookies, highlighting the most important part of a domain name
|
| 36 |
+
in a user interface or sorting URLs by web site. It is also used in a wide range
|
| 37 |
+
of research and applications that leverages Domain Name System (DNS) data.
|
| 38 |
+
|
| 39 |
+
This module builds the public suffix list as a Trie structure, making it more efficient
|
| 40 |
+
than other string-based modules available for the same purpose. It can be used
|
| 41 |
+
effectively in large-scale distributed environments, such as PySpark.
|
| 42 |
+
|
| 43 |
+
This Python module includes with a copy of the Public Suffix List (PSL) so that it is
|
| 44 |
+
usable out of the box. Newer versions try to provide reasonably fresh copies of
|
| 45 |
+
this list. It also includes a convenience method to fetch the latest list. The PSL does
|
| 46 |
+
change regularly.
|
| 47 |
+
|
| 48 |
+
The code is a fork of the publicsuffix package and includes the same base API. In
|
| 49 |
+
addition, it contains a few variants useful for certain use cases, such as the option to
|
| 50 |
+
ignore wildcards or return only the extended TLD (eTLD). You just need to import publicsuffix2 instead.
|
| 51 |
+
|
| 52 |
+
The public suffix list is now provided in UTF-8 format. To correctly process
|
| 53 |
+
IDNA-encoded domains, either the query or the list must be converted. By default, the
|
| 54 |
+
module converts the PSL. If your use case includes UTF-8 domains, e.g., '食狮.com.cn',
|
| 55 |
+
you'll need to set the IDNA-encoding flag to False on instantiation (see examples below).
|
| 56 |
+
Failure to use the correct encoding for your use case can lead to incorrect results for
|
| 57 |
+
domains that utilize unicode characters.
|
| 58 |
+
|
| 59 |
+
The code is MIT-licensed and the publicsuffix data list is MPL-2.0-licensed.
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
Usage
|
| 64 |
+
-----
|
| 65 |
+
|
| 66 |
+
Install with::
|
| 67 |
+
|
| 68 |
+
pip install publicsuffix2
|
| 69 |
+
|
| 70 |
+
The module provides functions to obtain the base domain, or sld, of an fqdn, as well as one
|
| 71 |
+
to get just the public suffix. In addition, the functions a number of boolean parameters that
|
| 72 |
+
control how wildcards are handled. In addition to the functions, the module exposes a class that
|
| 73 |
+
parses the PSL, and allows for more control.
|
| 74 |
+
|
| 75 |
+
The module provides two equivalent functions to query a domain name, and return the base domain,
|
| 76 |
+
or second-level-doamin; get_public_suffix() and get_sld()::
|
| 77 |
+
|
| 78 |
+
>>> from publicsuffix2 import get_public_suffix
|
| 79 |
+
>>> get_public_suffix('www.example.com')
|
| 80 |
+
'example.com'
|
| 81 |
+
>>> get_sld('www.example.com')
|
| 82 |
+
'example.com'
|
| 83 |
+
>>> get_public_suffix('www.example.co.uk')
|
| 84 |
+
'example.co.uk'
|
| 85 |
+
>>> get_public_suffix('www.super.example.co.uk')
|
| 86 |
+
'example.co.uk'
|
| 87 |
+
>>> get_sld("co.uk") # returns eTLD as is
|
| 88 |
+
'co.uk'
|
| 89 |
+
|
| 90 |
+
This function loads and caches the public suffix list. To obtain the latest version of the
|
| 91 |
+
PSL, use the fetch() function to first download the latest version. Alternatively, you can pass
|
| 92 |
+
a custom list.
|
| 93 |
+
|
| 94 |
+
For more control, there is also a class that parses a Public
|
| 95 |
+
Suffix List and allows the same queries on individual domain names::
|
| 96 |
+
|
| 97 |
+
>>> from publicsuffix2 import PublicSuffixList
|
| 98 |
+
>>> psl = PublicSuffixList()
|
| 99 |
+
>>> psl.get_public_suffix('www.example.com')
|
| 100 |
+
'example.com'
|
| 101 |
+
>>> psl.get_public_suffix('www.example.co.uk')
|
| 102 |
+
'example.co.uk'
|
| 103 |
+
>>> psl.get_public_suffix('www.super.example.co.uk')
|
| 104 |
+
'example.co.uk'
|
| 105 |
+
>>> psl.get_sld('www.super.example.co.uk')
|
| 106 |
+
'example.co.uk'
|
| 107 |
+
|
| 108 |
+
Note that the ``host`` part of an URL can contain strings that are
|
| 109 |
+
not plain DNS domain names (IP addresses, Punycode-encoded names, name in
|
| 110 |
+
combination with a port number or a username, etc.). It is up to the
|
| 111 |
+
caller to ensure only domain names are passed to the get_public_suffix()
|
| 112 |
+
method.
|
| 113 |
+
|
| 114 |
+
The get_public_suffix() function and the PublicSuffixList class initializer accept
|
| 115 |
+
an optional argument pointing to a public suffix file. This can either be a file
|
| 116 |
+
path, an iterable of public suffix lines, or a file-like object pointing to an
|
| 117 |
+
opened list::
|
| 118 |
+
|
| 119 |
+
>>> from publicsuffix2 import get_public_suffix
|
| 120 |
+
>>> psl_file = 'path to some psl data file'
|
| 121 |
+
>>> get_public_suffix('www.example.com', psl_file)
|
| 122 |
+
'example.com'
|
| 123 |
+
|
| 124 |
+
Note that when using get_public_suffix() a global cache keeps the latest provided
|
| 125 |
+
suffix list data. This will use the cached latest loaded above::
|
| 126 |
+
|
| 127 |
+
>>> get_public_suffix('www.example.co.uk')
|
| 128 |
+
'example.co.uk'
|
| 129 |
+
|
| 130 |
+
**IDNA-encoding.** The public suffix list is now in UTF-8 format. For those use cases that
|
| 131 |
+
include IDNA-encoded domains, the list must be converted. Publicsuffix2 includes idna
|
| 132 |
+
encoding as a parameter of the PublicSuffixList initialization and is true by
|
| 133 |
+
default. For UTF-8 use cases, set the idna parameter to False::
|
| 134 |
+
|
| 135 |
+
>>> from publicsuffix2 import PublicSuffixList
|
| 136 |
+
>>> psl = PublicSuffixList(idna=True) # on by default
|
| 137 |
+
>>> psl.get_public_suffix('www.google.com')
|
| 138 |
+
'google.com'
|
| 139 |
+
>>> psl = PublicSuffixList(idna=False) # use UTF-8 encodings
|
| 140 |
+
>>> psl.get_public_suffix('食狮.com.cn')
|
| 141 |
+
'食狮.com.cn'
|
| 142 |
+
|
| 143 |
+
**Ignore wildcards.** In some use cases, particularly those related to large-scale domain processing,
|
| 144 |
+
the user might want to ignore wildcards to create more aggregation. This is possible by setting
|
| 145 |
+
the parameter wildcard=False.::
|
| 146 |
+
|
| 147 |
+
>>> psl.get_public_suffix('telinet.com.pg', wildcard=False)
|
| 148 |
+
'com.pg'
|
| 149 |
+
>>> psl.get_public_suffix('telinet.com.pg', wildcard=True)
|
| 150 |
+
'telinet.com.pg'
|
| 151 |
+
|
| 152 |
+
**Require valid eTLDs (strict).** In the publicsuffix2 module, a domain with an invalid TLD will still return
|
| 153 |
+
return a base domain, e.g,::
|
| 154 |
+
|
| 155 |
+
>>> psl.get_public_suffix('www.mine.local')
|
| 156 |
+
'mine.local'
|
| 157 |
+
|
| 158 |
+
This is useful for many use cases, while in others, we want to ensure that the domain includes a
|
| 159 |
+
valid eTLD. In this case, the boolean parameter strict provides a solution. If this flag is set,
|
| 160 |
+
an invalid TLD will return None.::
|
| 161 |
+
|
| 162 |
+
>>> psl.get_public_suffix('www.mine.local', strict=True) is None
|
| 163 |
+
True
|
| 164 |
+
|
| 165 |
+
**Return eTLD only.** The standard use case for publicsuffix2 is to return the registrable,
|
| 166 |
+
or base, domain
|
| 167 |
+
according to the public suffix list. In some cases, however, we only wish to find the eTLD
|
| 168 |
+
itself. This is available via the get_tld() method.::
|
| 169 |
+
|
| 170 |
+
>>> psl.get_tld('www.google.com')
|
| 171 |
+
'com'
|
| 172 |
+
>>> psl.get_tld('www.google.co.uk')
|
| 173 |
+
'co.uk'
|
| 174 |
+
|
| 175 |
+
All of the methods and functions include the wildcard and strict parameters.
|
| 176 |
+
|
| 177 |
+
For convenience, the public method get_sld() is available. This is identical to the method
|
| 178 |
+
get_public_suffix() and is intended to clarify the output for some users.
|
| 179 |
+
|
| 180 |
+
To **update the bundled suffix list** use the provided setup.py command::
|
| 181 |
+
|
| 182 |
+
python setup.py update_psl
|
| 183 |
+
|
| 184 |
+
The update list will be saved in `src/publicsuffix2/public_suffix_list.dat`
|
| 185 |
+
and you can build a new wheel with this bundled data.
|
| 186 |
+
|
| 187 |
+
Alternatively, there is a fetch() function that will fetch the latest version
|
| 188 |
+
of a Public Suffix data file from https://publicsuffix.org/list/public_suffix_list.dat
|
| 189 |
+
You can use it this way::
|
| 190 |
+
|
| 191 |
+
>>> from publicsuffix2 import get_public_suffix
|
| 192 |
+
>>> from publicsuffix2 import fetch
|
| 193 |
+
>>> psl_file = fetch()
|
| 194 |
+
>>> get_public_suffix('www.example.com', psl_file)
|
| 195 |
+
'example.com'
|
| 196 |
+
|
| 197 |
+
Note that the once loaded, the data file is cached and therefore fetched only
|
| 198 |
+
once.
|
| 199 |
+
|
| 200 |
+
The extracted public suffix list, that is the tlds and their modifiers, is put into
|
| 201 |
+
an instance variable, tlds, which can be accessed as an attribute, tlds.::
|
| 202 |
+
|
| 203 |
+
>>> psl = PublicSuffixList()
|
| 204 |
+
>>> psl.tlds[:5]
|
| 205 |
+
['ac',
|
| 206 |
+
'com.ac',
|
| 207 |
+
'edu.ac',
|
| 208 |
+
'gov.ac',
|
| 209 |
+
'net.ac']
|
| 210 |
+
|
| 211 |
+
**Using the module in large-scale processing**
|
| 212 |
+
If using this library in large-scale pyspark processing, you should instantiate the class as
|
| 213 |
+
a global variable, not within a user function. The class methods can then be used within user
|
| 214 |
+
functions for distributed processing.
|
| 215 |
+
|
| 216 |
+
Source
|
| 217 |
+
------
|
| 218 |
+
|
| 219 |
+
Get a local copy of the development repository. The development takes
|
| 220 |
+
place in the ``develop`` branch. Stable releases are tagged in the ``master``
|
| 221 |
+
branch::
|
| 222 |
+
|
| 223 |
+
git clone https://github.com/nexB/python-publicsuffix2.git
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
History
|
| 227 |
+
-------
|
| 228 |
+
This code is forked from Tomaž Šolc's fork of David Wilson's code.
|
| 229 |
+
|
| 230 |
+
Tomaž Šolc's code originally at:
|
| 231 |
+
|
| 232 |
+
https://www.tablix.org/~avian/git/publicsuffix.git
|
| 233 |
+
|
| 234 |
+
Copyright (c) 2014 Tomaž Šolc <tomaz.solc@tablix.org>
|
| 235 |
+
|
| 236 |
+
David Wilson's code was originally at:
|
| 237 |
+
|
| 238 |
+
http://code.google.com/p/python-public-suffix-list/
|
| 239 |
+
|
| 240 |
+
Copyright (c) 2009 David Wilson
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
License
|
| 244 |
+
-------
|
| 245 |
+
|
| 246 |
+
The code is MIT-licensed.
|
| 247 |
+
The vendored public suffix list data from Mozilla is under the MPL-2.0.
|
| 248 |
+
|
| 249 |
+
Copyright (c) 2015 nexB Inc. and others.
|
| 250 |
+
|
| 251 |
+
Copyright (c) 2014 Tomaž Šolc <tomaz.solc@tablix.org>
|
| 252 |
+
|
| 253 |
+
Copyright (c) 2009 David Wilson
|
| 254 |
+
|
| 255 |
+
Permission is hereby granted, free of charge, to any person obtaining a
|
| 256 |
+
copy of this software and associated documentation files (the "Software"),
|
| 257 |
+
to deal in the Software without restriction, including without limitation
|
| 258 |
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
| 259 |
+
and/or sell copies of the Software, and to permit persons to whom the
|
| 260 |
+
Software is furnished to do so, subject to the following conditions:
|
| 261 |
+
|
| 262 |
+
The above copyright notice and this permission notice shall be included in
|
| 263 |
+
all copies or substantial portions of the Software.
|
| 264 |
+
|
| 265 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 266 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 267 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 268 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 269 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 270 |
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
| 271 |
+
DEALINGS IN THE SOFTWARE.
|
| 272 |
+
|
| 273 |
+
Changelog
|
| 274 |
+
---------
|
| 275 |
+
|
| 276 |
+
2019-12-19 publicsuffix2 2.20191219
|
| 277 |
+
|
| 278 |
+
* Add new strict mode to get_tld() by @hiratara .
|
| 279 |
+
* Update TLD list
|
| 280 |
+
* Add tests from Mozilla test suite
|
| 281 |
+
|
| 282 |
+
|
| 283 |
+
2019-08-12 publicsuffix2 2.20190812
|
| 284 |
+
|
| 285 |
+
* Fix regression in available tlds.
|
| 286 |
+
* Format and streamline code.
|
| 287 |
+
|
| 288 |
+
|
| 289 |
+
2019-08-11 publicsuffix2 2.20190811
|
| 290 |
+
|
| 291 |
+
* Update publicsuffix.file to the latest version from Mozilla.
|
| 292 |
+
|
| 293 |
+
|
| 294 |
+
2019-08-08 publicsuffix2 2.20190808
|
| 295 |
+
|
| 296 |
+
* Add additional functionality and handles change to PSL format
|
| 297 |
+
* Add attribute to retrieve the PSL as a list
|
| 298 |
+
|
| 299 |
+
|
| 300 |
+
2019-02-05 publicsuffix2 2.201902051213
|
| 301 |
+
|
| 302 |
+
* Update publicsuffix.file to the latest version from Mozilla.
|
| 303 |
+
* Restore a fetch() function by popular demand
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
2018-12-13 publicsuffix2 2.20181213
|
| 307 |
+
|
| 308 |
+
* Update publicsuffix.file to the latest version from Mozilla.
|
| 309 |
+
|
| 310 |
+
|
| 311 |
+
2018-10-01 publicsuffix2 2.20180921.2
|
| 312 |
+
|
| 313 |
+
* Update publicsuffix.file to the latest version from Mozilla.
|
| 314 |
+
* Breaking API change: publicsuffix module renamed to publicsuffix2
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
2016-08-18 publicsuffix2 2.20160818
|
| 318 |
+
|
| 319 |
+
* Update publicsuffix.file to the latest version from Mozilla.
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
2016-06-21 publicsuffix2 2.20160621
|
| 323 |
+
|
| 324 |
+
* Update publicsuffix.file to the latest version from Mozilla.
|
| 325 |
+
* Adopt new version scheme: major.<publisiffix list date>
|
| 326 |
+
|
| 327 |
+
|
| 328 |
+
2015-10-12 publicsuffix2 2.1.0
|
| 329 |
+
|
| 330 |
+
* Merged latest updates from publicsuffix
|
| 331 |
+
* Added new convenience top level get_public_suffix_function caching
|
| 332 |
+
a loaded list if needed.
|
| 333 |
+
* Updated publicsuffix.file to the latest version from Mozilla.
|
| 334 |
+
* Added an update_psl setup command to fetch and vendor the latest list
|
| 335 |
+
Use as: python setup.py update_psl
|
| 336 |
+
|
| 337 |
+
|
| 338 |
+
2015-06-04 publicsuffix2 2.0.0
|
| 339 |
+
|
| 340 |
+
* Forked publicsuffix, but kept the same API
|
| 341 |
+
* Updated publicsuffix.file to the latest version from Mozilla.
|
| 342 |
+
* Changed packaging to have the suffix list be package data
|
| 343 |
+
and be wheel friendly.
|
| 344 |
+
* Use spaces indentation, not tabs
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
2014-01-14 publicsuffix 1.0.5
|
| 348 |
+
|
| 349 |
+
* Correctly handle fully qualified domain names (thanks to Matthäus
|
| 350 |
+
Wander).
|
| 351 |
+
* Updated publicsuffix.txt to the latest version from Mozilla.
|
| 352 |
+
|
| 353 |
+
2013-01-02 publicsuffix 1.0.4
|
| 354 |
+
|
| 355 |
+
* Added missing change log.
|
| 356 |
+
|
| 357 |
+
2013-01-02 publicsuffix 1.0.3
|
| 358 |
+
|
| 359 |
+
* Updated publicsuffix.txt to the latest version from Mozilla.
|
| 360 |
+
* Added trove classifiers.
|
| 361 |
+
* Minor update of the README.
|
| 362 |
+
|
| 363 |
+
2011-10-10 publicsuffix 1.0.2
|
| 364 |
+
|
| 365 |
+
* Compatibility with Python 3.x (thanks to Joern
|
| 366 |
+
Koerner) and Python 2.5
|
| 367 |
+
|
| 368 |
+
2011-09-22 publicsuffix 1.0.1
|
| 369 |
+
|
| 370 |
+
* Fixed installation issue under virtualenv (thanks to
|
| 371 |
+
Mark McClain)
|
| 372 |
+
|
| 373 |
+
2011-07-29 publicsuffix 1.0.0
|
| 374 |
+
|
| 375 |
+
* First release
|
| 376 |
+
|
| 377 |
+
|
python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/RECORD
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
publicsuffix2-2.20191221.dist-info/AUTHORS.rst,sha256=G6uI4TkwOON2seLZZzuyclmCiLQWJR4-GHKLb8LpaLs,249
|
| 2 |
+
publicsuffix2-2.20191221.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 3 |
+
publicsuffix2-2.20191221.dist-info/METADATA,sha256=1laAX5HLfbYGJH2Cz9_OvNT4VcFHkpxfuZR_NMHVr3A,13691
|
| 4 |
+
publicsuffix2-2.20191221.dist-info/RECORD,,
|
| 5 |
+
publicsuffix2-2.20191221.dist-info/WHEEL,sha256=8zNYZbwQSXoB9IfXOjPfeNwvAsALAjffgk27FqvCWbo,110
|
| 6 |
+
publicsuffix2-2.20191221.dist-info/top_level.txt,sha256=tqppZ_GYTDg7l4ZH6MJX2p8_Ld-NTtFlBK3fGqo1pLc,14
|
| 7 |
+
publicsuffix2/__init__.py,sha256=4rsLfte0_vkAl3hMRCr7sLFakinDUhchZt4cUdjwfcY,15159
|
| 8 |
+
publicsuffix2/__pycache__/__init__.cpython-313.pyc,,
|
| 9 |
+
publicsuffix2/mpl-2.0.LICENSE,sha256=skYuYCuKujYvL-teUj5bPrWNOma5-Stz66Uogndz-_A,16934
|
| 10 |
+
publicsuffix2/public_suffix_list.ABOUT,sha256=pDu5KJOuj5RwmTVQVxueIAW3pmvHPQ04G1Kb0CfC4TE,309
|
| 11 |
+
publicsuffix2/public_suffix_list.dat,sha256=duSo0edtro222jgpAkEIwCIDxOS1pDAbVxdWSwXHlm0,218101
|
python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.33.6)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py2-none-any
|
| 5 |
+
Tag: py3-none-any
|
| 6 |
+
|
python/user_packages/Python313/site-packages/publicsuffix2-2.20191221.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
publicsuffix2
|
python/user_packages/Python313/site-packages/publicsuffix2/__init__.py
ADDED
|
@@ -0,0 +1,397 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
#
|
| 3 |
+
# Copyright (c) 2019 nexB Inc. and Renée Burton
|
| 4 |
+
# Copyright (c) 2015 nexB Inc.
|
| 5 |
+
# This code is based on Tomaž Šolc's fork of David Wilson's code originally at
|
| 6 |
+
# https://www.tablix.org/~avian/git/publicsuffix.git
|
| 7 |
+
#
|
| 8 |
+
# Copyright (c) 2014 Tomaž Šolc <tomaz.solc@tablix.org>
|
| 9 |
+
#
|
| 10 |
+
# David Wilson's code was originally at:
|
| 11 |
+
# from http://code.google.com/p/python-public-suffix-list/
|
| 12 |
+
#
|
| 13 |
+
# Copyright (c) 2009 David Wilson
|
| 14 |
+
#
|
| 15 |
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
| 16 |
+
# copy of this software and associated documentation files (the "Software"),
|
| 17 |
+
# to deal in the Software without restriction, including without limitation
|
| 18 |
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
| 19 |
+
# and/or sell copies of the Software, and to permit persons to whom the
|
| 20 |
+
# Software is furnished to do so, subject to the following conditions:
|
| 21 |
+
#
|
| 22 |
+
# The above copyright notice and this permission notice shall be included in
|
| 23 |
+
# all copies or substantial portions of the Software.
|
| 24 |
+
#
|
| 25 |
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 26 |
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 27 |
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 28 |
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 29 |
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 30 |
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
| 31 |
+
# DEALINGS IN THE SOFTWARE.
|
| 32 |
+
#
|
| 33 |
+
# The Public Suffix List vendored in this distribution has been downloaded
|
| 34 |
+
# from http://publicsuffix.org/public_suffix_list.dat
|
| 35 |
+
# This data file is licensed under the MPL-2.0 license.
|
| 36 |
+
# http://mozilla.org/MPL/2.0/
|
| 37 |
+
|
| 38 |
+
"""
|
| 39 |
+
Public Suffix List module for Python.
|
| 40 |
+
"""
|
| 41 |
+
|
| 42 |
+
from __future__ import absolute_import
|
| 43 |
+
from __future__ import unicode_literals
|
| 44 |
+
|
| 45 |
+
import codecs
|
| 46 |
+
from os import path
|
| 47 |
+
import warnings
|
| 48 |
+
|
| 49 |
+
try:
|
| 50 |
+
from urllib.request import urlopen, Request
|
| 51 |
+
except ImportError:
|
| 52 |
+
from urllib2 import urlopen, Request
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
PSL_URL = 'https://publicsuffix.org/list/public_suffix_list.dat'
|
| 56 |
+
|
| 57 |
+
BASE_DIR = path.dirname(__file__)
|
| 58 |
+
PSL_FILE = path.join(BASE_DIR, 'public_suffix_list.dat')
|
| 59 |
+
ABOUT_PSL_FILE = path.join(BASE_DIR, 'public_suffix_list.ABOUT')
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
class PublicSuffixList(object):
|
| 64 |
+
|
| 65 |
+
def __init__(self, psl_file=None, idna=True):
|
| 66 |
+
"""
|
| 67 |
+
Read and parse a public suffix list. `psl_file` is either a file
|
| 68 |
+
location string, or a file-like object, or an iterable of lines from a
|
| 69 |
+
public suffix data file.
|
| 70 |
+
|
| 71 |
+
If psl_file is None, the vendored file named "public_suffix_list.dat" is
|
| 72 |
+
loaded. It is stored side by side with this Python package.
|
| 73 |
+
|
| 74 |
+
The Mozilla public suffix list is no longer IDNA-encoded, it is UTF-8.
|
| 75 |
+
For use cases with domains that are IDNA encoded, choose idna=True and
|
| 76 |
+
the list will be converted upon loading. The wrong encoding will provide
|
| 77 |
+
incorrect answers in either use case.
|
| 78 |
+
|
| 79 |
+
The file format is described at http://publicsuffix.org/
|
| 80 |
+
|
| 81 |
+
:param psl_file: string or None
|
| 82 |
+
:param idna: boolean, whether to convert file to IDNA-encoded strings
|
| 83 |
+
"""
|
| 84 |
+
# Note: we test for None as we accept empty lists as inputs
|
| 85 |
+
if psl_file is None or isinstance(psl_file, str):
|
| 86 |
+
with codecs.open(psl_file or PSL_FILE, 'r', encoding='utf8') as psl:
|
| 87 |
+
psl = psl.readlines()
|
| 88 |
+
else:
|
| 89 |
+
# assume file-like
|
| 90 |
+
psl = psl_file
|
| 91 |
+
|
| 92 |
+
# a list of eTLDs with their modifiers, e.g., *
|
| 93 |
+
self.tlds = []
|
| 94 |
+
root = self._build_structure(psl, idna)
|
| 95 |
+
self.root = self._simplify(root)
|
| 96 |
+
|
| 97 |
+
def _find_node(self, parent, parts):
|
| 98 |
+
"""
|
| 99 |
+
Processing each line of the public suffix list recursively to build the
|
| 100 |
+
Trie. Each line is processed into a dictionary, which may contain sub-
|
| 101 |
+
Trie, and nodes terminate in node of either 0 or 1 (negate).
|
| 102 |
+
|
| 103 |
+
This method takes the current parent Trie, and searches it for the next
|
| 104 |
+
part in the line (child). If not found, it adds a node to the Trie,
|
| 105 |
+
creating a new branch with the [0]. If found, the existing sub-Trie is
|
| 106 |
+
passed for the next part.
|
| 107 |
+
|
| 108 |
+
:param parent: current Trie, form is Tuple (negate, dict of Trie)
|
| 109 |
+
:param parts: list of strings
|
| 110 |
+
:return: recursive search for remaining domain parts
|
| 111 |
+
"""
|
| 112 |
+
if not parts:
|
| 113 |
+
return parent
|
| 114 |
+
|
| 115 |
+
# this initiates the Trie from a new node as [negate, dict()]
|
| 116 |
+
if len(parent) == 1:
|
| 117 |
+
parent.append({})
|
| 118 |
+
|
| 119 |
+
assert len(parent) == 2
|
| 120 |
+
_negate, children = parent
|
| 121 |
+
|
| 122 |
+
child = parts.pop()
|
| 123 |
+
|
| 124 |
+
# if child already exists as a node, grab the sub-Trie
|
| 125 |
+
child_node = children.get(child, None)
|
| 126 |
+
|
| 127 |
+
# if it doesn't exist, creates a new node and initialized with [0]
|
| 128 |
+
if not child_node:
|
| 129 |
+
children[child] = child_node = [0]
|
| 130 |
+
|
| 131 |
+
return self._find_node(child_node, parts)
|
| 132 |
+
|
| 133 |
+
def _add_rule(self, root, rule):
|
| 134 |
+
"""
|
| 135 |
+
Initial setup for a line of the public suffix list. If it starts with !
|
| 136 |
+
that is a negation operation. this calls the find_node() method
|
| 137 |
+
recursively to build out the Trie for this rule.
|
| 138 |
+
|
| 139 |
+
:param root: root Trie
|
| 140 |
+
:param rule: string, line of public suffixlist
|
| 141 |
+
:return: None
|
| 142 |
+
"""
|
| 143 |
+
if rule.startswith('!'):
|
| 144 |
+
negate = 1
|
| 145 |
+
rule = rule[1:]
|
| 146 |
+
else:
|
| 147 |
+
negate = 0
|
| 148 |
+
|
| 149 |
+
parts = rule.split('.')
|
| 150 |
+
self._find_node(root, parts)[0] = negate
|
| 151 |
+
|
| 152 |
+
def _simplify(self, node):
|
| 153 |
+
"""
|
| 154 |
+
Condense the lines of the Trie in place.
|
| 155 |
+
|
| 156 |
+
:param node: node in the Trie, either 0/1 or a subTrie
|
| 157 |
+
:return: simplified Trie, form Tuple
|
| 158 |
+
"""
|
| 159 |
+
if len(node) == 1:
|
| 160 |
+
return node[0]
|
| 161 |
+
|
| 162 |
+
return (node[0], dict((k, self._simplify(v)) for (k, v) in node[1].items()))
|
| 163 |
+
|
| 164 |
+
def _build_structure(self, fp, idna):
|
| 165 |
+
"""
|
| 166 |
+
Build a Trie from the public suffix list. If idna==True, idna-encode
|
| 167 |
+
each line before building.
|
| 168 |
+
|
| 169 |
+
The Trie is comprised of tuples that encode whether the line is a
|
| 170 |
+
negation line (0 or 1), and terminate with 0. Each node is represented
|
| 171 |
+
with two-tuple of the form (negate, dict of children / sub-Trie). A
|
| 172 |
+
partial subTrie therefore looks like: (0, {'ac': 0, 'co': (0,
|
| 173 |
+
{'blogspot': 0}), 'gv': 0,....}) where each tuple starts with the
|
| 174 |
+
negation encoding, and each leaf in the Trie as a dictionary element
|
| 175 |
+
returns 0.
|
| 176 |
+
|
| 177 |
+
Also creates an instance attribute, tlds, which simply contains the
|
| 178 |
+
publicsuffix list, with the modifiers such as wildcards, as a list. This
|
| 179 |
+
can be accessed for post-processing by the application.
|
| 180 |
+
|
| 181 |
+
:param fp: pointer for the public suffix list
|
| 182 |
+
:param idna: boolean, convert lines to idna-encoded strings
|
| 183 |
+
:return: Trie
|
| 184 |
+
"""
|
| 185 |
+
root = [0]
|
| 186 |
+
|
| 187 |
+
tlds = self.tlds
|
| 188 |
+
|
| 189 |
+
for line in fp:
|
| 190 |
+
line = line.strip()
|
| 191 |
+
if not line or line.startswith('//'):
|
| 192 |
+
continue
|
| 193 |
+
if idna:
|
| 194 |
+
line = line.encode('idna').decode()
|
| 195 |
+
tlds.append(line)
|
| 196 |
+
|
| 197 |
+
self._add_rule(root, line.split()[0].lstrip('.'))
|
| 198 |
+
|
| 199 |
+
return root
|
| 200 |
+
|
| 201 |
+
def _lookup_node(self, matches, depth, parent, parts, wildcard):
|
| 202 |
+
"""
|
| 203 |
+
Traverses the Trie recursively to find the parts. By default, the
|
| 204 |
+
traverse follows wildcards, as appropriate for the public suffix list,
|
| 205 |
+
but if wildcard is set to False, it will stop at wildcard leaves. This
|
| 206 |
+
can be useful for summarizing complex wildcard domains like those under
|
| 207 |
+
amazonaws.com.
|
| 208 |
+
|
| 209 |
+
The lookup is tracked via a list, initially set to all None, that marks
|
| 210 |
+
the negation flags of nodes it matches. each match will be marked for
|
| 211 |
+
later composition of the eTLD.
|
| 212 |
+
|
| 213 |
+
:param matches: list, parts long, None (initial), 0, or 1
|
| 214 |
+
:param depth: int, how far in the Trie this run is
|
| 215 |
+
:param parent: Tuple, the current subTrie
|
| 216 |
+
:param parts: list of domain parts, strings
|
| 217 |
+
:param wildcard: boolean, whether to process wildcard nodes
|
| 218 |
+
:return: None, recursive call
|
| 219 |
+
"""
|
| 220 |
+
if wildcard and depth == 1:
|
| 221 |
+
# if no rules match, the prevailing rule is "*"
|
| 222 |
+
# See: Algorithm 2 at https://publicsuffix.org/list/
|
| 223 |
+
matches[-depth] = 0
|
| 224 |
+
|
| 225 |
+
if parent in (0, 1):
|
| 226 |
+
return
|
| 227 |
+
|
| 228 |
+
children = parent[1]
|
| 229 |
+
|
| 230 |
+
if depth <= len(parts) and children:
|
| 231 |
+
for name in ('*', parts[-depth]):
|
| 232 |
+
child = children.get(name, None)
|
| 233 |
+
if child is not None:
|
| 234 |
+
if wildcard or name != '*':
|
| 235 |
+
if child in (0, 1):
|
| 236 |
+
negate = child
|
| 237 |
+
else:
|
| 238 |
+
negate = child[0]
|
| 239 |
+
matches[-depth] = negate
|
| 240 |
+
self._lookup_node(matches, depth + 1, child, parts, wildcard)
|
| 241 |
+
|
| 242 |
+
def get_sld(self, domain, wildcard=True, strict=False):
|
| 243 |
+
"""
|
| 244 |
+
Return the second-level-domain (SLD) or private suffix of a given domain
|
| 245 |
+
according to the public suffix list. The public suffix list includes
|
| 246 |
+
wildcards, so if wildcard is set to True, this will follow the wildcard
|
| 247 |
+
on traversal, otherwise it will stop at wildcard nodes.
|
| 248 |
+
|
| 249 |
+
The logic does not check by default whether the TLD is in the Trie, so
|
| 250 |
+
for example, 'www.this.local' will return 'this.local'. If you want to
|
| 251 |
+
ensure the TLD is in the public suffix list, use strict=True.
|
| 252 |
+
|
| 253 |
+
If domain is already an eTLD, it returns domain as-is instead of None
|
| 254 |
+
value.
|
| 255 |
+
|
| 256 |
+
:param domain: string, needs to match the encoding of the PSL (idna or UTF8)
|
| 257 |
+
:param wildcard: boolean, follow wildcard patterns
|
| 258 |
+
:param strict: boolean, check the TLD is valid, return None if not
|
| 259 |
+
:return: string, the SLD for the domain
|
| 260 |
+
"""
|
| 261 |
+
if not domain:
|
| 262 |
+
return None
|
| 263 |
+
|
| 264 |
+
# for compatibility, set strict True not to allow invalid TLDs
|
| 265 |
+
tld = self.get_tld(domain, wildcard, True)
|
| 266 |
+
if strict and tld is None:
|
| 267 |
+
return None
|
| 268 |
+
|
| 269 |
+
parts = domain.lower().strip('.').split('.')
|
| 270 |
+
num_of_tld_parts = 0 if tld is None else tld.count('.') + 1
|
| 271 |
+
|
| 272 |
+
if len(parts) <= num_of_tld_parts:
|
| 273 |
+
return tld
|
| 274 |
+
else:
|
| 275 |
+
return '.'.join(parts[-(num_of_tld_parts + 1):])
|
| 276 |
+
|
| 277 |
+
def get_public_suffix(self, domain, wildcard=True, strict=False):
|
| 278 |
+
"""
|
| 279 |
+
Use get_sld() instead.
|
| 280 |
+
"""
|
| 281 |
+
return self.get_sld(domain, wildcard, strict)
|
| 282 |
+
|
| 283 |
+
def get_tld(self, domain, wildcard=True, strict=False):
|
| 284 |
+
"""
|
| 285 |
+
Return the TLD, or public suffix, of a domain using the public suffix
|
| 286 |
+
list. uses wildcards if set, and checks for valid top TLD is
|
| 287 |
+
strict=True.
|
| 288 |
+
|
| 289 |
+
This will return the domain itself when it is an ICANN TLD, e.g., 'com'
|
| 290 |
+
returns 'com', for follow on processing, while 'co.uk' return 'uk'. On
|
| 291 |
+
the other hand, more complicated domains will return their public
|
| 292 |
+
suffix, e.g.,
|
| 293 |
+
'google.co.uk' will return 'co.uk'. Root ('.') will return empty string.
|
| 294 |
+
|
| 295 |
+
:param domain: string
|
| 296 |
+
:param wildcard: boolean, follow wildcards in Trie
|
| 297 |
+
:param strict: boolean, check that top TLD is valid in Trie
|
| 298 |
+
:return: string, the TLD for the domain
|
| 299 |
+
"""
|
| 300 |
+
if not domain:
|
| 301 |
+
return None
|
| 302 |
+
parts = domain.lower().strip('.').split('.')
|
| 303 |
+
hits = [None] * len(parts)
|
| 304 |
+
if strict and (
|
| 305 |
+
self.root in (0, 1) or parts[-1] not in self.root[1].keys()
|
| 306 |
+
):
|
| 307 |
+
return None
|
| 308 |
+
|
| 309 |
+
self._lookup_node(hits, 1, self.root, parts, wildcard)
|
| 310 |
+
|
| 311 |
+
for i, what in enumerate(hits):
|
| 312 |
+
if what is not None and what == 0:
|
| 313 |
+
return '.'.join(parts[i:])
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
_PSL = None
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
def get_sld(domain, psl_file=None, wildcard=True, idna=True, strict=False):
|
| 320 |
+
"""
|
| 321 |
+
Return the private suffix or SLD for a `domain` DNS name string. The
|
| 322 |
+
original publicsuffix2 library used the method get_public_suffix() for this
|
| 323 |
+
purpose, but get_private_suffix() is more proper. Convenience function that
|
| 324 |
+
builds and caches a PublicSuffixList object.
|
| 325 |
+
|
| 326 |
+
Optionally read, and parse a public suffix list. `psl_file` is either a file
|
| 327 |
+
location string, or a file-like object, or an iterable of lines from a
|
| 328 |
+
public suffix data file.
|
| 329 |
+
|
| 330 |
+
If psl_file is None, the vendored file named "public_suffix_list.dat" is
|
| 331 |
+
loaded. It is stored side by side with this Python package.
|
| 332 |
+
|
| 333 |
+
The file format is described at http://publicsuffix.org/
|
| 334 |
+
"""
|
| 335 |
+
global _PSL
|
| 336 |
+
_PSL = _PSL or PublicSuffixList(psl_file, idna=idna)
|
| 337 |
+
return _PSL.get_sld(domain, wildcard=wildcard, strict=strict)
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
def get_tld(domain, psl_file=None, wildcard=True, idna=True, strict=False):
|
| 341 |
+
"""
|
| 342 |
+
Return the TLD or public suffix for a `domain` DNS name string. (this is
|
| 343 |
+
actually the private suffix that is returned) Convenience function that
|
| 344 |
+
builds and caches a PublicSuffixList object.
|
| 345 |
+
|
| 346 |
+
Optionally read, and parse a public suffix list. `psl_file` is either a file
|
| 347 |
+
location string, or a file-like object, or an iterable of lines from a
|
| 348 |
+
public suffix data file.
|
| 349 |
+
|
| 350 |
+
If psl_file is None, the vendored file named "public_suffix_list.dat" is
|
| 351 |
+
loaded. It is stored side by side with this Python package.
|
| 352 |
+
|
| 353 |
+
The file format is described at http://publicsuffix.org/
|
| 354 |
+
"""
|
| 355 |
+
global _PSL
|
| 356 |
+
_PSL = _PSL or PublicSuffixList(psl_file, idna=idna)
|
| 357 |
+
return _PSL.get_tld(domain, wildcard=wildcard, strict=strict)
|
| 358 |
+
|
| 359 |
+
|
| 360 |
+
def get_public_suffix(domain, psl_file=None, wildcard=True, idna=True, strict=False):
|
| 361 |
+
"""
|
| 362 |
+
Included for compatibility with the original publicsuffix2 library -- this
|
| 363 |
+
function returns the private suffix or SLD of the domain. To get the public
|
| 364 |
+
suffix, use get_tld(). Convenience function that builds and caches a
|
| 365 |
+
PublicSuffixList object.
|
| 366 |
+
|
| 367 |
+
Optionally read, and parse a public suffix list. `psl_file` is either a file
|
| 368 |
+
location string, or a file-like object, or an iterable of lines from a
|
| 369 |
+
public suffix data file.
|
| 370 |
+
|
| 371 |
+
If psl_file is None, the vendored file named "public_suffix_list.dat" is
|
| 372 |
+
loaded. It is stored side by side with this Python package.
|
| 373 |
+
|
| 374 |
+
The file format is described at http://publicsuffix.org/
|
| 375 |
+
"""
|
| 376 |
+
warnings.warn(
|
| 377 |
+
'This function returns the private suffix, SLD, or registrable domain. '
|
| 378 |
+
'This equivalent to function get_sld(). '
|
| 379 |
+
'To get the public suffix itself, use get_tld().',
|
| 380 |
+
UserWarning
|
| 381 |
+
)
|
| 382 |
+
return get_sld(domain, psl_file, wildcard, idna, strict)
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
def fetch():
|
| 386 |
+
"""
|
| 387 |
+
Return a file-like object for the latest public suffix list downloaded from
|
| 388 |
+
publicsuffix.org
|
| 389 |
+
"""
|
| 390 |
+
req = Request(PSL_URL, headers={'User-Agent': 'python-publicsuffix2'})
|
| 391 |
+
res = urlopen(req)
|
| 392 |
+
try:
|
| 393 |
+
encoding = res.headers.get_content_charset()
|
| 394 |
+
except AttributeError:
|
| 395 |
+
encoding = res.headers.getparam('charset')
|
| 396 |
+
f = codecs.getreader(encoding)(res)
|
| 397 |
+
return f
|
python/user_packages/Python313/site-packages/publicsuffix2/mpl-2.0.LICENSE
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The Public Suffix List vendored in this distribution has been downloaded
|
| 2 |
+
from http://publicsuffix.org/public_suffix_list.dat
|
| 3 |
+
This data file is licensed under the MPL-2.0 license.
|
| 4 |
+
http://mozilla.org/MPL/2.0/
|
| 5 |
+
|
| 6 |
+
Mozilla Public License Version 2.0
|
| 7 |
+
==================================
|
| 8 |
+
|
| 9 |
+
1. Definitions
|
| 10 |
+
--------------
|
| 11 |
+
|
| 12 |
+
1.1. "Contributor"
|
| 13 |
+
means each individual or legal entity that creates, contributes to
|
| 14 |
+
the creation of, or owns Covered Software.
|
| 15 |
+
|
| 16 |
+
1.2. "Contributor Version"
|
| 17 |
+
means the combination of the Contributions of others (if any) used
|
| 18 |
+
by a Contributor and that particular Contributor's Contribution.
|
| 19 |
+
|
| 20 |
+
1.3. "Contribution"
|
| 21 |
+
means Covered Software of a particular Contributor.
|
| 22 |
+
|
| 23 |
+
1.4. "Covered Software"
|
| 24 |
+
means Source Code Form to which the initial Contributor has attached
|
| 25 |
+
the notice in Exhibit A, the Executable Form of such Source Code
|
| 26 |
+
Form, and Modifications of such Source Code Form, in each case
|
| 27 |
+
including portions thereof.
|
| 28 |
+
|
| 29 |
+
1.5. "Incompatible With Secondary Licenses"
|
| 30 |
+
means
|
| 31 |
+
|
| 32 |
+
(a) that the initial Contributor has attached the notice described
|
| 33 |
+
in Exhibit B to the Covered Software; or
|
| 34 |
+
|
| 35 |
+
(b) that the Covered Software was made available under the terms of
|
| 36 |
+
version 1.1 or earlier of the License, but not also under the
|
| 37 |
+
terms of a Secondary License.
|
| 38 |
+
|
| 39 |
+
1.6. "Executable Form"
|
| 40 |
+
means any form of the work other than Source Code Form.
|
| 41 |
+
|
| 42 |
+
1.7. "Larger Work"
|
| 43 |
+
means a work that combines Covered Software with other material, in
|
| 44 |
+
a separate file or files, that is not Covered Software.
|
| 45 |
+
|
| 46 |
+
1.8. "License"
|
| 47 |
+
means this document.
|
| 48 |
+
|
| 49 |
+
1.9. "Licensable"
|
| 50 |
+
means having the right to grant, to the maximum extent possible,
|
| 51 |
+
whether at the time of the initial grant or subsequently, any and
|
| 52 |
+
all of the rights conveyed by this License.
|
| 53 |
+
|
| 54 |
+
1.10. "Modifications"
|
| 55 |
+
means any of the following:
|
| 56 |
+
|
| 57 |
+
(a) any file in Source Code Form that results from an addition to,
|
| 58 |
+
deletion from, or modification of the contents of Covered
|
| 59 |
+
Software; or
|
| 60 |
+
|
| 61 |
+
(b) any new file in Source Code Form that contains any Covered
|
| 62 |
+
Software.
|
| 63 |
+
|
| 64 |
+
1.11. "Patent Claims" of a Contributor
|
| 65 |
+
means any patent claim(s), including without limitation, method,
|
| 66 |
+
process, and apparatus claims, in any patent Licensable by such
|
| 67 |
+
Contributor that would be infringed, but for the grant of the
|
| 68 |
+
License, by the making, using, selling, offering for sale, having
|
| 69 |
+
made, import, or transfer of either its Contributions or its
|
| 70 |
+
Contributor Version.
|
| 71 |
+
|
| 72 |
+
1.12. "Secondary License"
|
| 73 |
+
means either the GNU General Public License, Version 2.0, the GNU
|
| 74 |
+
Lesser General Public License, Version 2.1, the GNU Affero General
|
| 75 |
+
Public License, Version 3.0, or any later versions of those
|
| 76 |
+
licenses.
|
| 77 |
+
|
| 78 |
+
1.13. "Source Code Form"
|
| 79 |
+
means the form of the work preferred for making modifications.
|
| 80 |
+
|
| 81 |
+
1.14. "You" (or "Your")
|
| 82 |
+
means an individual or a legal entity exercising rights under this
|
| 83 |
+
License. For legal entities, "You" includes any entity that
|
| 84 |
+
controls, is controlled by, or is under common control with You. For
|
| 85 |
+
purposes of this definition, "control" means (a) the power, direct
|
| 86 |
+
or indirect, to cause the direction or management of such entity,
|
| 87 |
+
whether by contract or otherwise, or (b) ownership of more than
|
| 88 |
+
fifty percent (50%) of the outstanding shares or beneficial
|
| 89 |
+
ownership of such entity.
|
| 90 |
+
|
| 91 |
+
2. License Grants and Conditions
|
| 92 |
+
--------------------------------
|
| 93 |
+
|
| 94 |
+
2.1. Grants
|
| 95 |
+
|
| 96 |
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
| 97 |
+
non-exclusive license:
|
| 98 |
+
|
| 99 |
+
(a) under intellectual property rights (other than patent or trademark)
|
| 100 |
+
Licensable by such Contributor to use, reproduce, make available,
|
| 101 |
+
modify, display, perform, distribute, and otherwise exploit its
|
| 102 |
+
Contributions, either on an unmodified basis, with Modifications, or
|
| 103 |
+
as part of a Larger Work; and
|
| 104 |
+
|
| 105 |
+
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
| 106 |
+
for sale, have made, import, and otherwise transfer either its
|
| 107 |
+
Contributions or its Contributor Version.
|
| 108 |
+
|
| 109 |
+
2.2. Effective Date
|
| 110 |
+
|
| 111 |
+
The licenses granted in Section 2.1 with respect to any Contribution
|
| 112 |
+
become effective for each Contribution on the date the Contributor first
|
| 113 |
+
distributes such Contribution.
|
| 114 |
+
|
| 115 |
+
2.3. Limitations on Grant Scope
|
| 116 |
+
|
| 117 |
+
The licenses granted in this Section 2 are the only rights granted under
|
| 118 |
+
this License. No additional rights or licenses will be implied from the
|
| 119 |
+
distribution or licensing of Covered Software under this License.
|
| 120 |
+
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
| 121 |
+
Contributor:
|
| 122 |
+
|
| 123 |
+
(a) for any code that a Contributor has removed from Covered Software;
|
| 124 |
+
or
|
| 125 |
+
|
| 126 |
+
(b) for infringements caused by: (i) Your and any other third party's
|
| 127 |
+
modifications of Covered Software, or (ii) the combination of its
|
| 128 |
+
Contributions with other software (except as part of its Contributor
|
| 129 |
+
Version); or
|
| 130 |
+
|
| 131 |
+
(c) under Patent Claims infringed by Covered Software in the absence of
|
| 132 |
+
its Contributions.
|
| 133 |
+
|
| 134 |
+
This License does not grant any rights in the trademarks, service marks,
|
| 135 |
+
or logos of any Contributor (except as may be necessary to comply with
|
| 136 |
+
the notice requirements in Section 3.4).
|
| 137 |
+
|
| 138 |
+
2.4. Subsequent Licenses
|
| 139 |
+
|
| 140 |
+
No Contributor makes additional grants as a result of Your choice to
|
| 141 |
+
distribute the Covered Software under a subsequent version of this
|
| 142 |
+
License (see Section 10.2) or under the terms of a Secondary License (if
|
| 143 |
+
permitted under the terms of Section 3.3).
|
| 144 |
+
|
| 145 |
+
2.5. Representation
|
| 146 |
+
|
| 147 |
+
Each Contributor represents that the Contributor believes its
|
| 148 |
+
Contributions are its original creation(s) or it has sufficient rights
|
| 149 |
+
to grant the rights to its Contributions conveyed by this License.
|
| 150 |
+
|
| 151 |
+
2.6. Fair Use
|
| 152 |
+
|
| 153 |
+
This License is not intended to limit any rights You have under
|
| 154 |
+
applicable copyright doctrines of fair use, fair dealing, or other
|
| 155 |
+
equivalents.
|
| 156 |
+
|
| 157 |
+
2.7. Conditions
|
| 158 |
+
|
| 159 |
+
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
| 160 |
+
in Section 2.1.
|
| 161 |
+
|
| 162 |
+
3. Responsibilities
|
| 163 |
+
-------------------
|
| 164 |
+
|
| 165 |
+
3.1. Distribution of Source Form
|
| 166 |
+
|
| 167 |
+
All distribution of Covered Software in Source Code Form, including any
|
| 168 |
+
Modifications that You create or to which You contribute, must be under
|
| 169 |
+
the terms of this License. You must inform recipients that the Source
|
| 170 |
+
Code Form of the Covered Software is governed by the terms of this
|
| 171 |
+
License, and how they can obtain a copy of this License. You may not
|
| 172 |
+
attempt to alter or restrict the recipients' rights in the Source Code
|
| 173 |
+
Form.
|
| 174 |
+
|
| 175 |
+
3.2. Distribution of Executable Form
|
| 176 |
+
|
| 177 |
+
If You distribute Covered Software in Executable Form then:
|
| 178 |
+
|
| 179 |
+
(a) such Covered Software must also be made available in Source Code
|
| 180 |
+
Form, as described in Section 3.1, and You must inform recipients of
|
| 181 |
+
the Executable Form how they can obtain a copy of such Source Code
|
| 182 |
+
Form by reasonable means in a timely manner, at a charge no more
|
| 183 |
+
than the cost of distribution to the recipient; and
|
| 184 |
+
|
| 185 |
+
(b) You may distribute such Executable Form under the terms of this
|
| 186 |
+
License, or sublicense it under different terms, provided that the
|
| 187 |
+
license for the Executable Form does not attempt to limit or alter
|
| 188 |
+
the recipients' rights in the Source Code Form under this License.
|
| 189 |
+
|
| 190 |
+
3.3. Distribution of a Larger Work
|
| 191 |
+
|
| 192 |
+
You may create and distribute a Larger Work under terms of Your choice,
|
| 193 |
+
provided that You also comply with the requirements of this License for
|
| 194 |
+
the Covered Software. If the Larger Work is a combination of Covered
|
| 195 |
+
Software with a work governed by one or more Secondary Licenses, and the
|
| 196 |
+
Covered Software is not Incompatible With Secondary Licenses, this
|
| 197 |
+
License permits You to additionally distribute such Covered Software
|
| 198 |
+
under the terms of such Secondary License(s), so that the recipient of
|
| 199 |
+
the Larger Work may, at their option, further distribute the Covered
|
| 200 |
+
Software under the terms of either this License or such Secondary
|
| 201 |
+
License(s).
|
| 202 |
+
|
| 203 |
+
3.4. Notices
|
| 204 |
+
|
| 205 |
+
You may not remove or alter the substance of any license notices
|
| 206 |
+
(including copyright notices, patent notices, disclaimers of warranty,
|
| 207 |
+
or limitations of liability) contained within the Source Code Form of
|
| 208 |
+
the Covered Software, except that You may alter any license notices to
|
| 209 |
+
the extent required to remedy known factual inaccuracies.
|
| 210 |
+
|
| 211 |
+
3.5. Application of Additional Terms
|
| 212 |
+
|
| 213 |
+
You may choose to offer, and to charge a fee for, warranty, support,
|
| 214 |
+
indemnity or liability obligations to one or more recipients of Covered
|
| 215 |
+
Software. However, You may do so only on Your own behalf, and not on
|
| 216 |
+
behalf of any Contributor. You must make it absolutely clear that any
|
| 217 |
+
such warranty, support, indemnity, or liability obligation is offered by
|
| 218 |
+
You alone, and You hereby agree to indemnify every Contributor for any
|
| 219 |
+
liability incurred by such Contributor as a result of warranty, support,
|
| 220 |
+
indemnity or liability terms You offer. You may include additional
|
| 221 |
+
disclaimers of warranty and limitations of liability specific to any
|
| 222 |
+
jurisdiction.
|
| 223 |
+
|
| 224 |
+
4. Inability to Comply Due to Statute or Regulation
|
| 225 |
+
---------------------------------------------------
|
| 226 |
+
|
| 227 |
+
If it is impossible for You to comply with any of the terms of this
|
| 228 |
+
License with respect to some or all of the Covered Software due to
|
| 229 |
+
statute, judicial order, or regulation then You must: (a) comply with
|
| 230 |
+
the terms of this License to the maximum extent possible; and (b)
|
| 231 |
+
describe the limitations and the code they affect. Such description must
|
| 232 |
+
be placed in a text file included with all distributions of the Covered
|
| 233 |
+
Software under this License. Except to the extent prohibited by statute
|
| 234 |
+
or regulation, such description must be sufficiently detailed for a
|
| 235 |
+
recipient of ordinary skill to be able to understand it.
|
| 236 |
+
|
| 237 |
+
5. Termination
|
| 238 |
+
--------------
|
| 239 |
+
|
| 240 |
+
5.1. The rights granted under this License will terminate automatically
|
| 241 |
+
if You fail to comply with any of its terms. However, if You become
|
| 242 |
+
compliant, then the rights granted under this License from a particular
|
| 243 |
+
Contributor are reinstated (a) provisionally, unless and until such
|
| 244 |
+
Contributor explicitly and finally terminates Your grants, and (b) on an
|
| 245 |
+
ongoing basis, if such Contributor fails to notify You of the
|
| 246 |
+
non-compliance by some reasonable means prior to 60 days after You have
|
| 247 |
+
come back into compliance. Moreover, Your grants from a particular
|
| 248 |
+
Contributor are reinstated on an ongoing basis if such Contributor
|
| 249 |
+
notifies You of the non-compliance by some reasonable means, this is the
|
| 250 |
+
first time You have received notice of non-compliance with this License
|
| 251 |
+
from such Contributor, and You become compliant prior to 30 days after
|
| 252 |
+
Your receipt of the notice.
|
| 253 |
+
|
| 254 |
+
5.2. If You initiate litigation against any entity by asserting a patent
|
| 255 |
+
infringement claim (excluding declaratory judgment actions,
|
| 256 |
+
counter-claims, and cross-claims) alleging that a Contributor Version
|
| 257 |
+
directly or indirectly infringes any patent, then the rights granted to
|
| 258 |
+
You by any and all Contributors for the Covered Software under Section
|
| 259 |
+
2.1 of this License shall terminate.
|
| 260 |
+
|
| 261 |
+
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
| 262 |
+
end user license agreements (excluding distributors and resellers) which
|
| 263 |
+
have been validly granted by You or Your distributors under this License
|
| 264 |
+
prior to termination shall survive termination.
|
| 265 |
+
|
| 266 |
+
************************************************************************
|
| 267 |
+
* *
|
| 268 |
+
* 6. Disclaimer of Warranty *
|
| 269 |
+
* ------------------------- *
|
| 270 |
+
* *
|
| 271 |
+
* Covered Software is provided under this License on an "as is" *
|
| 272 |
+
* basis, without warranty of any kind, either expressed, implied, or *
|
| 273 |
+
* statutory, including, without limitation, warranties that the *
|
| 274 |
+
* Covered Software is free of defects, merchantable, fit for a *
|
| 275 |
+
* particular purpose or non-infringing. The entire risk as to the *
|
| 276 |
+
* quality and performance of the Covered Software is with You. *
|
| 277 |
+
* Should any Covered Software prove defective in any respect, You *
|
| 278 |
+
* (not any Contributor) assume the cost of any necessary servicing, *
|
| 279 |
+
* repair, or correction. This disclaimer of warranty constitutes an *
|
| 280 |
+
* essential part of this License. No use of any Covered Software is *
|
| 281 |
+
* authorized under this License except under this disclaimer. *
|
| 282 |
+
* *
|
| 283 |
+
************************************************************************
|
| 284 |
+
|
| 285 |
+
************************************************************************
|
| 286 |
+
* *
|
| 287 |
+
* 7. Limitation of Liability *
|
| 288 |
+
* -------------------------- *
|
| 289 |
+
* *
|
| 290 |
+
* Under no circumstances and under no legal theory, whether tort *
|
| 291 |
+
* (including negligence), contract, or otherwise, shall any *
|
| 292 |
+
* Contributor, or anyone who distributes Covered Software as *
|
| 293 |
+
* permitted above, be liable to You for any direct, indirect, *
|
| 294 |
+
* special, incidental, or consequential damages of any character *
|
| 295 |
+
* including, without limitation, damages for lost profits, loss of *
|
| 296 |
+
* goodwill, work stoppage, computer failure or malfunction, or any *
|
| 297 |
+
* and all other commercial damages or losses, even if such party *
|
| 298 |
+
* shall have been informed of the possibility of such damages. This *
|
| 299 |
+
* limitation of liability shall not apply to liability for death or *
|
| 300 |
+
* personal injury resulting from such party's negligence to the *
|
| 301 |
+
* extent applicable law prohibits such limitation. Some *
|
| 302 |
+
* jurisdictions do not allow the exclusion or limitation of *
|
| 303 |
+
* incidental or consequential damages, so this exclusion and *
|
| 304 |
+
* limitation may not apply to You. *
|
| 305 |
+
* *
|
| 306 |
+
************************************************************************
|
| 307 |
+
|
| 308 |
+
8. Litigation
|
| 309 |
+
-------------
|
| 310 |
+
|
| 311 |
+
Any litigation relating to this License may be brought only in the
|
| 312 |
+
courts of a jurisdiction where the defendant maintains its principal
|
| 313 |
+
place of business and such litigation shall be governed by laws of that
|
| 314 |
+
jurisdiction, without reference to its conflict-of-law provisions.
|
| 315 |
+
Nothing in this Section shall prevent a party's ability to bring
|
| 316 |
+
cross-claims or counter-claims.
|
| 317 |
+
|
| 318 |
+
9. Miscellaneous
|
| 319 |
+
----------------
|
| 320 |
+
|
| 321 |
+
This License represents the complete agreement concerning the subject
|
| 322 |
+
matter hereof. If any provision of this License is held to be
|
| 323 |
+
unenforceable, such provision shall be reformed only to the extent
|
| 324 |
+
necessary to make it enforceable. Any law or regulation which provides
|
| 325 |
+
that the language of a contract shall be construed against the drafter
|
| 326 |
+
shall not be used to construe this License against a Contributor.
|
| 327 |
+
|
| 328 |
+
10. Versions of the License
|
| 329 |
+
---------------------------
|
| 330 |
+
|
| 331 |
+
10.1. New Versions
|
| 332 |
+
|
| 333 |
+
Mozilla Foundation is the license steward. Except as provided in Section
|
| 334 |
+
10.3, no one other than the license steward has the right to modify or
|
| 335 |
+
publish new versions of this License. Each version will be given a
|
| 336 |
+
distinguishing version number.
|
| 337 |
+
|
| 338 |
+
10.2. Effect of New Versions
|
| 339 |
+
|
| 340 |
+
You may distribute the Covered Software under the terms of the version
|
| 341 |
+
of the License under which You originally received the Covered Software,
|
| 342 |
+
or under the terms of any subsequent version published by the license
|
| 343 |
+
steward.
|
| 344 |
+
|
| 345 |
+
10.3. Modified Versions
|
| 346 |
+
|
| 347 |
+
If you create software not governed by this License, and you want to
|
| 348 |
+
create a new license for such software, you may create and use a
|
| 349 |
+
modified version of this License if you rename the license and remove
|
| 350 |
+
any references to the name of the license steward (except to note that
|
| 351 |
+
such modified license differs from this License).
|
| 352 |
+
|
| 353 |
+
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
| 354 |
+
Licenses
|
| 355 |
+
|
| 356 |
+
If You choose to distribute Source Code Form that is Incompatible With
|
| 357 |
+
Secondary Licenses under the terms of this version of the License, the
|
| 358 |
+
notice described in Exhibit B of this License must be attached.
|
| 359 |
+
|
| 360 |
+
Exhibit A - Source Code Form License Notice
|
| 361 |
+
-------------------------------------------
|
| 362 |
+
|
| 363 |
+
This Source Code Form is subject to the terms of the Mozilla Public
|
| 364 |
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
| 365 |
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
| 366 |
+
|
| 367 |
+
If it is not possible or desirable to put the notice in a particular
|
| 368 |
+
file, then You may include the notice in a location (such as a LICENSE
|
| 369 |
+
file in a relevant directory) where a recipient would be likely to look
|
| 370 |
+
for such a notice.
|
| 371 |
+
|
| 372 |
+
You may add additional accurate notices of copyright ownership.
|
| 373 |
+
|
| 374 |
+
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
| 375 |
+
---------------------------------------------------------
|
| 376 |
+
|
| 377 |
+
This Source Code Form is "Incompatible With Secondary Licenses", as
|
| 378 |
+
defined by the Mozilla Public License, v. 2.0.
|
python/user_packages/Python313/site-packages/publicsuffix2/public_suffix_list.ABOUT
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
about_resource: public_suffix_list.dat
|
| 3 |
+
name: Public Suffix List
|
| 4 |
+
version: 2019-12-21T11:10:15
|
| 5 |
+
download_url: https://publicsuffix.org/list/public_suffix_list.dat
|
| 6 |
+
home_url: https://publicsuffix.org/
|
| 7 |
+
|
| 8 |
+
owner: Mozilla
|
| 9 |
+
copyright: Copyright (c) Mozilla and others
|
| 10 |
+
license: mpl-2.0
|
| 11 |
+
license_text_file: mpl-2.0.LICENSE
|
python/user_packages/Python313/site-packages/publicsuffix2/public_suffix_list.dat
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
python/user_packages/Python313/site-packages/py_rust_stemmers-0.1.5.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
python/user_packages/Python313/site-packages/py_rust_stemmers-0.1.5.dist-info/METADATA
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.3
|
| 2 |
+
Name: py_rust_stemmers
|
| 3 |
+
Version: 0.1.5
|
| 4 |
+
License-File: LICENSE
|
| 5 |
+
Summary: Fast and parallel snowball stemmer
|
| 6 |
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
| 7 |
+
|
| 8 |
+
# py-rust-stemmers
|
| 9 |
+
py-rust-stemmers is a high-performance Python wrapper around the rust-stemmers library, utilizing the Snowball stemming algorithm. This library allows for efficient stemming of words with support for parallel processing, making it a powerful tool for text processing tasks. The library is built using maturin to compile the Rust code into a Python package.
|
| 10 |
+
|
| 11 |
+
## Features
|
| 12 |
+
* Snowball Stemmer: Uses the well-known Snowball stemming algorithms for efficient word stemming in multiple languages.
|
| 13 |
+
* Parallelism Support: Offers parallel processing for batch stemming, providing significant speedup for larger text sequences.
|
| 14 |
+
* Rust Performance: Leverages the performance of Rust for fast, reliable text processing.
|
| 15 |
+
|
| 16 |
+
## Installation
|
| 17 |
+
You can install py-rust-stemmers via pip:
|
| 18 |
+
|
| 19 |
+
```pip install py-rust-stemmers```
|
| 20 |
+
|
| 21 |
+
## Usage
|
| 22 |
+
Here's a simple example showing how to use py-rust-stemmers to stem words using the Snowball algorithm:
|
| 23 |
+
|
| 24 |
+
```
|
| 25 |
+
from py_rust_stemmers import SnowballStemmer
|
| 26 |
+
|
| 27 |
+
# Initialize the stemmer for the English language
|
| 28 |
+
s = SnowballStemmer('english')
|
| 29 |
+
|
| 30 |
+
# Input text
|
| 31 |
+
text = """This stem form is often a word itself, but this is not always the case as this is not a requirement for text search systems, which are the intended field of use. We also aim to conflate words with the same meaning, rather than all words with a common linguistic root (so awe and awful don't have the same stem), and over-stemming is more problematic than under-stemming so we tend not to stem in cases that are hard to resolve. If you want to always reduce words to a root form and/or get a root form which is itself a word then Snowball's stemming algorithms likely aren't the right answer."""
|
| 32 |
+
words = text.split()
|
| 33 |
+
|
| 34 |
+
# Example usage of the methods
|
| 35 |
+
stemmed = s.stem_word(words[0])
|
| 36 |
+
print(f"Stemmed word: {stemmed}")
|
| 37 |
+
|
| 38 |
+
# Stem a list of words
|
| 39 |
+
stemmed_words = s.stem_words(words)
|
| 40 |
+
print(f"Stemmed words: {stemmed_words}")
|
| 41 |
+
|
| 42 |
+
# Stem words in parallel
|
| 43 |
+
stemmed_words_parallel = s.stem_words_parallel(words)
|
| 44 |
+
print(f"Stemmed words (parallel): {stemmed_words_parallel}")
|
| 45 |
+
```
|
| 46 |
+
___
|
| 47 |
+
## Methods
|
| 48 |
+
```stem_word(word: str) -> str```
|
| 49 |
+
|
| 50 |
+
This method stems a single word. It is best used for small or isolated stemming tasks.
|
| 51 |
+
|
| 52 |
+
Example:
|
| 53 |
+
```
|
| 54 |
+
s.stem_word("running") # Output: "run"
|
| 55 |
+
```
|
| 56 |
+
___
|
| 57 |
+
```
|
| 58 |
+
stem_words(words: List[str]) -> List[str]
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
This method stems a list of words sequentially. It is ideal for processing short to moderately sized text sequences.
|
| 62 |
+
|
| 63 |
+
Example:
|
| 64 |
+
|
| 65 |
+
```
|
| 66 |
+
s.stem_words(["running", "jumps", "easily"]) # Output: ["run", "jump", "easili"]
|
| 67 |
+
```
|
| 68 |
+
___
|
| 69 |
+
```
|
| 70 |
+
stem_words_parallel(words: List[str]) -> List[str]
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
This method stems a list of words in parallel. It provides significant speedup for longer text sequences (e.g., sequences longer than 512 tokens) by utilizing parallel processing. It is ideal for batch processing of large datasets.
|
| 74 |
+
|
| 75 |
+
Example:
|
| 76 |
+
|
| 77 |
+
```
|
| 78 |
+
s.stem_words_parallel(["running", "jumps", "easily"]) # Output: ["run", "jump", "easili"]
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
## Build from source
|
| 82 |
+
* Install maturin
|
| 83 |
+
* Go to project dir
|
| 84 |
+
|
| 85 |
+
```
|
| 86 |
+
maturin build --release
|
| 87 |
+
pip install target/wheels/py_rust_stemmers-<your os/architecture/etc>.whl
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
## License
|
| 91 |
+
This project is licensed under the MIT License. See the LICENSE file for more details.
|
python/user_packages/Python313/site-packages/py_rust_stemmers-0.1.5.dist-info/RECORD
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
py_rust_stemmers-0.1.5.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
py_rust_stemmers-0.1.5.dist-info/METADATA,sha256=t4ZL3k-vXs4tfdrJUSjXtoHjD5xJc4UqymsYov3tD2E,3469
|
| 3 |
+
py_rust_stemmers-0.1.5.dist-info/RECORD,,
|
| 4 |
+
py_rust_stemmers-0.1.5.dist-info/WHEEL,sha256=1ZpRl7NI5FUTGBGfAoLBw2DqQx_-H3hwfjZ2VbdjU5g,95
|
| 5 |
+
py_rust_stemmers-0.1.5.dist-info/licenses/LICENSE,sha256=lEkFd3bJhOiOKeoe4TXK66I0d1bQx0SA96_E8W9jb2g,1084
|
| 6 |
+
py_rust_stemmers/__init__.py,sha256=yz40wc_OCcpEW3bQWGa7ELT9hJfrHp2pmbNyPNAsi3c,147
|
| 7 |
+
py_rust_stemmers/__pycache__/__init__.cpython-313.pyc,,
|
| 8 |
+
py_rust_stemmers/py_rust_stemmers.cp313-win_amd64.pyd,sha256=4Cnx_NgIkPIaTFzePH9-mmoI1ZAv8bliwwHIQde-kcc,544256
|
python/user_packages/Python313/site-packages/py_rust_stemmers-0.1.5.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: maturin (1.7.4)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp313-none-win_amd64
|
python/user_packages/Python313/site-packages/py_rust_stemmers/__init__.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .py_rust_stemmers import *
|
| 2 |
+
|
| 3 |
+
__doc__ = py_rust_stemmers.__doc__
|
| 4 |
+
if hasattr(py_rust_stemmers, "__all__"):
|
| 5 |
+
__all__ = py_rust_stemmers.__all__
|
python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/METADATA
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: pyasn1
|
| 3 |
+
Version: 0.6.3
|
| 4 |
+
Summary: Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)
|
| 5 |
+
Author-email: Ilya Etingof <etingof@gmail.com>
|
| 6 |
+
Maintainer: pyasn1 maintenance organization
|
| 7 |
+
Maintainer-email: Christian Heimes <christian@python.org>
|
| 8 |
+
License: BSD-2-Clause
|
| 9 |
+
Project-URL: Homepage, https://github.com/pyasn1/pyasn1
|
| 10 |
+
Project-URL: Documentation, https://pyasn1.readthedocs.io
|
| 11 |
+
Project-URL: Source, https://github.com/pyasn1/pyasn1
|
| 12 |
+
Project-URL: Issues, https://github.com/pyasn1/pyasn1/issues
|
| 13 |
+
Project-URL: Changelog, https://pyasn1.readthedocs.io/en/latest/changelog.html
|
| 14 |
+
Platform: any
|
| 15 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 16 |
+
Classifier: Environment :: Console
|
| 17 |
+
Classifier: Intended Audience :: Developers
|
| 18 |
+
Classifier: Intended Audience :: Education
|
| 19 |
+
Classifier: Intended Audience :: Information Technology
|
| 20 |
+
Classifier: Intended Audience :: System Administrators
|
| 21 |
+
Classifier: Intended Audience :: Telecommunications Industry
|
| 22 |
+
Classifier: Natural Language :: English
|
| 23 |
+
Classifier: Operating System :: OS Independent
|
| 24 |
+
Classifier: Programming Language :: Python :: 3
|
| 25 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 26 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 27 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 28 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 29 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 30 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 31 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 32 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 33 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 34 |
+
Classifier: Topic :: Communications
|
| 35 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 36 |
+
Requires-Python: >=3.8
|
| 37 |
+
Description-Content-Type: text/markdown
|
| 38 |
+
License-File: LICENSE.rst
|
| 39 |
+
Dynamic: license-file
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
ASN.1 library for Python
|
| 43 |
+
------------------------
|
| 44 |
+
[](https://pypi.org/project/pyasn1)
|
| 45 |
+
[](https://pypi.org/project/pyasn1/)
|
| 46 |
+
[](https://github.com/pyasn1/pyasn1/actions/workflows/main.yml)
|
| 47 |
+
[](https://codecov.io/github/pyasn1/pyasn1)
|
| 48 |
+
[](https://raw.githubusercontent.com/pyasn1/pyasn1/master/LICENSE.txt)
|
| 49 |
+
|
| 50 |
+
This is a free and open source implementation of ASN.1 types and codecs
|
| 51 |
+
as a Python package. It has been first written to support particular
|
| 52 |
+
protocol (SNMP) but then generalized to be suitable for a wide range
|
| 53 |
+
of protocols based on
|
| 54 |
+
[ASN.1 specification](https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-X.208-198811-W!!PDF-E&type=items).
|
| 55 |
+
|
| 56 |
+
**NOTE:** The package is now maintained by *Christian Heimes* and
|
| 57 |
+
*Simon Pichugin* in project https://github.com/pyasn1/pyasn1.
|
| 58 |
+
|
| 59 |
+
Features
|
| 60 |
+
--------
|
| 61 |
+
|
| 62 |
+
* Generic implementation of ASN.1 types (X.208)
|
| 63 |
+
* Standards compliant BER/CER/DER codecs
|
| 64 |
+
* Can operate on streams of serialized data
|
| 65 |
+
* Dumps/loads ASN.1 structures from Python types
|
| 66 |
+
* 100% Python, works with Python 3.8+
|
| 67 |
+
* MT-safe
|
| 68 |
+
* Contributed ASN.1 compiler [Asn1ate](https://github.com/kimgr/asn1ate)
|
| 69 |
+
|
| 70 |
+
Why using pyasn1
|
| 71 |
+
----------------
|
| 72 |
+
|
| 73 |
+
ASN.1 solves the data serialisation problem. This solution was
|
| 74 |
+
designed long ago by the wise Ancients. Back then, they did not
|
| 75 |
+
have the luxury of wasting bits. That is why ASN.1 is designed
|
| 76 |
+
to serialise data structures of unbounded complexity into
|
| 77 |
+
something compact and efficient when it comes to processing
|
| 78 |
+
the data.
|
| 79 |
+
|
| 80 |
+
That probably explains why many network protocols and file formats
|
| 81 |
+
still rely on the 30+ years old technology. Including a number of
|
| 82 |
+
high-profile Internet protocols and file formats.
|
| 83 |
+
|
| 84 |
+
Quite a number of books cover the topic of ASN.1.
|
| 85 |
+
[Communication between heterogeneous systems](http://www.oss.com/asn1/dubuisson.html)
|
| 86 |
+
by Olivier Dubuisson is one of those high quality books freely
|
| 87 |
+
available on the Internet.
|
| 88 |
+
|
| 89 |
+
The pyasn1 package is designed to help Python programmers tackling
|
| 90 |
+
network protocols and file formats at the comfort of their Python
|
| 91 |
+
prompt. The tool struggles to capture all aspects of a rather
|
| 92 |
+
complicated ASN.1 system and to represent it on the Python terms.
|
| 93 |
+
|
| 94 |
+
How to use pyasn1
|
| 95 |
+
-----------------
|
| 96 |
+
|
| 97 |
+
With pyasn1 you can build Python objects from ASN.1 data structures.
|
| 98 |
+
For example, the following ASN.1 data structure:
|
| 99 |
+
|
| 100 |
+
```bash
|
| 101 |
+
Record ::= SEQUENCE {
|
| 102 |
+
id INTEGER,
|
| 103 |
+
room [0] INTEGER OPTIONAL,
|
| 104 |
+
house [1] INTEGER DEFAULT 0
|
| 105 |
+
}
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
Could be expressed in pyasn1 like this:
|
| 109 |
+
|
| 110 |
+
```python
|
| 111 |
+
class Record(Sequence):
|
| 112 |
+
componentType = NamedTypes(
|
| 113 |
+
NamedType('id', Integer()),
|
| 114 |
+
OptionalNamedType(
|
| 115 |
+
'room', Integer().subtype(
|
| 116 |
+
implicitTag=Tag(tagClassContext, tagFormatSimple, 0)
|
| 117 |
+
)
|
| 118 |
+
),
|
| 119 |
+
DefaultedNamedType(
|
| 120 |
+
'house', Integer(0).subtype(
|
| 121 |
+
implicitTag=Tag(tagClassContext, tagFormatSimple, 1)
|
| 122 |
+
)
|
| 123 |
+
)
|
| 124 |
+
)
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
It is in the spirit of ASN.1 to take abstract data description
|
| 128 |
+
and turn it into a programming language specific form.
|
| 129 |
+
Once you have your ASN.1 data structure expressed in Python, you
|
| 130 |
+
can use it along the lines of similar Python type (e.g. ASN.1
|
| 131 |
+
`SET` is similar to Python `dict`, `SET OF` to `list`):
|
| 132 |
+
|
| 133 |
+
```python
|
| 134 |
+
>>> record = Record()
|
| 135 |
+
>>> record['id'] = 123
|
| 136 |
+
>>> record['room'] = 321
|
| 137 |
+
>>> str(record)
|
| 138 |
+
Record:
|
| 139 |
+
id=123
|
| 140 |
+
room=321
|
| 141 |
+
>>>
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
Part of the power of ASN.1 comes from its serialisation features. You
|
| 145 |
+
can serialise your data structure and send it over the network.
|
| 146 |
+
|
| 147 |
+
```python
|
| 148 |
+
>>> from pyasn1.codec.der.encoder import encode
|
| 149 |
+
>>> substrate = encode(record)
|
| 150 |
+
>>> hexdump(substrate)
|
| 151 |
+
00000: 30 07 02 01 7B 80 02 01 41
|
| 152 |
+
```
|
| 153 |
+
|
| 154 |
+
Conversely, you can turn serialised ASN.1 content, as received from
|
| 155 |
+
network or read from a file, into a Python object which you can
|
| 156 |
+
introspect, modify, encode and send back.
|
| 157 |
+
|
| 158 |
+
```python
|
| 159 |
+
>>> from pyasn1.codec.der.decoder import decode
|
| 160 |
+
>>> received_record, rest_of_substrate = decode(substrate, asn1Spec=Record())
|
| 161 |
+
>>>
|
| 162 |
+
>>> for field in received_record:
|
| 163 |
+
>>> print('{} is {}'.format(field, received_record[field]))
|
| 164 |
+
id is 123
|
| 165 |
+
room is 321
|
| 166 |
+
house is 0
|
| 167 |
+
>>>
|
| 168 |
+
>>> record == received_record
|
| 169 |
+
True
|
| 170 |
+
>>> received_record.update(room=123)
|
| 171 |
+
>>> substrate = encode(received_record)
|
| 172 |
+
>>> hexdump(substrate)
|
| 173 |
+
00000: 30 06 02 01 7B 80 01 7B
|
| 174 |
+
```
|
| 175 |
+
|
| 176 |
+
The pyasn1 classes struggle to emulate their Python prototypes (e.g. int,
|
| 177 |
+
list, dict etc.). But ASN.1 types exhibit more complicated behaviour.
|
| 178 |
+
To make life easier for a Pythonista, they can turn their pyasn1
|
| 179 |
+
classes into Python built-ins:
|
| 180 |
+
|
| 181 |
+
```python
|
| 182 |
+
>>> from pyasn1.codec.native.encoder import encode
|
| 183 |
+
>>> encode(record)
|
| 184 |
+
{'id': 123, 'room': 321, 'house': 0}
|
| 185 |
+
```
|
| 186 |
+
|
| 187 |
+
Or vice-versa -- you can initialize an ASN.1 structure from a tree of
|
| 188 |
+
Python objects:
|
| 189 |
+
|
| 190 |
+
```python
|
| 191 |
+
>>> from pyasn1.codec.native.decoder import decode
|
| 192 |
+
>>> record = decode({'id': 123, 'room': 321, 'house': 0}, asn1Spec=Record())
|
| 193 |
+
>>> str(record)
|
| 194 |
+
Record:
|
| 195 |
+
id=123
|
| 196 |
+
room=321
|
| 197 |
+
>>>
|
| 198 |
+
```
|
| 199 |
+
|
| 200 |
+
With ASN.1 design, serialisation codecs are decoupled from data objects,
|
| 201 |
+
so you could turn every single ASN.1 object into many different
|
| 202 |
+
serialised forms. As of this moment, pyasn1 supports BER, DER, CER and
|
| 203 |
+
Python built-ins codecs. The extremely compact PER encoding is expected
|
| 204 |
+
to be introduced in the upcoming pyasn1 release.
|
| 205 |
+
|
| 206 |
+
More information on pyasn1 APIs can be found in the
|
| 207 |
+
[documentation](https://pyasn1.readthedocs.io/en/latest/pyasn1/contents.html),
|
| 208 |
+
compiled ASN.1 modules for different protocols and file formats
|
| 209 |
+
could be found in the pyasn1-modules
|
| 210 |
+
[repo](https://github.com/pyasn1/pyasn1-modules).
|
| 211 |
+
|
| 212 |
+
How to get pyasn1
|
| 213 |
+
-----------------
|
| 214 |
+
|
| 215 |
+
The pyasn1 package is distributed under terms and conditions of 2-clause
|
| 216 |
+
BSD [license](https://pyasn1.readthedocs.io/en/latest/license.html). Source code is freely
|
| 217 |
+
available as a GitHub [repo](https://github.com/pyasn1/pyasn1).
|
| 218 |
+
|
| 219 |
+
You could `pip install pyasn1` or download it from [PyPI](https://pypi.org/project/pyasn1).
|
| 220 |
+
|
| 221 |
+
If something does not work as expected,
|
| 222 |
+
[open an issue](https://github.com/epyasn1/pyasn1/issues) at GitHub or
|
| 223 |
+
post your question [on Stack Overflow](https://stackoverflow.com/questions/ask)
|
| 224 |
+
or try browsing pyasn1
|
| 225 |
+
[mailing list archives](https://sourceforge.net/p/pyasn1/mailman/pyasn1-users/).
|
| 226 |
+
|
| 227 |
+
Copyright (c) 2005-2020, [Ilya Etingof](mailto:etingof@gmail.com).
|
| 228 |
+
All rights reserved.
|
python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/RECORD
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pyasn1-0.6.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
pyasn1-0.6.3.dist-info/METADATA,sha256=zX88nxSePgeBa9G-dw1Ha-M5-K2aF_yrVRx-Mi2PfOo,8411
|
| 3 |
+
pyasn1-0.6.3.dist-info/RECORD,,
|
| 4 |
+
pyasn1-0.6.3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
| 5 |
+
pyasn1-0.6.3.dist-info/licenses/LICENSE.rst,sha256=Kq1fwA9wXEoa3bg-7RCmp10oajd58M-FGdh-YrxHNf0,1334
|
| 6 |
+
pyasn1-0.6.3.dist-info/top_level.txt,sha256=dnNEQt3nIDIO5mSCCOB5obQHrjDOUsRycdBujc2vrWE,7
|
| 7 |
+
pyasn1-0.6.3.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
| 8 |
+
pyasn1/__init__.py,sha256=eoprQaIcC4RoKrpbCVvHVV3eFYk4iFiCERp10ycJ3d8,66
|
| 9 |
+
pyasn1/__pycache__/__init__.cpython-313.pyc,,
|
| 10 |
+
pyasn1/__pycache__/debug.cpython-313.pyc,,
|
| 11 |
+
pyasn1/__pycache__/error.cpython-313.pyc,,
|
| 12 |
+
pyasn1/codec/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 13 |
+
pyasn1/codec/__pycache__/__init__.cpython-313.pyc,,
|
| 14 |
+
pyasn1/codec/__pycache__/streaming.cpython-313.pyc,,
|
| 15 |
+
pyasn1/codec/ber/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 16 |
+
pyasn1/codec/ber/__pycache__/__init__.cpython-313.pyc,,
|
| 17 |
+
pyasn1/codec/ber/__pycache__/decoder.cpython-313.pyc,,
|
| 18 |
+
pyasn1/codec/ber/__pycache__/encoder.cpython-313.pyc,,
|
| 19 |
+
pyasn1/codec/ber/__pycache__/eoo.cpython-313.pyc,,
|
| 20 |
+
pyasn1/codec/ber/decoder.py,sha256=ng6aYOv3XURd1D6Cj47yFIKJ7gzD_PfCTn8xTgTM1-0,80769
|
| 21 |
+
pyasn1/codec/ber/encoder.py,sha256=qfe0atmo1GmdJX9maDUOzEjiW7PdvyszX3i-gUW3DXE,29810
|
| 22 |
+
pyasn1/codec/ber/eoo.py,sha256=dspLKc2xr_W5Tbcr2WcfLd_bJLhOjotq1YxKn3DCQNI,639
|
| 23 |
+
pyasn1/codec/cer/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 24 |
+
pyasn1/codec/cer/__pycache__/__init__.cpython-313.pyc,,
|
| 25 |
+
pyasn1/codec/cer/__pycache__/decoder.cpython-313.pyc,,
|
| 26 |
+
pyasn1/codec/cer/__pycache__/encoder.cpython-313.pyc,,
|
| 27 |
+
pyasn1/codec/cer/decoder.py,sha256=-mX9lPevt5ErPHSF_OWdJDk9gctKUyFPntaFBees7Zg,4603
|
| 28 |
+
pyasn1/codec/cer/encoder.py,sha256=R_6zLWVDqQQdSR6DrlXQcpb7VVa0t8g2XqYDyT9RvXE,9852
|
| 29 |
+
pyasn1/codec/der/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 30 |
+
pyasn1/codec/der/__pycache__/__init__.cpython-313.pyc,,
|
| 31 |
+
pyasn1/codec/der/__pycache__/decoder.cpython-313.pyc,,
|
| 32 |
+
pyasn1/codec/der/__pycache__/encoder.cpython-313.pyc,,
|
| 33 |
+
pyasn1/codec/der/decoder.py,sha256=hqAxJ6tI4f80B67Oq5mMoUptyDH_iryVQZ8MEGV_FfU,3442
|
| 34 |
+
pyasn1/codec/der/encoder.py,sha256=Ms2hqkhbpPPj-CK6XdD0ZpZX1ZJSsA-0GPKXHogI3zg,3493
|
| 35 |
+
pyasn1/codec/native/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 36 |
+
pyasn1/codec/native/__pycache__/__init__.cpython-313.pyc,,
|
| 37 |
+
pyasn1/codec/native/__pycache__/decoder.cpython-313.pyc,,
|
| 38 |
+
pyasn1/codec/native/__pycache__/encoder.cpython-313.pyc,,
|
| 39 |
+
pyasn1/codec/native/decoder.py,sha256=ZQXHXu30asaueFC97S39hvwQnJnpirTv-_inffDx0j4,9132
|
| 40 |
+
pyasn1/codec/native/encoder.py,sha256=YD2UzkVVUNCwiy4eM06dehe383xm9hMqTFpY_83vocg,9198
|
| 41 |
+
pyasn1/codec/streaming.py,sha256=Vp-VDh0SlA5h7T133rne9UNlJlqv2ohpUzVlSCGjq24,6377
|
| 42 |
+
pyasn1/compat/__init__.py,sha256=-9FOJV1STFBatf2pVRiOYn14GmCKC8RY3TYCxOqfRXY,112
|
| 43 |
+
pyasn1/compat/__pycache__/__init__.cpython-313.pyc,,
|
| 44 |
+
pyasn1/compat/__pycache__/integer.cpython-313.pyc,,
|
| 45 |
+
pyasn1/compat/integer.py,sha256=lMXqbJBTyjg34Rhx6JlFcXyoQxDaeXGxhaIIab86hX8,404
|
| 46 |
+
pyasn1/debug.py,sha256=u-WmIFfewqp0041ezvtTjvhZcU9K14OI6p00ArXZ63g,3494
|
| 47 |
+
pyasn1/error.py,sha256=e352oqW33seeh2MbIF27sFSgpiegjstabCMFx2piR0M,3258
|
| 48 |
+
pyasn1/type/__init__.py,sha256=EEDlJYS172EH39GUidN_8FbkNcWY9OVV8e30AV58pn0,59
|
| 49 |
+
pyasn1/type/__pycache__/__init__.cpython-313.pyc,,
|
| 50 |
+
pyasn1/type/__pycache__/base.cpython-313.pyc,,
|
| 51 |
+
pyasn1/type/__pycache__/char.cpython-313.pyc,,
|
| 52 |
+
pyasn1/type/__pycache__/constraint.cpython-313.pyc,,
|
| 53 |
+
pyasn1/type/__pycache__/error.cpython-313.pyc,,
|
| 54 |
+
pyasn1/type/__pycache__/namedtype.cpython-313.pyc,,
|
| 55 |
+
pyasn1/type/__pycache__/namedval.cpython-313.pyc,,
|
| 56 |
+
pyasn1/type/__pycache__/opentype.cpython-313.pyc,,
|
| 57 |
+
pyasn1/type/__pycache__/tag.cpython-313.pyc,,
|
| 58 |
+
pyasn1/type/__pycache__/tagmap.cpython-313.pyc,,
|
| 59 |
+
pyasn1/type/__pycache__/univ.cpython-313.pyc,,
|
| 60 |
+
pyasn1/type/__pycache__/useful.cpython-313.pyc,,
|
| 61 |
+
pyasn1/type/base.py,sha256=tjBRvXIQSiHES5-e5rBbsnn5CtIvBgCuflujDbdrtkM,22050
|
| 62 |
+
pyasn1/type/char.py,sha256=Rvj5ypQLPNXcdHkfUV8nul1XX66R_Akn0g2HUyLj1qY,9438
|
| 63 |
+
pyasn1/type/constraint.py,sha256=jmrt5esLa095XdfS0beqaoRuUjnuHiTKdkTdCcKx1FI,21915
|
| 64 |
+
pyasn1/type/error.py,sha256=2kwYYkbd2jXIVEE56ThLRmBEOGZfafwogEOo-9RV_GY,259
|
| 65 |
+
pyasn1/type/namedtype.py,sha256=jnTClIUoRZi025GTY9GlMlMI-j5dqEcv_ilzZ7i0hUQ,16179
|
| 66 |
+
pyasn1/type/namedval.py,sha256=84u6wKOfte7U47aWrFqIZRM3tO2ryivpsBqVblPezuc,4899
|
| 67 |
+
pyasn1/type/opentype.py,sha256=jjqSbTgAaCxlSHSf66YcLbrxtfh_98nAx2v8wzW35MU,2861
|
| 68 |
+
pyasn1/type/tag.py,sha256=hqIuspUhc5QwN182LeQMc23W_vFNTgASvnUUSX4SPHM,9497
|
| 69 |
+
pyasn1/type/tagmap.py,sha256=alJ9ZfDGTAsPeygHT6yONTagUkCjlgij82YXpPaQ_-8,3000
|
| 70 |
+
pyasn1/type/univ.py,sha256=Bnu2gHdA84UXMLtgb4LXbHI5TYw-kKljlsJ7dkJ8KfI,109212
|
| 71 |
+
pyasn1/type/useful.py,sha256=waqrYyKvH31rdRYvPnSLxAN3R03nFqxcD5ZOmbRXjbI,5389
|
python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (82.0.1)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pyasn1
|
python/user_packages/Python313/site-packages/pyasn1-0.6.3.dist-info/zip-safe
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
|
python/user_packages/Python313/site-packages/pyasn1/__init__.py
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# https://www.python.org/dev/peps/pep-0396/
|
| 2 |
+
__version__ = '0.6.3'
|