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.4.tar.gz
(3.0 kB
view details)
File details
Details for the file urllib_s3-0.0.4.tar.gz.
File metadata
- Download URL: urllib_s3-0.0.4.tar.gz
- Upload date:
- Size: 3.0 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 |
eeffb05f3edd388adc6b270888b663d97d0718fc67a5e21ecc44f82a7af19f30
|
|
| MD5 |
f026731ddfb2c105c45f7c7f4c4a427d
|
|
| BLAKE2b-256 |
82361eb82aac2e263f515e232cebf9c07bf52a8e576da23d817521a05db77fac
|