python-httpfile 0.0.1__tar.gz → 0.0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_httpfile-0.0.1 → python_httpfile-0.0.1.2}/PKG-INFO +2 -1
- {python_httpfile-0.0.1 → python_httpfile-0.0.1.2}/httpfile/__init__.py +3 -2
- {python_httpfile-0.0.1 → python_httpfile-0.0.1.2}/pyproject.toml +2 -1
- {python_httpfile-0.0.1 → python_httpfile-0.0.1.2}/LICENSE +0 -0
- {python_httpfile-0.0.1 → python_httpfile-0.0.1.2}/httpfile/py.typed +0 -0
- {python_httpfile-0.0.1 → python_httpfile-0.0.1.2}/readme.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-httpfile
|
|
3
|
-
Version: 0.0.1
|
|
3
|
+
Version: 0.0.1.2
|
|
4
4
|
Summary: Python httpfile classes.
|
|
5
5
|
Home-page: https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-httpfile
|
|
6
6
|
License: MIT
|
|
@@ -24,6 +24,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
24
24
|
Requires-Dist: aiohttp
|
|
25
25
|
Requires-Dist: http_response
|
|
26
26
|
Requires-Dist: python-filewrap
|
|
27
|
+
Requires-Dist: python-iterutils
|
|
27
28
|
Requires-Dist: python-property
|
|
28
29
|
Requires-Dist: python-urlopen
|
|
29
30
|
Requires-Dist: requests
|
|
@@ -20,8 +20,9 @@ from types import MappingProxyType
|
|
|
20
20
|
from warnings import warn
|
|
21
21
|
|
|
22
22
|
from aiohttp import ClientSession
|
|
23
|
-
from filewrap import
|
|
23
|
+
from filewrap import bio_skip_iter
|
|
24
24
|
from http_response import get_filename, get_length, get_range, get_total_length, is_chunked, is_range_request
|
|
25
|
+
from iterutils import through
|
|
25
26
|
from property import funcproperty
|
|
26
27
|
from requests import Session
|
|
27
28
|
from urlopen import urlopen
|
|
@@ -293,7 +294,7 @@ class HTTPFileReader(RawIOBase, BinaryIO):
|
|
|
293
294
|
if old_pos == pos:
|
|
294
295
|
return pos
|
|
295
296
|
if pos > old_pos and pos - old_pos <= self.seek_threshold:
|
|
296
|
-
|
|
297
|
+
through(bio_skip_iter(self, pos - old_pos))
|
|
297
298
|
else:
|
|
298
299
|
self.reconnect(pos)
|
|
299
300
|
return pos
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "python-httpfile"
|
|
3
|
-
version = "0.0.1"
|
|
3
|
+
version = "0.0.1.2"
|
|
4
4
|
description = "Python httpfile classes."
|
|
5
5
|
authors = ["ChenyangGao <wosiwujm@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -30,6 +30,7 @@ python = "^3.10"
|
|
|
30
30
|
aiohttp = "*"
|
|
31
31
|
http_response = "*"
|
|
32
32
|
python-filewrap = "*"
|
|
33
|
+
python-iterutils = "*"
|
|
33
34
|
python-property = "*"
|
|
34
35
|
python-urlopen = "*"
|
|
35
36
|
requests = "*"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|