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.3.tar.gz
(2.9 kB
view details)
File details
Details for the file urllib_s3-0.0.3.tar.gz.
File metadata
- Download URL: urllib_s3-0.0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52216fcb4b3bacfebf364435ae22cf9ed9ca69cfc45ccf4844ebe9fd1376c303
|
|
| MD5 |
58ec2c7ca68f14e7678b9e17796abe27
|
|
| BLAKE2b-256 |
5f5c5d2d751ad21a65ea8efee9b8e8242b0cfc872043774c2b3ba9f908533f6a
|