Metadata-Version: 2.1
Name: urlopen2
Version: 1.0.0
Summary: Improvement for the `urlopen` function.
License: MIT
Keywords: urlopen,urllib.request,urlfile,readable,seekable
Author: Romanin
Author-email: semina054@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown

# urlopen2
## Description
Improvement for the `urlopen` function.request.

## Install
```shell
pip install urlopen2
```

## Using
```python
from urlopen2 import URLFile

with URLFile("https://example.com/file.bin") as f:
    f.read(128)
    # In this case, 128 bytes of the file will be loaded.
    f.seek(0)
    # Move the caret to the beginning of the file
    data = f.read(128) 
    # Since we are taking the same 128 bytes that have already been loaded, they will be received from the buffer.

print(data)
```
