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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file boto3r-0.0.4.tar.gz.
File metadata
- Download URL: boto3r-0.0.4.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eed6edbe78133582e9e5581322fe7b4a97886e605facaa4c2480683bcdbb213
|
|
| MD5 |
1ff5aed0ae43955bf94d662b22640cdb
|
|
| BLAKE2b-256 |
864360c3bbb52545b0358907e7378c8276feb9a7c985112d96fd4845be37d02d
|
File details
Details for the file boto3r-0.0.4-py3-none-any.whl.
File metadata
- Download URL: boto3r-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be205697acdd815aeb1a1f8ac55018393427b97cbddb886bc853eae43ca68538
|
|
| MD5 |
e0a7c535d5e2d86c6ce0e89db8442537
|
|
| BLAKE2b-256 |
8d08093a07a0122370b138078c1b1c18f1bdcd7be5de6e0b81307183dd241fd2
|