S3 handler for urllib
Project description
# urllib_s3
urllib_s3 is a urllib handler for s3 protocol
## Usage
install library
```bash
pip install urllib_s3
```
```python
from six.moves.urllib.request import urlopen
import urllib_s3
server_settings = {
'server-url': {
'access_key': 'xx',
'secret_key': 'xxx',
'secure': True
}
}
urllib_s3.setup(server_settings)
# now you use s3 protocol
urlopen('s3://server-url/bucket/foo.png')
```
urllib_s3 is a urllib handler for s3 protocol
## Usage
install library
```bash
pip install urllib_s3
```
```python
from six.moves.urllib.request import urlopen
import urllib_s3
server_settings = {
'server-url': {
'access_key': 'xx',
'secret_key': 'xxx',
'secure': True
}
}
urllib_s3.setup(server_settings)
# now you use s3 protocol
urlopen('s3://server-url/bucket/foo.png')
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
urllib_s3-0.0.5.tar.gz
(3.1 kB
view details)
File details
Details for the file urllib_s3-0.0.5.tar.gz.
File metadata
- Download URL: urllib_s3-0.0.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4653528026cf50f3e146bb340e53492ae677d3b3ca5f47ce7b13660d7a19cdd0
|
|
| MD5 |
69ef108a338c5a964211d636cc806368
|
|
| BLAKE2b-256 |
b48ee7ad13b9f59a3dd7af46c2a5a5331eb23513bcbd28c6b82436a5ced1b26d
|