Skip to content

Commit c9627ce

Browse files
committed
Merge branch 'master' of github.com:PyFilesystem/s3fs
2 parents 1b540e7 + 2d03c21 commit c9627ce

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@ Amazon S3 cloud storage.
66
As a PyFilesystem concrete class, [S3FS](http://fs-s3fs.readthedocs.io/en/latest/) allows you to work with S3 in the
77
same way as any other supported filesystem.
88

9+
## Installing
10+
11+
You can install S3FS from pip as follows:
12+
13+
```
14+
pip install fs-s3fs
15+
```
916

1017
## Opening a S3FS
1118

1219
Open an S3FS by explicitly using the constructor:
1320

1421
```python
15-
from s3_s3fs import s3FS
22+
from s3_s3fs import S3FS
1623
s3fs = S3FS('mybucket')
1724
```
1825

fs_s3fs/_s3fs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ def s3(self):
346346
if not hasattr(self._tlocal, 's3'):
347347
self._tlocal.s3 = boto3.resource(
348348
's3',
349+
region_name=self.region,
349350
aws_access_key_id=self.aws_access_key_id,
350351
aws_secret_access_key=self.aws_secret_access_key,
351352
aws_session_token=self.aws_session_token,
@@ -358,6 +359,7 @@ def client(self):
358359
if not hasattr(self._tlocal, 'client'):
359360
self._tlocal.client = boto3.client(
360361
's3',
362+
region_name=self.region,
361363
aws_access_key_id=self.aws_access_key_id,
362364
aws_secret_access_key=self.aws_secret_access_key,
363365
aws_session_token=self.aws_session_token,

0 commit comments

Comments
 (0)