Add python packages for support HTTP, TELNET, FTP
parent
c7c520a3f1
commit
10429b6a30
@ -0,0 +1 @@
|
||||
pip
|
@ -0,0 +1,21 @@
|
||||
This package contains a modified version of ca-bundle.crt:
|
||||
|
||||
ca-bundle.crt -- Bundle of CA Root Certificates
|
||||
|
||||
Certificate data from Mozilla as of: Thu Nov 3 19:04:19 2011#
|
||||
This is a bundle of X.509 certificates of public Certificate Authorities
|
||||
(CA). These were automatically extracted from Mozilla's root certificates
|
||||
file (certdata.txt). This file can be found in the mozilla source tree:
|
||||
http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1#
|
||||
It contains the certificates in PEM format and therefore
|
||||
can be directly used with curl / libcurl / php_curl, or with
|
||||
an Apache+mod_ssl webserver for SSL client authentication.
|
||||
Just configure this file as the SSLCACertificateFile.#
|
||||
|
||||
***** BEGIN LICENSE BLOCK *****
|
||||
This Source Code Form is subject to the terms of the Mozilla Public License,
|
||||
v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain
|
||||
one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
***** END LICENSE BLOCK *****
|
||||
@(#) $RCSfile: certdata.txt,v $ $Revision: 1.80 $ $Date: 2011/11/03 15:11:58 $
|
@ -0,0 +1,83 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: certifi
|
||||
Version: 2021.10.8
|
||||
Summary: Python package for providing Mozilla's CA Bundle.
|
||||
Home-page: https://certifiio.readthedocs.io/en/latest/
|
||||
Author: Kenneth Reitz
|
||||
Author-email: me@kennethreitz.com
|
||||
License: MPL-2.0
|
||||
Project-URL: Documentation, https://certifiio.readthedocs.io/en/latest/
|
||||
Project-URL: Source, https://github.com/certifi/python-certifi
|
||||
Platform: UNKNOWN
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
|
||||
Classifier: Natural Language :: English
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.3
|
||||
Classifier: Programming Language :: Python :: 3.4
|
||||
Classifier: Programming Language :: Python :: 3.5
|
||||
Classifier: Programming Language :: Python :: 3.6
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
|
||||
Certifi: Python SSL Certificates
|
||||
================================
|
||||
|
||||
`Certifi`_ provides Mozilla's carefully curated collection of Root Certificates for
|
||||
validating the trustworthiness of SSL certificates while verifying the identity
|
||||
of TLS hosts. It has been extracted from the `Requests`_ project.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
``certifi`` is available on PyPI. Simply install it with ``pip``::
|
||||
|
||||
$ pip install certifi
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
To reference the installed certificate authority (CA) bundle, you can use the
|
||||
built-in function::
|
||||
|
||||
>>> import certifi
|
||||
|
||||
>>> certifi.where()
|
||||
'/usr/local/lib/python3.7/site-packages/certifi/cacert.pem'
|
||||
|
||||
Or from the command line::
|
||||
|
||||
$ python -m certifi
|
||||
/usr/local/lib/python3.7/site-packages/certifi/cacert.pem
|
||||
|
||||
Enjoy!
|
||||
|
||||
1024-bit Root Certificates
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Browsers and certificate authorities have concluded that 1024-bit keys are
|
||||
unacceptably weak for certificates, particularly root certificates. For this
|
||||
reason, Mozilla has removed any weak (i.e. 1024-bit key) certificate from its
|
||||
bundle, replacing it with an equivalent strong (i.e. 2048-bit or greater key)
|
||||
certificate from the same CA. Because Mozilla removed these certificates from
|
||||
its bundle, ``certifi`` removed them as well.
|
||||
|
||||
In previous versions, ``certifi`` provided the ``certifi.old_where()`` function
|
||||
to intentionally re-add the 1024-bit roots back into your bundle. This was not
|
||||
recommended in production and therefore was removed at the end of 2018.
|
||||
|
||||
.. _`Certifi`: https://certifiio.readthedocs.io/en/latest/
|
||||
.. _`Requests`: https://requests.readthedocs.io/en/master/
|
||||
|
||||
Addition/Removal of Certificates
|
||||
--------------------------------
|
||||
|
||||
Certifi does not support any addition/removal or other modification of the
|
||||
CA trust store content. This project is intended to provide a reliable and
|
||||
highly portable root of trust to python deployments. Look to upstream projects
|
||||
for methods to use alternate trust.
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
certifi-2021.10.8.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
certifi-2021.10.8.dist-info/LICENSE,sha256=vp2C82ES-Hp_HXTs1Ih-FGe7roh4qEAEoAEXseR1o-I,1049
|
||||
certifi-2021.10.8.dist-info/METADATA,sha256=iB_zbT1uX_8_NC7iGv0YEB-9b3idhQwHrFTSq8R1kD8,2994
|
||||
certifi-2021.10.8.dist-info/RECORD,,
|
||||
certifi-2021.10.8.dist-info/WHEEL,sha256=ADKeyaGyKF5DwBNE0sRE5pvW-bSkFMJfBuhzZ3rceP4,110
|
||||
certifi-2021.10.8.dist-info/top_level.txt,sha256=KMu4vUCfsjLrkPbSNdgdekS-pVJzBAJFO__nI8NF6-U,8
|
||||
certifi/__init__.py,sha256=xWdRgntT3j1V95zkRipGOg_A1UfEju2FcpujhysZLRI,62
|
||||
certifi/__main__.py,sha256=xBBoj905TUWBLRGANOcf7oi6e-3dMP4cEoG9OyMs11g,243
|
||||
certifi/__pycache__/__init__.cpython-37.pyc,,
|
||||
certifi/__pycache__/__main__.cpython-37.pyc,,
|
||||
certifi/__pycache__/core.cpython-37.pyc,,
|
||||
certifi/cacert.pem,sha256=-og4Keu4zSpgL5shwfhd4kz0eUnVILzrGCi0zRy2kGw,265969
|
||||
certifi/core.py,sha256=V0uyxKOYdz6ulDSusclrLmjbPgOXsD0BnEf0SQ7OnoE,2303
|
@ -0,0 +1,6 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.35.1)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py2-none-any
|
||||
Tag: py3-none-any
|
||||
|
@ -0,0 +1 @@
|
||||
certifi
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -0,0 +1 @@
|
||||
pip
|
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 TAHRI Ahmed R.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -0,0 +1,267 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: charset-normalizer
|
||||
Version: 2.0.7
|
||||
Summary: The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.
|
||||
Home-page: https://github.com/ousret/charset_normalizer
|
||||
Author: Ahmed TAHRI @Ousret
|
||||
Author-email: ahmed.tahri@cloudnursery.dev
|
||||
License: MIT
|
||||
Project-URL: Bug Reports, https://github.com/Ousret/charset_normalizer/issues
|
||||
Project-URL: Documentation, https://charset-normalizer.readthedocs.io/en/latest
|
||||
Keywords: encoding,i18n,txt,text,charset,charset-detector,normalization,unicode,chardet
|
||||
Platform: UNKNOWN
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.5
|
||||
Classifier: Programming Language :: Python :: 3.6
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Topic :: Text Processing :: Linguistic
|
||||
Classifier: Topic :: Utilities
|
||||
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||
Classifier: Typing :: Typed
|
||||
Requires-Python: >=3.5.0
|
||||
Description-Content-Type: text/markdown
|
||||
License-File: LICENSE
|
||||
Provides-Extra: unicode_backport
|
||||
Requires-Dist: unicodedata2 ; extra == 'unicode_backport'
|
||||
|
||||
|
||||
<h1 align="center">Charset Detection, for Everyone 👋 <a href="https://twitter.com/intent/tweet?text=The%20Real%20First%20Universal%20Charset%20%26%20Language%20Detector&url=https://www.github.com/Ousret/charset_normalizer&hashtags=python,encoding,chardet,developers"><img src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social"/></a></h1>
|
||||
|
||||
<p align="center">
|
||||
<sup>The Real First Universal Charset Detector</sup><br>
|
||||
<a href="https://pypi.org/project/charset-normalizer">
|
||||
<img src="https://img.shields.io/pypi/pyversions/charset_normalizer.svg?orange=blue" />
|
||||
</a>
|
||||
<a href="https://codecov.io/gh/Ousret/charset_normalizer">
|
||||
<img src="https://codecov.io/gh/Ousret/charset_normalizer/branch/master/graph/badge.svg" />
|
||||
</a>
|
||||
<a href="https://pepy.tech/project/charset-normalizer/">
|
||||
<img alt="Download Count Total" src="https://pepy.tech/badge/charset-normalizer" />
|
||||
</a>
|
||||
</p>
|
||||
|
||||
> A library that helps you read text from an unknown charset encoding.<br /> Motivated by `chardet`,
|
||||
> I'm trying to resolve the issue by taking a new approach.
|
||||
> All IANA character set names for which the Python core library provides codecs are supported.
|
||||
|
||||
<p align="center">
|
||||
>>>>> <a href="https://charsetnormalizerweb.ousret.now.sh" target="_blank">👉 Try Me Online Now, Then Adopt Me 👈 </a> <<<<<
|
||||
</p>
|
||||
|
||||
This project offers you an alternative to **Universal Charset Encoding Detector**, also known as **Chardet**.
|
||||
|
||||
| Feature | [Chardet](https://github.com/chardet/chardet) | Charset Normalizer | [cChardet](https://github.com/PyYoshi/cChardet) |
|
||||
| ------------- | :-------------: | :------------------: | :------------------: |
|
||||
| `Fast` | ❌<br> | ✅<br> | ✅ <br> |
|
||||
| `Universal**` | ❌ | ✅ | ❌ |
|
||||
| `Reliable` **without** distinguishable standards | ❌ | ✅ | ✅ |
|
||||
| `Reliable` **with** distinguishable standards | ✅ | ✅ | ✅ |
|
||||
| `Free & Open` | ✅ | ✅ | ✅ |
|
||||
| `License` | LGPL-2.1 | MIT | MPL-1.1
|
||||
| `Native Python` | ✅ | ✅ | ❌ |
|
||||
| `Detect spoken language` | ❌ | ✅ | N/A |
|
||||
| `Supported Encoding` | 30 | :tada: [93](https://charset-normalizer.readthedocs.io/en/latest/support.html) | 40
|
||||
|
||||
<p align="center">
|
||||
<img src="https://i.imgflip.com/373iay.gif" alt="Reading Normalized Text" width="226"/><img src="https://media.tenor.com/images/c0180f70732a18b4965448d33adba3d0/tenor.gif" alt="Cat Reading Text" width="200"/>
|
||||
|
||||
*\*\* : They are clearly using specific code for a specific encoding even if covering most of used one*<br>
|
||||
|
||||
## ⭐ Your support
|
||||
|
||||
*Fork, test-it, star-it, submit your ideas! We do listen.*
|
||||
|
||||
## ⚡ Performance
|
||||
|
||||
This package offer better performance than its counterpart Chardet. Here are some numbers.
|
||||
|
||||
| Package | Accuracy | Mean per file (ms) | File per sec (est) |
|
||||
| ------------- | :-------------: | :------------------: | :------------------: |
|
||||
| [chardet](https://github.com/chardet/chardet) | 92 % | 220 ms | 5 file/sec |
|
||||
| charset-normalizer | **98 %** | **40 ms** | 25 file/sec |
|
||||
|
||||
| Package | 99th percentile | 95th percentile | 50th percentile |
|
||||
| ------------- | :-------------: | :------------------: | :------------------: |
|
||||
| [chardet](https://github.com/chardet/chardet) | 1115 ms | 300 ms | 27 ms |
|
||||
| charset-normalizer | 460 ms | 240 ms | 18 ms |
|
||||
|
||||
Chardet's performance on larger file (1MB+) are very poor. Expect huge difference on large payload.
|
||||
|
||||
> Stats are generated using 400+ files using default parameters. More details on used files, see GHA workflows.
|
||||
> And yes, these results might change at any time. The dataset can be updated to include more files.
|
||||
> The actual delays heavily depends on your CPU capabilities. The factors should remain the same.
|
||||
|
||||
[cchardet](https://github.com/PyYoshi/cChardet) is a non-native (cpp binding) faster alternative. If speed is the most important factor,
|
||||
you should try it.
|
||||
|
||||
## ✨ Installation
|
||||
|
||||
Using PyPi for latest stable
|
||||
```sh
|
||||
pip install charset-normalizer -U
|
||||
```
|
||||
|
||||
If you want a more up-to-date `unicodedata` than the one available in your Python setup.
|
||||
```sh
|
||||
pip install charset-normalizer[unicode_backport] -U
|
||||
```
|
||||
|
||||
## 🚀 Basic Usage
|
||||
|
||||
### CLI
|
||||
This package comes with a CLI.
|
||||
|
||||
```
|
||||
usage: normalizer [-h] [-v] [-a] [-n] [-m] [-r] [-f] [-t THRESHOLD]
|
||||
file [file ...]
|
||||
|
||||
The Real First Universal Charset Detector. Discover originating encoding used
|
||||
on text file. Normalize text to unicode.
|
||||
|
||||
positional arguments:
|
||||
files File(s) to be analysed
|
||||
|
||||
optional arguments:
|
||||
-h, --help show this help message and exit
|
||||
-v, --verbose Display complementary information about file if any.
|
||||
Stdout will contain logs about the detection process.
|
||||
-a, --with-alternative
|
||||
Output complementary possibilities if any. Top-level
|
||||
JSON WILL be a list.
|
||||
-n, --normalize Permit to normalize input file. If not set, program
|
||||
does not write anything.
|
||||
-m, --minimal Only output the charset detected to STDOUT. Disabling
|
||||
JSON output.
|
||||
-r, --replace Replace file when trying to normalize it instead of
|
||||
creating a new one.
|
||||
-f, --force Replace file without asking if you are sure, use this
|
||||
flag with caution.
|
||||
-t THRESHOLD, --threshold THRESHOLD
|
||||
Define a custom maximum amount of chaos allowed in
|
||||
decoded content. 0. <= chaos <= 1.
|
||||
--version Show version information and exit.
|
||||
```
|
||||
|
||||
```bash
|
||||
normalizer ./data/sample.1.fr.srt
|
||||
```
|
||||
|
||||
:tada: Since version 1.4.0 the CLI produce easily usable stdout result in JSON format.
|
||||
|
||||
```json
|
||||
{
|
||||
"path": "/home/default/projects/charset_normalizer/data/sample.1.fr.srt",
|
||||
"encoding": "cp1252",
|
||||
"encoding_aliases": [
|
||||
"1252",
|
||||
"windows_1252"
|
||||
],
|
||||
"alternative_encodings": [
|
||||
"cp1254",
|
||||
"cp1256",
|
||||
"cp1258",
|
||||
"iso8859_14",
|
||||
"iso8859_15",
|
||||
"iso8859_16",
|
||||
"iso8859_3",
|
||||
"iso8859_9",
|
||||
"latin_1",
|
||||
"mbcs"
|
||||
],
|
||||
"language": "French",
|
||||
"alphabets": [
|
||||
"Basic Latin",
|
||||
"Latin-1 Supplement"
|
||||
],
|
||||
"has_sig_or_bom": false,
|
||||
"chaos": 0.149,
|
||||
"coherence": 97.152,
|
||||
"unicode_path": null,
|
||||
"is_preferred": true
|
||||
}
|
||||
```
|
||||
|
||||
### Python
|
||||
*Just print out normalized text*
|
||||
```python
|
||||
from charset_normalizer import from_path
|
||||
|
||||
results = from_path('./my_subtitle.srt')
|
||||
|
||||
print(str(results.best()))
|
||||
```
|
||||
|
||||
*Normalize any text file*
|
||||
```python
|
||||
from charset_normalizer import normalize
|
||||
try:
|
||||
normalize('./my_subtitle.srt') # should write to disk my_subtitle-***.srt
|
||||
except IOError as e:
|
||||
print('Sadly, we are unable to perform charset normalization.', str(e))
|
||||
```
|
||||
|
||||
*Upgrade your code without effort*
|
||||
```python
|
||||
from charset_normalizer import detect
|
||||
```
|
||||
|
||||
The above code will behave the same as **chardet**. We ensure that we offer the best (reasonable) BC result possible.
|
||||
|
||||
See the docs for advanced usage : [readthedocs.io](https://charset-normalizer.readthedocs.io/en/latest/)
|
||||
|
||||
## 😇 Why
|
||||
|
||||
When I started using Chardet, I noticed that it was not suited to my expectations, and I wanted to propose a
|
||||
reliable alternative using a completely different method. Also! I never back down on a good challenge!
|
||||
|
||||
I **don't care** about the **originating charset** encoding, because **two different tables** can
|
||||
produce **two identical rendered string.**
|
||||
What I want is to get readable text, the best I can.
|
||||
|
||||
In a way, **I'm brute forcing text decoding.** How cool is that ? 😎
|
||||
|
||||
Don't confuse package **ftfy** with charset-normalizer or chardet. ftfy goal is to repair unicode string whereas charset-normalizer to convert raw file in unknown encoding to unicode.
|
||||
|
||||
## 🍰 How
|
||||
|
||||
- Discard all charset encoding table that could not fit the binary content.
|
||||
- Measure chaos, or the mess once opened (by chunks) with a corresponding charset encoding.
|
||||
- Extract matches with the lowest mess detected.
|
||||
- Additionally, we measure coherence / probe for a language.
|
||||
|
||||
**Wait a minute**, what is chaos/mess and coherence according to **YOU ?**
|
||||
|
||||
*Chaos :* I opened hundred of text files, **written by humans**, with the wrong encoding table. **I observed**, then
|
||||
**I established** some ground rules about **what is obvious** when **it seems like** a mess.
|
||||
I know that my interpretation of what is chaotic is very subjective, feel free to contribute in order to
|
||||
improve or rewrite it.
|
||||
|
||||
*Coherence :* For each language there is on earth, we have computed ranked letter appearance occurrences (the best we can). So I thought
|
||||
that intel is worth something here. So I use those records against decoded text to check if I can detect intelligent design.
|
||||
|
||||
## ⚡ Known limitations
|
||||
|
||||
- Language detection is unreliable when text contains two or more languages sharing identical letters. (eg. HTML (english tags) + Turkish content (Sharing Latin characters))
|
||||
- Every charset detector heavily depends on sufficient content. In common cases, do not bother run detection on very tiny content.
|
||||
|
||||
## 👤 Contributing
|
||||
|
||||
Contributions, issues and feature requests are very much welcome.<br />
|
||||
Feel free to check [issues page](https://github.com/ousret/charset_normalizer/issues) if you want to contribute.
|
||||
|
||||
## 📝 License
|
||||
|
||||
Copyright © 2019 [Ahmed TAHRI @Ousret](https://github.com/Ousret).<br />
|
||||
This project is [MIT](https://github.com/Ousret/charset_normalizer/blob/master/LICENSE) licensed.
|
||||
|
||||
Characters frequencies used in this project © 2012 [Denny Vrandečić](http://simia.net/letters/)
|
||||
|
||||
|
@ -0,0 +1,33 @@
|
||||
../../Scripts/normalizer.exe,sha256=YcJOWpkWho1fYbNYhyuGRwcSAX4Cbi0usnePUc1H0Wc,106360
|
||||
charset_normalizer-2.0.7.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
charset_normalizer-2.0.7.dist-info/LICENSE,sha256=6zGgxaT7Cbik4yBV0lweX5w1iidS_vPNcgIT0cz-4kE,1070
|
||||
charset_normalizer-2.0.7.dist-info/METADATA,sha256=IBf9rYJsfiUkX_1wIFO3ABSfIPbgA-k1gqrq_VfypyY,11350
|
||||
charset_normalizer-2.0.7.dist-info/RECORD,,
|
||||
charset_normalizer-2.0.7.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
||||
charset_normalizer-2.0.7.dist-info/entry_points.txt,sha256=5AJq_EPtGGUwJPgQLnBZfbVr-FYCIwT0xP7dIEZO3NI,77
|
||||
charset_normalizer-2.0.7.dist-info/top_level.txt,sha256=7ASyzePr8_xuZWJsnqJjIBtyV8vhEo0wBCv1MPRRi3Q,19
|
||||
charset_normalizer/__init__.py,sha256=BVLv4gxL3YZ0xFHfrJacXqdV5YUm98fACgSaEtynXZc,1491
|
||||
charset_normalizer/__pycache__/__init__.cpython-37.pyc,,
|
||||
charset_normalizer/__pycache__/api.cpython-37.pyc,,
|
||||
charset_normalizer/__pycache__/cd.cpython-37.pyc,,
|
||||
charset_normalizer/__pycache__/constant.cpython-37.pyc,,
|
||||
charset_normalizer/__pycache__/legacy.cpython-37.pyc,,
|
||||
charset_normalizer/__pycache__/md.cpython-37.pyc,,
|
||||
charset_normalizer/__pycache__/models.cpython-37.pyc,,
|
||||
charset_normalizer/__pycache__/utils.cpython-37.pyc,,
|
||||
charset_normalizer/__pycache__/version.cpython-37.pyc,,
|
||||
charset_normalizer/api.py,sha256=aTYqVTGki22DYJDVqiUyEheBjwo2BKBQNJwa_7SU3KY,17092
|
||||
charset_normalizer/assets/__init__.py,sha256=FPnfk8limZRb8ZIUQcTvPEcbuM1eqOdWGw0vbWGycDs,25485
|
||||
charset_normalizer/assets/__pycache__/__init__.cpython-37.pyc,,
|
||||
charset_normalizer/cd.py,sha256=xdMt8glWp1uX84nBJMynjBqr4g951q0jTQ1BX82TJNE,11003
|
||||
charset_normalizer/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
charset_normalizer/cli/__pycache__/__init__.cpython-37.pyc,,
|
||||
charset_normalizer/cli/__pycache__/normalizer.cpython-37.pyc,,
|
||||
charset_normalizer/cli/normalizer.py,sha256=H_2C2e81PqNCmUaXuwBJ5Lir_l0wwzELSxjPXcUL9O4,9453
|
||||
charset_normalizer/constant.py,sha256=W4u2KeC-RBJP4jxfTK_rOHUERMnejoY21VhIeFOgQKw,19387
|
||||
charset_normalizer/legacy.py,sha256=XKeZOts_HdYQU_Jb3C9ZfOjY2CiUL132k9_nXer8gig,3384
|
||||
charset_normalizer/md.py,sha256=iCAG4l121wZfZIgJhEDROnAaLcGsvlLNjXMitEBfOZY,17164
|
||||
charset_normalizer/models.py,sha256=wObDc9qaxz85xkqh6UozTpL0lLkQuvklO47e81lR89E,13332
|
||||
charset_normalizer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
charset_normalizer/utils.py,sha256=6vfdA59u0VQD3_dDXf2B8viuUWPo9xIfKq4b0nXX6Mo,9026
|
||||
charset_normalizer/version.py,sha256=l3uyLlrnBh9G0hbagT5ZkEBPiFCyYfNhUn1Ea_qbRus,79
|
@ -0,0 +1,5 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.37.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
@ -0,0 +1,3 @@
|
||||
[console_scripts]
|
||||
normalizer = charset_normalizer.cli.normalizer:cli_detect
|
||||
|
@ -0,0 +1 @@
|
||||
charset_normalizer
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
pip
|
@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2013-2021, Kim Davies
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@ -0,0 +1,236 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: idna
|
||||
Version: 3.3
|
||||
Summary: Internationalized Domain Names in Applications (IDNA)
|
||||
Home-page: https://github.com/kjd/idna
|
||||
Author: Kim Davies
|
||||
Author-email: kim@cynosure.com.au
|
||||
License: BSD-3-Clause
|
||||
Platform: UNKNOWN
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Intended Audience :: System Administrators
|
||||
Classifier: License :: OSI Approved :: BSD License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Classifier: Programming Language :: Python :: 3.5
|
||||
Classifier: Programming Language :: Python :: 3.6
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||
Classifier: Topic :: Internet :: Name Service (DNS)
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Classifier: Topic :: Utilities
|
||||
Requires-Python: >=3.5
|
||||
License-File: LICENSE.md
|
||||
|
||||
Internationalized Domain Names in Applications (IDNA)
|
||||
=====================================================
|
||||
|
||||
Support for the Internationalised Domain Names in Applications
|
||||
(IDNA) protocol as specified in `RFC 5891 <https://tools.ietf.org/html/rfc5891>`_.
|
||||
This is the latest version of the protocol and is sometimes referred to as
|
||||
“IDNA 2008”.
|
||||
|
||||
This library also provides support for Unicode Technical Standard 46,
|
||||
`Unicode IDNA Compatibility Processing <https://unicode.org/reports/tr46/>`_.
|
||||
|
||||
This acts as a suitable replacement for the “encodings.idna” module that
|
||||
comes with the Python standard library, but which only supports the
|
||||
older superseded IDNA specification (`RFC 3490 <https://tools.ietf.org/html/rfc3490>`_).
|
||||
|
||||
Basic functions are simply executed:
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> import idna
|
||||
>>> idna.encode('ドメイン.テスト')
|
||||
b'xn--eckwd4c7c.xn--zckzah'
|
||||
>>> print(idna.decode('xn--eckwd4c7c.xn--zckzah'))
|
||||
ドメイン.テスト
|
||||
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
To install this library, you can use pip:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ pip install idna
|
||||
|
||||
Alternatively, you can install the package using the bundled setup script:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ python setup.py install
|
||||
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
For typical usage, the ``encode`` and ``decode`` functions will take a domain
|
||||
name argument and perform a conversion to A-labels or U-labels respectively.
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> import idna
|
||||
>>> idna.encode('ドメイン.テスト')
|
||||
b'xn--eckwd4c7c.xn--zckzah'
|
||||
>>> print(idna.decode('xn--eckwd4c7c.xn--zckzah'))
|
||||
ドメイン.テスト
|
||||
|
||||
You may use the codec encoding and decoding methods using the
|
||||
``idna.codec`` module:
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> import idna.codec
|
||||
>>> print('домен.испытание'.encode('idna'))
|
||||
b'xn--d1acufc.xn--80akhbyknj4f'
|
||||
>>> print(b'xn--d1acufc.xn--80akhbyknj4f'.decode('idna'))
|
||||
домен.испытание
|
||||
|
||||
Conversions can be applied at a per-label basis using the ``ulabel`` or ``alabel``
|
||||
functions if necessary:
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> idna.alabel('测试')
|
||||
b'xn--0zwm56d'
|
||||
|
||||
Compatibility Mapping (UTS #46)
|
||||
+++++++++++++++++++++++++++++++
|
||||
|
||||
As described in `RFC 5895 <https://tools.ietf.org/html/rfc5895>`_, the IDNA
|
||||
specification does not normalize input from different potential ways a user
|
||||
may input a domain name. This functionality, known as a “mapping”, is
|
||||
considered by the specification to be a local user-interface issue distinct
|
||||
from IDNA conversion functionality.
|
||||
|
||||
This library provides one such mapping, that was developed by the Unicode
|
||||
Consortium. Known as `Unicode IDNA Compatibility Processing <https://unicode.org/reports/tr46/>`_,
|
||||
it provides for both a regular mapping for typical applications, as well as
|
||||
a transitional mapping to help migrate from older IDNA 2003 applications.
|
||||
|
||||
For example, “Königsgäßchen” is not a permissible label as *LATIN CAPITAL
|
||||
LETTER K* is not allowed (nor are capital letters in general). UTS 46 will
|
||||
convert this into lower case prior to applying the IDNA conversion.
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> import idna
|
||||
>>> idna.encode('Königsgäßchen')
|
||||
...
|
||||
idna.core.InvalidCodepoint: Codepoint U+004B at position 1 of 'Königsgäßchen' not allowed
|
||||
>>> idna.encode('Königsgäßchen', uts46=True)
|
||||
b'xn--knigsgchen-b4a3dun'
|
||||
>>> print(idna.decode('xn--knigsgchen-b4a3dun'))
|
||||
königsgäßchen
|
||||
|
||||
Transitional processing provides conversions to help transition from the older
|
||||
2003 standard to the current standard. For example, in the original IDNA
|
||||
specification, the *LATIN SMALL LETTER SHARP S* (ß) was converted into two
|
||||
*LATIN SMALL LETTER S* (ss), whereas in the current IDNA specification this
|
||||
conversion is not performed.
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> idna.encode('Königsgäßchen', uts46=True, transitional=True)
|
||||
'xn--knigsgsschen-lcb0w'
|
||||
|
||||
Implementors should use transitional processing with caution, only in rare
|
||||
cases where conversion from legacy labels to current labels must be performed
|
||||
(i.e. IDNA implementations that pre-date 2008). For typical applications
|
||||
that just need to convert labels, transitional processing is unlikely to be
|
||||
beneficial and could produce unexpected incompatible results.
|
||||
|
||||
``encodings.idna`` Compatibility
|
||||
++++++++++++++++++++++++++++++++
|
||||
|
||||
Function calls from the Python built-in ``encodings.idna`` module are
|
||||
mapped to their IDNA 2008 equivalents using the ``idna.compat`` module.
|
||||
Simply substitute the ``import`` clause in your code to refer to the
|
||||
new module name.
|
||||
|
||||
Exceptions
|
||||
----------
|
||||
|
||||
All errors raised during the conversion following the specification should
|
||||
raise an exception derived from the ``idna.IDNAError`` base class.
|
||||
|
||||
More specific exceptions that may be generated as ``idna.IDNABidiError``
|
||||
when the error reflects an illegal combination of left-to-right and
|
||||
right-to-left characters in a label; ``idna.InvalidCodepoint`` when
|
||||
a specific codepoint is an illegal character in an IDN label (i.e.
|
||||
INVALID); and ``idna.InvalidCodepointContext`` when the codepoint is
|
||||
illegal based on its positional context (i.e. it is CONTEXTO or CONTEXTJ
|
||||
but the contextual requirements are not satisfied.)
|
||||
|
||||
Building and Diagnostics
|
||||
------------------------
|
||||
|
||||
The IDNA and UTS 46 functionality relies upon pre-calculated lookup
|
||||
tables for performance. These tables are derived from computing against
|
||||
eligibility criteria in the respective standards. These tables are
|
||||
computed using the command-line script ``tools/idna-data``.
|
||||
|
||||
This tool will fetch relevant codepoint data from the Unicode repository
|
||||
and perform the required calculations to identify eligibility. There are
|
||||
three main modes:
|
||||
|
||||
* ``idna-data make-libdata``. Generates ``idnadata.py`` and ``uts46data.py``,
|
||||
the pre-calculated lookup tables using for IDNA and UTS 46 conversions. Implementors
|
||||
who wish to track this library against a different Unicode version may use this tool
|
||||
to manually generate a different version of the ``idnadata.py`` and ``uts46data.py``
|
||||
files.
|
||||
|
||||
* ``idna-data make-table``. Generate a table of the IDNA disposition
|
||||
(e.g. PVALID, CONTEXTJ, CONTEXTO) in the format found in Appendix B.1 of RFC
|
||||
5892 and the pre-computed tables published by `IANA <https://www.iana.org/>`_.
|
||||
|
||||
* ``idna-data U+0061``. Prints debugging output on the various properties
|
||||
associated with an individual Unicode codepoint (in this case, U+0061), that are
|
||||
used to assess the IDNA and UTS 46 status of a codepoint. This is helpful in debugging
|
||||
or analysis.
|
||||
|
||||
The tool accepts a number of arguments, described using ``idna-data -h``. Most notably,
|
||||
the ``--version`` argument allows the specification of the version of Unicode to use
|
||||
in computing the table data. For example, ``idna-data --version 9.0.0 make-libdata``
|
||||
will generate library data against Unicode 9.0.0.
|
||||
|
||||
|
||||
Additional Notes
|
||||
----------------
|
||||
|
||||
* **Packages**. The latest tagged release version is published in the
|
||||
`Python Package Index <https://pypi.org/project/idna/>`_.
|
||||
|
||||
* **Version support**. This library supports Python 3.5 and higher. As this library
|
||||
serves as a low-level toolkit for a variety of applications, many of which strive
|
||||
for broad compatibility with older Python versions, there is no rush to remove
|
||||
older intepreter support. Removing support for older versions should be well
|
||||
justified in that the maintenance burden has become too high.
|
||||
|
||||
* **Python 2**. Python 2 is supported by version 2.x of this library. While active
|
||||
development of the version 2.x series has ended, notable issues being corrected
|
||||
may be backported to 2.x. Use "idna<3" in your requirements file if you need this
|
||||
library for a Python 2 application.
|
||||
|
||||
* **Testing**. The library has a test suite based on each rule of the IDNA specification, as
|
||||
well as tests that are provided as part of the Unicode Technical Standard 46,
|
||||
`Unicode IDNA Compatibility Processing <https://unicode.org/reports/tr46/>`_.
|
||||
|
||||
* **Emoji**. It is an occasional request to support emoji domains in this library. Encoding
|
||||
of symbols like emoji is expressly prohibited by the technical standard IDNA 2008 and
|
||||
emoji domains are broadly phased out across the domain industry due to associated security
|
||||
risks. For now, applications that wish need to support these non-compliant labels may
|
||||
wish to consider trying the encode/decode operation in this library first, and then falling
|
||||
back to using `encodings.idna`. See `the Github project <https://github.com/kjd/idna/issues/18>`_
|
||||
for more discussion.
|
||||
|
@ -0,0 +1,23 @@
|
||||
idna-3.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
idna-3.3.dist-info/LICENSE.md,sha256=otbk2UC9JNvnuWRc3hmpeSzFHbeuDVrNMBrIYMqj6DY,1523
|
||||
idna-3.3.dist-info/METADATA,sha256=BdqiAf8ou4x1nzIHp2_sDfXWjl7BrSUGpOeVzbYHQuQ,9765
|
||||
idna-3.3.dist-info/RECORD,,
|
||||
idna-3.3.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
||||
idna-3.3.dist-info/top_level.txt,sha256=jSag9sEDqvSPftxOQy-ABfGV_RSy7oFh4zZJpODV8k0,5
|
||||
idna/__init__.py,sha256=KJQN1eQBr8iIK5SKrJ47lXvxG0BJ7Lm38W4zT0v_8lk,849
|
||||
idna/__pycache__/__init__.cpython-37.pyc,,
|
||||
idna/__pycache__/codec.cpython-37.pyc,,
|
||||
idna/__pycache__/compat.cpython-37.pyc,,
|
||||
idna/__pycache__/core.cpython-37.pyc,,
|
||||
idna/__pycache__/idnadata.cpython-37.pyc,,
|
||||
idna/__pycache__/intranges.cpython-37.pyc,,
|
||||
idna/__pycache__/package_data.cpython-37.pyc,,
|
||||
idna/__pycache__/uts46data.cpython-37.pyc,,
|
||||
idna/codec.py,sha256=6ly5odKfqrytKT9_7UrlGklHnf1DSK2r9C6cSM4sa28,3374
|
||||
idna/compat.py,sha256=0_sOEUMT4CVw9doD3vyRhX80X19PwqFoUBs7gWsFME4,321
|
||||
idna/core.py,sha256=RFIkY-HhFZaDoBEFjGwyGd_vWI04uOAQjnzueMWqwOU,12795
|
||||
idna/idnadata.py,sha256=fzMzkCea2xieVxcrjngJ-2pLsKQNejPCZFlBajIuQdw,44025
|
||||
idna/intranges.py,sha256=YBr4fRYuWH7kTKS2tXlFjM24ZF1Pdvcir-aywniInqg,1881
|
||||
idna/package_data.py,sha256=szxQhV0ZD0nKJ84Kuobw3l8q4_KeCyXjFRdpwIpKZmw,21
|
||||
idna/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
idna/uts46data.py,sha256=o-D7V-a0fOLZNd7tvxof6MYfUd0TBZzE2bLR5XO67xU,204400
|
@ -0,0 +1,5 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.37.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
@ -0,0 +1 @@
|
||||
idna
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,245 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: pyftpdlib
|
||||
Version: 1.5.6
|
||||
Summary: Very fast asynchronous FTP server library
|
||||
Home-page: https://github.com/giampaolo/pyftpdlib/
|
||||
Author: Giampaolo Rodola'
|
||||
Author-email: g.rodola@gmail.com
|
||||
License: MIT
|
||||
Description: .. image:: http://pepy.tech/badge/pyftpdlib
|
||||
:target: http://pepy.tech/project/pyftpdlib
|
||||
:alt: Downloads
|
||||
|
||||
.. image:: https://img.shields.io/travis/giampaolo/pyftpdlib/master.svg?maxAge=3600&label=Linux%20/%20OSX
|
||||
:target: https://travis-ci.org/giampaolo/pyftpdlib
|
||||
:alt: Linux tests (Travis)
|
||||
|
||||
.. image:: https://img.shields.io/appveyor/ci/giampaolo/pyftpdlib/master.svg?maxAge=3600&label=Windows
|
||||
:target: https://ci.appveyor.com/project/giampaolo/pyftpdlib
|
||||
:alt: Windows tests (Appveyor)
|
||||
|
||||
.. image:: https://coveralls.io/repos/github/giampaolo/pyftpdlib/badge.svg?branch=master
|
||||
:target: https://coveralls.io/github/giampaolo/pyftpdlib?branch=master
|
||||
:alt: Test coverage (coverall.io)
|
||||
|
||||
.. image:: https://readthedocs.org/projects/pyftpdlib/badge/?version=latest
|
||||
:target: http://pyftpdlib.readthedocs.io/en/latest/?badge=latest
|
||||
:alt: Documentation Status
|
||||
|
||||
.. image:: https://img.shields.io/pypi/v/pyftpdlib.svg?label=pypi
|
||||
:target: https://pypi.python.org/pypi/pyftpdlib/
|
||||
:alt: Latest version
|
||||
|
||||
.. image:: https://img.shields.io/github/stars/giampaolo/pyftpdlib.svg
|
||||
:target: https://github.com/giampaolo/pyftpdlib/
|
||||
:alt: Github stars
|
||||
|
||||
.. image:: https://img.shields.io/pypi/l/pyftpdlib.svg
|
||||
:target: https://pypi.python.org/pypi/pyftpdlib/
|
||||
:alt: License
|
||||
|
||||
Quick links
|
||||
===========
|
||||
|
||||
- `Home <https://github.com/giampaolo/pyftpdlib>`__
|
||||
- `Documentation <http://pyftpdlib.readthedocs.io>`__
|
||||
- `Download <https://pypi.python.org/pypi/pyftpdlib/>`__
|
||||
- `Blog <http://grodola.blogspot.com/search/label/pyftpdlib>`__
|
||||
- `Mailing list <http://groups.google.com/group/pyftpdlib/topics>`__
|
||||
- `What's new <https://github.com/giampaolo/pyftpdlib/blob/master/HISTORY.rst>`__
|
||||
|
||||
About
|
||||
=====
|
||||
|
||||
Python FTP server library provides a high-level portable interface to easily
|
||||
write very efficient, scalable and asynchronous FTP servers with Python. It is
|
||||
the most complete `RFC-959 <http://www.faqs.org/rfcs/rfc959.html>`__ FTP server
|
||||
implementation available for `Python <http://www.python.org/>`__ programming
|
||||
language and it's used in projects like
|
||||
`Google Chromium <http://www.code.google.com/chromium/>`__ and
|
||||
`Bazaar <http://bazaar-vcs.org/>`__ and included in
|
||||
`Debian <http://packages.debian.org/sid/python-pyftpdlib>`__,
|
||||
`Fedora <https://admin.fedoraproject.org/pkgdb/packages/name/pyftpdlib>`__ and
|
||||
`FreeBSD <http://www.freshports.org/ftp/py-pyftpdlib/>`__ package repositories.
|
||||
|
||||
Features
|
||||
========
|
||||
|
||||
- Extremely **lightweight**, **fast** and **scalable** (see
|
||||
`why <https://github.com/giampaolo/pyftpdlib/issues/203>`__ and
|
||||
`benchmarks <http://pyftpdlib.readthedocs.io/en/latest/benchmarks.html>`__).
|
||||
- Uses **sendfile(2)** (see `pysendfile <https://github.com/giampaolo/pysendfile>`__)
|
||||
system call for uploads.
|
||||
- Uses epoll() / kqueue() / select() to handle concurrency asynchronously.
|
||||
- ...But can optionally skip to a
|
||||
`multiple thread / process <http://pyftpdlib.readthedocs.io/en/latest/tutorial.html#changing-the-concurrency-model>`__
|
||||
model (as in: you'll be free to block or use slow filesystems).
|
||||
- Portable: entirely written in pure Python; works with Python from **2.6** to
|
||||
**3.5** by using a single code base.
|
||||
- Supports **FTPS** (`RFC-4217 <http://tools.ietf.org/html/rfc4217>`__),
|
||||
**IPv6** (`RFC-2428 <ftp://ftp.rfc-editor.org/in-notes/rfc2428.txt>`__),
|
||||
**Unicode** file names (`RFC-2640 <http://tools.ietf.org/html/rfc2640>`__),
|
||||
**MLSD/MLST** commands (`RFC-3659 <ftp://ftp.rfc-editor.org/in-notes/rfc3659.txt>`__).
|
||||
- Support for virtual users and virtual filesystem.
|
||||
- Extremely flexible system of "authorizers" able to manage both "virtual" and
|
||||
"real" users on on both
|
||||
`UNIX <http://pyftpdlib.readthedocs.io/en/latest/tutorial.html#unix-ftp-server>`__
|
||||
and
|
||||
`Windows <http://pyftpdlib.readthedocs.io/en/latest/tutorial.html#windows-ftp-server>`__.
|
||||
- `Test coverage <https://github.com/giampaolo/pyftpdlib/blob/master/pyftpdlib/test/>`__
|
||||
close to 100%.
|
||||
|
||||
Performances
|
||||
============
|
||||
|
||||
Despite being written in an intepreted language, pyftpdlib has transfer rates
|
||||
superior to most common UNIX FTP servers. It also scales better since whereas
|
||||
vsftpd and proftpd use multiple processes to achieve concurrency, pyftpdlib
|
||||
will only use one process and handle concurrency asynchronously (see
|
||||
`the C10K problem <http://www.kegel.com/c10k.html>`__). Here are some
|
||||
`benchmarks <https://github.com/giampaolo/pyftpdlib/blob/master/scripts/ftpbench>`__
|
||||
made against my Linux 3.0.0 box, Intel core-duo 3.1 Ghz:
|
||||
|
||||
pyftpdlib vs. proftpd 1.3.4
|
||||
---------------------------
|
||||
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| **benchmark type** | **pyftpdlib** | **proftpd** | **speedup** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| STOR (client -> server) | 585.90 MB/sec | 600.49 MB/sec | -0.02x |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| RETR (server -> client) | 1652.72 MB/sec | 1524.05 MB/sec | **+0.08** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| 300 concurrent clients (connect, login) | 0.19 secs | 9.98 secs | **+51x** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| STOR (1 file with 300 idle clients) | 585.59 MB/sec | 518.55 MB/sec | **+0.1x** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| RETR (1 file with 300 idle clients) | 1497.58 MB/sec | 1478.19 MB/sec | 0x |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| 300 concurrent clients (RETR 10M file) | 3.41 secs | 3.60 secs | **+0.05x** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| 300 concurrent clients (STOR 10M file) | 8.60 secs | 11.56 secs | **+0.3x** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| 300 concurrent clients (QUIT) | 0.03 secs | 0.39 secs | **+12x** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
|
||||
pyftpdlib vs. vsftpd 2.3.5
|
||||
--------------------------
|
||||
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| **benchmark type** | **pyftpdlib** | **vsftpd** | **speedup** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| STOR (client -> server) | 585.90 MB/sec | 611.73 MB/sec | -0.04x |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| RETR (server -> client) | 1652.72 MB/sec | 1512.92 MB/sec | **+0.09** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| 300 concurrent clients (connect, login) | 0.19 secs | 20.39 secs | **+106x** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| STOR (1 file with 300 idle clients) | 585.59 MB/sec | 610.23 MB/sec | -0.04x |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| RETR (1 file with 300 idle clients) | 1497.58 MB/sec | 1493.01 MB/sec | 0x |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| 300 concurrent clients (RETR 10M file) | 3.41 secs | 3.67 secs | **+0.07x** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| 300 concurrent clients (STOR 10M file) | 8.60 secs | 9.82 secs | **+0.07x** |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
| 300 concurrent clients (QUIT) | 0.03 secs | 0.01 secs | +0.14x |
|
||||
+-----------------------------------------+----------------+----------------+-------------+
|
||||
|
||||
For more benchmarks see `here <http://pyftpdlib.readthedocs.io/en/latest/benchmarks.html>`__.
|
||||
|
||||
Quick start
|
||||
===========
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> from pyftpdlib.authorizers import DummyAuthorizer
|
||||
>>> from pyftpdlib.handlers import FTPHandler
|
||||
>>> from pyftpdlib.servers import FTPServer
|
||||
>>>
|
||||
>>> authorizer = DummyAuthorizer()
|
||||
>>> authorizer.add_user("user", "12345", "/home/giampaolo", perm="elradfmwMT")
|
||||
>>> authorizer.add_anonymous("/home/nobody")
|
||||
>>>
|
||||
>>> handler = FTPHandler
|
||||
>>> handler.authorizer = authorizer
|
||||
>>>
|
||||
>>> server = FTPServer(("127.0.0.1", 21), handler)
|
||||
>>> server.serve_forever()
|
||||
[I 13-02-19 10:55:42] >>> starting FTP server on 127.0.0.1:21 <<<
|
||||
[I 13-02-19 10:55:42] poller: <class 'pyftpdlib.ioloop.Epoll'>
|
||||
[I 13-02-19 10:55:42] masquerade (NAT) address: None
|
||||
[I 13-02-19 10:55:42] passive ports: None
|
||||
[I 13-02-19 10:55:42] use sendfile(2): True
|
||||
[I 13-02-19 10:55:45] 127.0.0.1:34178-[] FTP session opened (connect)
|
||||
[I 13-02-19 10:55:48] 127.0.0.1:34178-[user] USER 'user' logged in.
|
||||
[I 13-02-19 10:56:27] 127.0.0.1:34179-[user] RETR /home/giampaolo/.vimrc completed=1 bytes=1700 seconds=0.001
|
||||
[I 13-02-19 10:56:39] 127.0.0.1:34179-[user] FTP session closed (disconnect).
|
||||
|
||||
`other code samples <http://pyftpdlib.readthedocs.io/en/latest/tutorial.html>`__
|
||||
|
||||
Donate
|
||||
======
|
||||
|
||||
A lot of time and effort went into making pyftpdlib as it is right now.
|
||||
If you feel pyftpdlib is useful to you or your business and want to support its
|
||||
future development please consider donating me
|
||||
(`Giampaolo Rodola' <http://grodola.blogspot.com/p/about.html>`_) some money.
|
||||
I only ask for a small donation, but of course I appreciate any amount.
|
||||
|
||||
.. image:: https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif
|
||||
:target: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZSSF7G42VA2XE
|
||||
:alt: Donate via PayPal
|
||||
|
||||
Don't want to donate money? Then maybe you could
|
||||
`write me a recommendation on Linkedin <http://www.linkedin.com/in/grodola>`_.
|
||||
In case you're using pyftpdlib into a software of yours
|
||||
`mail me <http://grodola.blogspot.com/p/about.html>`_ and I'll add your
|
||||
software to the
|
||||
`adoptions list <http://pyftpdlib.readthedocs.io/en/latest/adoptions.html>`__.
|
||||
|
||||
Trademarks
|
||||
==========
|
||||
|
||||
Some famous trademarks which adopted pyftpdlib (`complete list <http://pyftpdlib.readthedocs.io/en/latest/adoptions.html>`__).
|
||||
|
||||
.. image:: docs/images/chrome.jpg
|
||||
:target: http://www.google.com/chrome
|
||||
.. image:: docs/images/debian.png
|
||||
:target: http://www.debian.org
|
||||
.. image:: docs/images/fedora.png
|
||||
:target: http://fedoraproject.org/
|
||||
.. image:: docs/images/freebsd.gif
|
||||
:target: http://www.freebsd.org
|
||||
.. image:: docs/images/openerp.jpg
|
||||
:target: http://openerp.com
|
||||
.. image:: docs/images/bazaar.jpg
|
||||
:target: http://bazaar-vcs.org
|
||||
.. image:: docs/images/bitsontherun.png
|
||||
:target: http://www.bitsontherun.com
|
||||
.. image:: docs/images/openvms.png
|
||||
:target: http://www.openvms.org/
|
||||
.. image:: docs/images/smartfile.png
|
||||
:target: https://www.smartfile.com/
|
||||
|
||||
Keywords: ftp,ftps,server,ftpd,daemon,python,ssl,sendfile,asynchronous,nonblocking,eventdriven,rfc959,rfc1123,rfc2228,rfc2428,rfc2640,rfc3659
|
||||
Platform: Platform Independent
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Environment :: Console
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Intended Audience :: System Administrators
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Topic :: Internet :: File Transfer Protocol (FTP)
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Classifier: Topic :: System :: Filesystems
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 2
|
||||
Classifier: Programming Language :: Python :: 2.6
|
||||
Classifier: Programming Language :: Python :: 2.7
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.4
|
||||
Classifier: Programming Language :: Python :: 3.5
|
||||
Classifier: Programming Language :: Python :: 3.6
|
||||
Provides-Extra: ssl
|
@ -0,0 +1,67 @@
|
||||
.coveragerc
|
||||
.git-pre-commit
|
||||
.gitignore
|
||||
CREDITS
|
||||
HISTORY.rst
|
||||
LICENSE
|
||||
MANIFEST.in
|
||||
Makefile
|
||||
README.rst
|
||||
make.bat
|
||||
setup.cfg
|
||||
setup.py
|
||||
tox.ini
|
||||
demo/anti_flood_ftpd.py
|
||||
demo/basic_ftpd.py
|
||||
demo/keycert.pem
|
||||
demo/md5_ftpd.py
|
||||
demo/multi_proc_ftp.py
|
||||
demo/multi_thread_ftp.py
|
||||
demo/throttled_ftpd.py
|
||||
demo/tls_ftpd.py
|
||||
demo/unix_daemon.py
|
||||
demo/unix_ftpd.py
|
||||
demo/winnt_ftpd.py
|
||||
docs/Makefile
|
||||
docs/README
|
||||
docs/adoptions.rst
|
||||
docs/api.rst
|
||||
docs/benchmarks.rst
|
||||
docs/conf.py
|
||||
docs/faqs.rst
|
||||
docs/index.rst
|
||||
docs/install.rst
|
||||
docs/make.bat
|
||||
docs/rfc-compliance.rst
|
||||
docs/tutorial.rst
|
||||
docs/images/freebsd.gif
|
||||
pyftpdlib/__init__.py
|
||||
pyftpdlib/__main__.py
|
||||
pyftpdlib/_compat.py
|
||||
pyftpdlib/authorizers.py
|
||||
pyftpdlib/filesystems.py
|
||||
pyftpdlib/handlers.py
|
||||
pyftpdlib/ioloop.py
|
||||
pyftpdlib/log.py
|
||||
pyftpdlib/prefork.py
|
||||
pyftpdlib/servers.py
|
||||
pyftpdlib.egg-info/PKG-INFO
|
||||
pyftpdlib.egg-info/SOURCES.txt
|
||||
pyftpdlib.egg-info/dependency_links.txt
|
||||
pyftpdlib.egg-info/requires.txt
|
||||
pyftpdlib.egg-info/top_level.txt
|
||||
pyftpdlib/test/README
|
||||
pyftpdlib/test/__init__.py
|
||||
pyftpdlib/test/__main__.py
|
||||
pyftpdlib/test/keycert.pem
|
||||
pyftpdlib/test/runner.py
|
||||
pyftpdlib/test/test_authorizers.py
|
||||
pyftpdlib/test/test_filesystems.py
|
||||
pyftpdlib/test/test_functional.py
|
||||
pyftpdlib/test/test_functional_ssl.py
|
||||
pyftpdlib/test/test_ioloop.py
|
||||
pyftpdlib/test/test_misc.py
|
||||
pyftpdlib/test/test_servers.py
|
||||
scripts/ftpbench
|
||||
scripts/generate_manifest.py
|
||||
scripts/print_announce.py
|
@ -0,0 +1,48 @@
|
||||
..\..\..\Scripts\ftpbench
|
||||
..\pyftpdlib\__init__.py
|
||||
..\pyftpdlib\__main__.py
|
||||
..\pyftpdlib\__pycache__\__init__.cpython-37.pyc
|
||||
..\pyftpdlib\__pycache__\__main__.cpython-37.pyc
|
||||
..\pyftpdlib\__pycache__\_compat.cpython-37.pyc
|
||||
..\pyftpdlib\__pycache__\authorizers.cpython-37.pyc
|
||||
..\pyftpdlib\__pycache__\filesystems.cpython-37.pyc
|
||||
..\pyftpdlib\__pycache__\handlers.cpython-37.pyc
|
||||
..\pyftpdlib\__pycache__\ioloop.cpython-37.pyc
|
||||
..\pyftpdlib\__pycache__\log.cpython-37.pyc
|
||||
..\pyftpdlib\__pycache__\prefork.cpython-37.pyc
|
||||
..\pyftpdlib\__pycache__\servers.cpython-37.pyc
|
||||
..\pyftpdlib\_compat.py
|
||||
..\pyftpdlib\authorizers.py
|
||||
..\pyftpdlib\filesystems.py
|
||||
..\pyftpdlib\handlers.py
|
||||
..\pyftpdlib\ioloop.py
|
||||
..\pyftpdlib\log.py
|
||||
..\pyftpdlib\prefork.py
|
||||
..\pyftpdlib\servers.py
|
||||
..\pyftpdlib\test\README
|
||||
..\pyftpdlib\test\__init__.py
|
||||
..\pyftpdlib\test\__main__.py
|
||||
..\pyftpdlib\test\__pycache__\__init__.cpython-37.pyc
|
||||
..\pyftpdlib\test\__pycache__\__main__.cpython-37.pyc
|
||||
..\pyftpdlib\test\__pycache__\runner.cpython-37.pyc
|
||||
..\pyftpdlib\test\__pycache__\test_authorizers.cpython-37.pyc
|
||||
..\pyftpdlib\test\__pycache__\test_filesystems.cpython-37.pyc
|
||||
..\pyftpdlib\test\__pycache__\test_functional.cpython-37.pyc
|
||||
..\pyftpdlib\test\__pycache__\test_functional_ssl.cpython-37.pyc
|
||||
..\pyftpdlib\test\__pycache__\test_ioloop.cpython-37.pyc
|
||||
..\pyftpdlib\test\__pycache__\test_misc.cpython-37.pyc
|
||||
..\pyftpdlib\test\__pycache__\test_servers.cpython-37.pyc
|
||||
..\pyftpdlib\test\keycert.pem
|
||||
..\pyftpdlib\test\runner.py
|
||||
..\pyftpdlib\test\test_authorizers.py
|
||||
..\pyftpdlib\test\test_filesystems.py
|
||||
..\pyftpdlib\test\test_functional.py
|
||||
..\pyftpdlib\test\test_functional_ssl.py
|
||||
..\pyftpdlib\test\test_ioloop.py
|
||||
..\pyftpdlib\test\test_misc.py
|
||||
..\pyftpdlib\test\test_servers.py
|
||||
PKG-INFO
|
||||
SOURCES.txt
|
||||
dependency_links.txt
|
||||
requires.txt
|
||||
top_level.txt
|
@ -0,0 +1,3 @@
|
||||
|
||||
[ssl]
|
||||
PyOpenSSL
|
@ -0,0 +1 @@
|
||||
pyftpdlib
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
pip
|
@ -0,0 +1,175 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
@ -0,0 +1,43 @@
|
||||
requests-2.26.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
requests-2.26.0.dist-info/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
|
||||
requests-2.26.0.dist-info/METADATA,sha256=hWaDQ1HOaMvAc-KaJFZgv1-fov-CKxGSwEIsZGhiBB8,4753
|
||||
requests-2.26.0.dist-info/RECORD,,
|
||||
requests-2.26.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
requests-2.26.0.dist-info/WHEEL,sha256=Z-nyYpwrcSqxfdux5Mbn_DQ525iP7J2DG3JgGvOYyTQ,110
|
||||
requests-2.26.0.dist-info/top_level.txt,sha256=fMSVmHfb5rbGOo6xv-O_tUX6j-WyixssE-SnwcDRxNQ,9
|
||||
requests/__init__.py,sha256=h2SCZm8MM-UeAS48UuY7Lz97fEqsma6g6oVsKUi0eyw,4907
|
||||
requests/__pycache__/__init__.cpython-37.pyc,,
|
||||
requests/__pycache__/__version__.cpython-37.pyc,,
|
||||
requests/__pycache__/_internal_utils.cpython-37.pyc,,
|
||||
requests/__pycache__/adapters.cpython-37.pyc,,
|
||||
requests/__pycache__/api.cpython-37.pyc,,
|
||||
requests/__pycache__/auth.cpython-37.pyc,,
|
||||
requests/__pycache__/certs.cpython-37.pyc,,
|
||||
requests/__pycache__/compat.cpython-37.pyc,,
|
||||
requests/__pycache__/cookies.cpython-37.pyc,,
|
||||
requests/__pycache__/exceptions.cpython-37.pyc,,
|
||||
requests/__pycache__/help.cpython-37.pyc,,
|
||||
requests/__pycache__/hooks.cpython-37.pyc,,
|
||||
requests/__pycache__/models.cpython-37.pyc,,
|
||||
requests/__pycache__/packages.cpython-37.pyc,,
|
||||
requests/__pycache__/sessions.cpython-37.pyc,,
|
||||
requests/__pycache__/status_codes.cpython-37.pyc,,
|
||||
requests/__pycache__/structures.cpython-37.pyc,,
|
||||
requests/__pycache__/utils.cpython-37.pyc,,
|
||||
requests/__version__.py,sha256=PZEyPTSIN_jRIAIB51wV7pw81m3qAw0InSR7OrKZUnE,441
|
||||
requests/_internal_utils.py,sha256=Zx3PnEUccyfsB-ie11nZVAW8qClJy0gx1qNME7rgT18,1096
|
||||
requests/adapters.py,sha256=WelSM1BCQXdbjEuDsBxqKDADeY8BHmxlrwbNnLN2rr4,21344
|
||||
requests/api.py,sha256=hjuoP79IAEmX6Dysrw8t032cLfwLHxbI_wM4gC5G9t0,6402
|
||||
requests/auth.py,sha256=OMoJIVKyRLy9THr91y8rxysZuclwPB-K1Xg1zBomUhQ,10207
|
||||
requests/certs.py,sha256=dOB5rV2DZ13dEhq9BUa_4hd5kAqg59e_zUZB00faYz8,453
|
||||
requests/compat.py,sha256=0fzHbLvfnFi2WR0o7XkrvXlElG0_VgQmmOgiooaXh_Y,1852
|
||||
requests/cookies.py,sha256=Y-bKX6TvW3FnYlE6Au0SXtVVWcaNdFvuAwQxw-G0iTI,18430
|
||||
requests/exceptions.py,sha256=AiGbnc4Z7wjlpETMcTwmsmYvZVep8Qmsd46_yp0h0mY,3238
|
||||
requests/help.py,sha256=ywPNssPohrch_Q_q4_JLJM1z2bP0TirHkA9QnoOF0sY,3968
|
||||
requests/hooks.py,sha256=QReGyy0bRcr5rkwCuObNakbYsc7EkiKeBwG4qHekr2Q,757
|
||||
requests/models.py,sha256=BtTPURThE_VpZZmUfDguGhZj5qUmqmY9rk9pIU3w3X4,34859
|
||||
requests/packages.py,sha256=kr9J9dYZr9Ef4JmwHbCEUgwViwcCyOUPgfXZvIL84Os,932
|
||||
requests/sessions.py,sha256=57O4ud9yRL6eLYh-dtFbqC1kO4d_EwZcCgYXEkujlfs,30168
|
||||
requests/status_codes.py,sha256=gT79Pbs_cQjBgp-fvrUgg1dn2DQO32bDj4TInjnMPSc,4188
|
||||
requests/structures.py,sha256=msAtr9mq1JxHd-JRyiILfdFlpbJwvvFuP3rfUQT_QxE,3005
|
||||
requests/utils.py,sha256=Ws5IP5Z7KdFkWNlMkk8L6M3iXaDwBt6CLwgWq8yXSF4,31382
|
@ -0,0 +1,6 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.36.2)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py2-none-any
|
||||
Tag: py3-none-any
|
||||
|
@ -0,0 +1 @@
|
||||
requests
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
pip
|
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2008-2020 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,85 @@
|
||||
urllib3-1.26.7.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
urllib3-1.26.7.dist-info/LICENSE.txt,sha256=w3vxhuJ8-dvpYZ5V7f486nswCRzrPaY8fay-Dm13kHs,1115
|
||||
urllib3-1.26.7.dist-info/METADATA,sha256=4irbe-wnXWbnPZ0Qq9aWaCQ7cDiPP0GxMmlg01Rz3ag,44515
|
||||
urllib3-1.26.7.dist-info/RECORD,,
|
||||
urllib3-1.26.7.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
urllib3-1.26.7.dist-info/WHEEL,sha256=WzZ8cwjh8l0jtULNjYq1Hpr-WCqCRgPr--TX4P5I1Wo,110
|
||||
urllib3-1.26.7.dist-info/top_level.txt,sha256=EMiXL2sKrTcmrMxIHTqdc3ET54pQI2Y072LexFEemvo,8
|
||||
urllib3/__init__.py,sha256=j3yzHIbmW7CS-IKQJ9-PPQf_YKO8EOAey_rMW0UR7us,2763
|
||||
urllib3/__pycache__/__init__.cpython-37.pyc,,
|
||||
urllib3/__pycache__/_collections.cpython-37.pyc,,
|
||||
urllib3/__pycache__/_version.cpython-37.pyc,,
|
||||
urllib3/__pycache__/connection.cpython-37.pyc,,
|
||||
urllib3/__pycache__/connectionpool.cpython-37.pyc,,
|
||||
urllib3/__pycache__/exceptions.cpython-37.pyc,,
|
||||
urllib3/__pycache__/fields.cpython-37.pyc,,
|
||||
urllib3/__pycache__/filepost.cpython-37.pyc,,
|
||||
urllib3/__pycache__/poolmanager.cpython-37.pyc,,
|
||||
urllib3/__pycache__/request.cpython-37.pyc,,
|
||||
urllib3/__pycache__/response.cpython-37.pyc,,
|
||||
urllib3/_collections.py,sha256=Rp1mVyBgc_UlAcp6M3at1skJBXR5J43NawRTvW2g_XY,10811
|
||||
urllib3/_version.py,sha256=CA4bKbKLwUBfKitbVR-44Whe53HWyInIVElDQQniAJU,63
|
||||
urllib3/connection.py,sha256=8TiEbQrJMgySqOllKNeX5tMv8nluKRjNj5j9hyzS6x0,20080
|
||||
urllib3/connectionpool.py,sha256=FQoodlNAP1KeUi4htGdl5TJEvKL5LWisCbmFNewxRpg,37587
|
||||
urllib3/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
urllib3/contrib/__pycache__/__init__.cpython-37.pyc,,
|
||||
urllib3/contrib/__pycache__/_appengine_environ.cpython-37.pyc,,
|
||||
urllib3/contrib/__pycache__/appengine.cpython-37.pyc,,
|
||||
urllib3/contrib/__pycache__/ntlmpool.cpython-37.pyc,,
|
||||
urllib3/contrib/__pycache__/pyopenssl.cpython-37.pyc,,
|
||||
urllib3/contrib/__pycache__/securetransport.cpython-37.pyc,,
|
||||
urllib3/contrib/__pycache__/socks.cpython-37.pyc,,
|
||||
urllib3/contrib/_appengine_environ.py,sha256=bDbyOEhW2CKLJcQqAKAyrEHN-aklsyHFKq6vF8ZFsmk,957
|
||||
urllib3/contrib/_securetransport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
urllib3/contrib/_securetransport/__pycache__/__init__.cpython-37.pyc,,
|
||||
urllib3/contrib/_securetransport/__pycache__/bindings.cpython-37.pyc,,
|
||||
urllib3/contrib/_securetransport/__pycache__/low_level.cpython-37.pyc,,
|
||||
urllib3/contrib/_securetransport/bindings.py,sha256=E1_7ScsgOchfxneozbAueK7ziCwF35fna4DuDCYJ9_o,17637
|
||||
urllib3/contrib/_securetransport/low_level.py,sha256=B2JBB2_NRP02xK6DCa1Pa9IuxrPwxzDzZbixQkb7U9M,13922
|
||||
urllib3/contrib/appengine.py,sha256=jz515jZYBDFTnhR4zqfeaCo6JdDgAQqYbqzHK9sDkfw,11010
|
||||
urllib3/contrib/ntlmpool.py,sha256=ej9gGvfAb2Gt00lafFp45SIoRz-QwrQ4WChm6gQmAlM,4538
|
||||
urllib3/contrib/pyopenssl.py,sha256=YIMyTiXiLPV_QfFw3PjZ31mGqJmM5EzxIjhSLxZ7VUM,16874
|
||||
urllib3/contrib/securetransport.py,sha256=izdx43gFoUGFSgxasZlOCL42FaM4vSsAVTmhO0EH1vM,34417
|
||||
urllib3/contrib/socks.py,sha256=aRi9eWXo9ZEb95XUxef4Z21CFlnnjbEiAo9HOseoMt4,7097
|
||||
urllib3/exceptions.py,sha256=0Mnno3KHTNfXRfY7638NufOPkUb6mXOm-Lqj-4x2w8A,8217
|
||||
urllib3/fields.py,sha256=kvLDCg_JmH1lLjUUEY_FLS8UhY7hBvDPuVETbY8mdrM,8579
|
||||
urllib3/filepost.py,sha256=5b_qqgRHVlL7uLtdAYBzBh-GHmU5AfJVt_2N0XS3PeY,2440
|
||||
urllib3/packages/__init__.py,sha256=h4BLhD4tLaBx1adaDtKXfupsgqY0wWLXb_f1_yVlV6A,108
|
||||
urllib3/packages/__pycache__/__init__.cpython-37.pyc,,
|
||||
urllib3/packages/__pycache__/six.cpython-37.pyc,,
|
||||
urllib3/packages/backports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
urllib3/packages/backports/__pycache__/__init__.cpython-37.pyc,,
|
||||
urllib3/packages/backports/__pycache__/makefile.cpython-37.pyc,,
|
||||
urllib3/packages/backports/makefile.py,sha256=nbzt3i0agPVP07jqqgjhaYjMmuAi_W5E0EywZivVO8E,1417
|
||||
urllib3/packages/six.py,sha256=1LVW7ljqRirFlfExjwl-v1B7vSAUNTmzGMs-qays2zg,34666
|
||||
urllib3/packages/ssl_match_hostname/__init__.py,sha256=ZVMwCkHx-py8ERsxxM3Il-MiREZktV-8iLBmCfRRHI4,927
|
||||
urllib3/packages/ssl_match_hostname/__pycache__/__init__.cpython-37.pyc,,
|
||||
urllib3/packages/ssl_match_hostname/__pycache__/_implementation.cpython-37.pyc,,
|
||||
urllib3/packages/ssl_match_hostname/_implementation.py,sha256=6dZ-q074g7XhsJ27MFCgkct8iVNZB3sMZvKhf-KUVy0,5679
|
||||
urllib3/poolmanager.py,sha256=whzlX6UTEgODMOCy0ZDMUONRBCz5wyIM8Z9opXAY-Lk,19763
|
||||
urllib3/request.py,sha256=ZFSIqX0C6WizixecChZ3_okyu7BEv0lZu1VT0s6h4SM,5985
|
||||
urllib3/response.py,sha256=hGhGBh7TkEkh_IQg5C1W_xuPNrgIKv5BUXPyE-q0LuE,28203
|
||||
urllib3/util/__init__.py,sha256=JEmSmmqqLyaw8P51gUImZh8Gwg9i1zSe-DoqAitn2nc,1155
|
||||
urllib3/util/__pycache__/__init__.cpython-37.pyc,,
|
||||
urllib3/util/__pycache__/connection.cpython-37.pyc,,
|
||||
urllib3/util/__pycache__/proxy.cpython-37.pyc,,
|
||||
urllib3/util/__pycache__/queue.cpython-37.pyc,,
|
||||
urllib3/util/__pycache__/request.cpython-37.pyc,,
|
||||
urllib3/util/__pycache__/response.cpython-37.pyc,,
|
||||
urllib3/util/__pycache__/retry.cpython-37.pyc,,
|
||||
urllib3/util/__pycache__/ssl_.cpython-37.pyc,,
|
||||
urllib3/util/__pycache__/ssltransport.cpython-37.pyc,,
|
||||
urllib3/util/__pycache__/timeout.cpython-37.pyc,,
|
||||
urllib3/util/__pycache__/url.cpython-37.pyc,,
|
||||
urllib3/util/__pycache__/wait.cpython-37.pyc,,
|
||||
urllib3/util/connection.py,sha256=Z9JufD13VNcga6RTW1wRIULbWdxsPE0WCUi5VTebALA,4908
|
||||
urllib3/util/proxy.py,sha256=zUvPPCJrp6dOF0N4GAVbOcl6o-4uXKSrGiTkkr5vUS4,1605
|
||||
urllib3/util/queue.py,sha256=nRgX8_eX-_VkvxoX096QWoz8Ps0QHUAExILCY_7PncM,498
|
||||
urllib3/util/request.py,sha256=NnzaEKQ1Pauw5MFMV6HmgEMHITf0Aua9fQuzi2uZzGc,4123
|
||||
urllib3/util/response.py,sha256=GJpg3Egi9qaJXRwBh5wv-MNuRWan5BIu40oReoxWP28,3510
|
||||
urllib3/util/retry.py,sha256=tOWfZpLsuc7Vbk5nWpMwkHdMoXCp90IAvH4xtjSDRqQ,21391
|
||||
urllib3/util/ssl_.py,sha256=c0sYiSC6272r6uPkxQpo5rYPP9QC1eR6oI7004gYqZo,17165
|
||||
urllib3/util/ssltransport.py,sha256=3bLBqYPryT9UMGbx5iRgMgb2sj7VEKp5pmRD1g8d6VI,6907
|
||||
urllib3/util/timeout.py,sha256=QSbBUNOB9yh6AnDn61SrLQ0hg5oz0I9-uXEG91AJuIg,10003
|
||||
urllib3/util/url.py,sha256=au9jkUMnVr9Qp_9kg4HfZx9q9ur6yXQ4u5M17In-UKY,14030
|
||||
urllib3/util/wait.py,sha256=3MUKRSAUJDB2tgco7qRUskW0zXGAWYvRRE4Q1_6xlLs,5404
|
@ -0,0 +1,6 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.37.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py2-none-any
|
||||
Tag: py3-none-any
|
||||
|
@ -0,0 +1 @@
|
||||
urllib3
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue