An open API service indexing awesome lists of open source software.

https://github.com/waydotnet/urllib_s3


https://github.com/waydotnet/urllib_s3

aws-s3 minio minio-client python s3 s3-bucket urllib

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# urllib_s3

[![Downloads](https://static.pepy.tech/badge/urllib_s3)](https://pepy.tech/project/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')

```