boto3r-0.0.4
توضیحات
Library that encapsulate Boto3 in option.Result
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | boto3r-0.0.4 |
| نام | boto3r |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Reynaldo Gil |
| ایمیل نویسنده | gilcu2@gmail.com |
| آدرس صفحه اصلی | https://github.com/gilcu2/boto3-result |
| آدرس اینترنتی | https://pypi.org/project/boto3r/ |
| مجوز | - |
# 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](https://github.com/gilcu2/boto3-result)
## Requirements
- python3/pip
- A valid boto3 configuration as explained in
[boto3 config](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html)
## Use
```shell
pip install boto3r
```
## Examples
```python
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
```shell
./bin/run_test.sh
```
نیازمندی
| مقدار | نام |
|---|---|
| - | boto3 |
| - | option |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl boto3r-0.0.4:
pip install boto3r-0.0.4.whl
نصب پکیج tar.gz boto3r-0.0.4:
pip install boto3r-0.0.4.tar.gz