...
Project description
http_file
Usage
Install using pip:
$ pip install http_file
Применение
.. кодовый блок :: python
#импорт вспомогательных библиотек
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
import requests
#РёРјРїРѕСЂС‚ http_file
from http_file import download_file
#создание новой сессии
s = requests.Session()
#соеденение с сервером через созданную сессию
s.get('URL_MAIN', verify=False)
"""
загрузка файла в 'local_filename' из 'fileUrl' через созданную сессию
download_file('local_filename', 'fileUrl', s)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
http-file-0.1.7.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file http-file-0.1.7.tar.gz
.
File metadata
- Download URL: http-file-0.1.7.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eef8269c67e33835676c4ab502b8e22c1afe27c938befa37503008b0b73ff3fa |
|
MD5 | 14b311d06cb9efe5bb7e6995a9cc8446 |
|
BLAKE2b-256 | 6497fc95b10b7c55c55b93ac0349dc1dfd9b64474171225084ca3aba61947072 |
File details
Details for the file http_file-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: http_file-0.1.7-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0508dfa1842de1ce49b89781cce459206e58cfc2026f573d0f8e892f4dd50297 |
|
MD5 | 9239818fb67281cd008062cb2063ea0f |
|
BLAKE2b-256 | 0df07df41dd4af8334ac3b10a4c0b13fb5602fb89527ddf23791aae117be83ba |