Utilities for AWS S3
Project description
s3-wrapper
s3-wrapper is a wrapper around s3-related functionalities of AWS's boto3 package.
Quick Start
First, install the library:
pip install s3-wrapper
Next, set up credentials (in e.g. ~/.aws/credentials
):
[default]
aws_access_key_id = YOUR_KEY
aws_secret_access_key = YOUR_SECRET
You should set the following values in environment variables:
- AWS_PROFILE_NAME: AWS profile name
- S3_BUCKET_NAME (Optional): Default bucket name
If S3_BUCKET_NAME is not found in environment variables, you must set the default directory before using any utilities:
s3 = S3Utils()
s3.set_default_bucket('test_bucket')
You can use python-dotenv for loading environment variables.
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
s3-wrapper-0.0.2.tar.gz
(2.7 kB
view hashes)
Built Distribution
s3_wrapper-0.0.2-py3-none-any.whl
(15.7 kB
view hashes)
Close
Hashes for s3_wrapper-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd52f2e9c50e6fcae54170e43d9de12f2cabe55a439934eef9592c441ea64dd2 |
|
MD5 | 5a4a883d9f82a8b1ec2c6f6cc108945b |
|
BLAKE2b-256 | 0b104d84007ce968ca6c4afa11b7a1b76da9a8a2dc1a8537b5707dd7f5008d04 |