python-httpfile 0.0.1__py3-none-any.whl → 0.0.1.1__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 CHANGED
@@ -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 bio_skip_bytes
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 foreach
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
- bio_skip_bytes(self, pos - old_pos)
297
+ foreach(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
  Metadata-Version: 2.1
2
2
  Name: python-httpfile
3
- Version: 0.0.1
3
+ Version: 0.0.1.1
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
@@ -0,0 +1,7 @@
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,,
@@ -1,7 +0,0 @@
1
- LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
2
- httpfile/__init__.py,sha256=KYXYVFaUhu06R3cBEb9FPGmPuLrMVUFWKPx5aovija4,12280
3
- httpfile/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- python_httpfile-0.0.1.dist-info/LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
5
- python_httpfile-0.0.1.dist-info/METADATA,sha256=ZWLh_Fh4q5FjF2P_2B2Szl2KjYs16XtzCbzjLSxTgIs,1508
6
- python_httpfile-0.0.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
7
- python_httpfile-0.0.1.dist-info/RECORD,,