Library that encapsulate Boto3 in option.Result
Project description
Boto3-result
Library that encapsulate Boto3 in option.Result
- One class for each AWS service
- Returning Result instead of throwing exception
- Tested with library versions in requirements.txt
- Source on github
Requirements
- python3/pip
- A valid boto3 configuration as explained in boto3 config
Use
pip install boto3r
Examples
from boto3r.s3 import S3
import os
s3=S3.create().unwrap()
S3_BUCKET = os.environ['S3_TEST_BUCKET']
key = 'test-key'
s = 's3_test'
r=s3.put_object(S3_BUCKET, key, s) \
.flatmap(lambda _: s3.get_attributes(S3_BUCKET, key)).flatmap()
print(r.unwrap()['LastModified'])
Test running
Requirements:
- Env vars:
- S3_TEST_BUCKET with writing permission
./bin/run_test.sh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
boto3r-0.0.4.tar.gz
(3.1 kB
view hashes)
Built Distribution
boto3r-0.0.4-py3-none-any.whl
(3.4 kB
view hashes)