amazon web services - S3FS python, credential inline -
i trying use python s3fs read files in s3 aws.
i not find code put credential (access key + secret) s3fs code.
can please me how set info along s3fs code.
import s3fs fs = s3fs.s3filesystem(anon=true) i on windows 10.
try below
import s3fs fs = s3fs.s3filesystem(anon=false, key='<access key>', secret='<secret key>') below list of parameters s3filesystem
parameters ---------- anon : bool (false) whether use anonymous connection (public buckets only). if false, uses key/secret given, or boto's credential resolver (environment variables, config files, ec2 iam server, in order) key : string (none) if not anonymous, use access key id, if specified secret : string (none) if not anonymous, use secret access key, if specified token : string (none) if not anonymous, use security token, if specified use_ssl : bool (true) whether use ssl in connections s3; may faster without, insecure s3_additional_kwargs : dict of parameters used when calling s3 api methods. typically used things "serversideencryption". client_kwargs : dict of parameters boto3 client requester_pays : bool (false) if requesterpays buckets supported. default_block_size: none, int if given, default block size value used ``open()``, if no specific value given @ time. built-in default 5mb. default_fill_cache : bool (true) whether use cache filling open default. refer ``s3file.open``. config_kwargs : dict of parameters passed ``botocore.client.config`` kwargs : other parameters boto3 session
Comments
Post a Comment