python-httpfile 0.0.1.1__py3-none-any.whl → 0.0.1.2__py3-none-any.whl
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.
- httpfile/__init__.py +2 -2
- {python_httpfile-0.0.1.1.dist-info → python_httpfile-0.0.1.2.dist-info}/METADATA +1 -1
- python_httpfile-0.0.1.2.dist-info/RECORD +7 -0
- python_httpfile-0.0.1.1.dist-info/RECORD +0 -7
- {python_httpfile-0.0.1.1.dist-info → python_httpfile-0.0.1.2.dist-info}/LICENSE +0 -0
- {python_httpfile-0.0.1.1.dist-info → python_httpfile-0.0.1.2.dist-info}/WHEEL +0 -0
httpfile/__init__.py
CHANGED
|
@@ -22,7 +22,7 @@ from warnings import warn
|
|
|
22
22
|
from aiohttp import ClientSession
|
|
23
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
|
|
25
|
+
from iterutils import through
|
|
26
26
|
from property import funcproperty
|
|
27
27
|
from requests import Session
|
|
28
28
|
from urlopen import urlopen
|
|
@@ -294,7 +294,7 @@ class HTTPFileReader(RawIOBase, BinaryIO):
|
|
|
294
294
|
if old_pos == pos:
|
|
295
295
|
return pos
|
|
296
296
|
if pos > old_pos and pos - old_pos <= self.seek_threshold:
|
|
297
|
-
|
|
297
|
+
through(bio_skip_iter(self, pos - old_pos))
|
|
298
298
|
else:
|
|
299
299
|
self.reconnect(pos)
|
|
300
300
|
return pos
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
|
2
|
+
httpfile/__init__.py,sha256=QMeil_PlioH8MCXWfK4Pty5hJEPFryrkjXTAy_t2anE,12317
|
|
3
|
+
httpfile/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
python_httpfile-0.0.1.2.dist-info/LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
|
5
|
+
python_httpfile-0.0.1.2.dist-info/METADATA,sha256=mRCnDifm57cPKclZ4pF9B7g2Xc1naxBCfJzeU0sZF3Q,1542
|
|
6
|
+
python_httpfile-0.0.1.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
7
|
+
python_httpfile-0.0.1.2.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
|
2
|
-
httpfile/__init__.py,sha256=CUmHcgIEm4djbZrqCYZjRV_XxyoPv063CSh7Lmxab0g,12317
|
|
3
|
-
httpfile/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
python_httpfile-0.0.1.1.dist-info/LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
|
5
|
-
python_httpfile-0.0.1.1.dist-info/METADATA,sha256=LzNu17CIcEuapk1PgZAtVass96NeirUUmtwEPRzq6S8,1542
|
|
6
|
-
python_httpfile-0.0.1.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
7
|
-
python_httpfile-0.0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|