File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,20 @@ Amazon S3 cloud storage.
66As a PyFilesystem concrete class, [ S3FS] ( http://fs-s3fs.readthedocs.io/en/latest/ ) allows you to work with S3 in the
77same 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
1219Open an S3FS by explicitly using the constructor:
1320
1421``` python
15- from s3_s3fs import s3FS
22+ from s3_s3fs import S3FS
1623s3fs = S3FS(' mybucket' )
1724```
1825
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments