e-aws-0.0.5
توضیحات
Easy AWS connection
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | e-aws-0.0.5 |
| نام | e-aws |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jeff Aguilar |
| ایمیل نویسنده | jeff.aguilar.06@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/e-aws/ |
| مجوز | MIT |
# Easy AWS
Simple connection to AWS Bucket and Lambda Services
## Installation
Use pip to install the package:
```
pip install e-aws
```
## Usage
This package provides an easy use Bucket and Lambda Services
By default it will take the AWS keys as AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_REGION
## Using Bucket Service
```python
from e_aws.awsbucket import AWSBucket
AWSBucket('my-bucket').exists('test.txt')
with AWSBucket('my-bucket') as bucket:
if bucket.exists('test.txt'):
pass
else:
local_path = './test.txt'
with open(local_path, 'w') as fl:
fl.write('hello world')
bucket.upload(local_path, 'test.txt')
```
## Using Lambda Service
```python
from e_aws.awslambda import AWSLambda
AWSLambda('function').invoke({})
```
## Using multiple services on a single connection
```python
from e_aws.awsconnect import AWSConnect
with AWSConnect() as aws:
aws.bucket('test').exists("test.txt")
aws.lambdaF('function', {})
```
## Using connection keys
```python
from e_aws.awsbucket import AWSBucket
from e_aws.awslambda import AWSLambda
from e_aws.awsconnect import AWSConnect
AWSBucket('my-bucket', access_key_id='', secret_access_key='', region='').exists('test.txt')
AWSLambda('function', access_key_id='', secret_access_key='', region='').invoke({})
with AWSConnect(access_key_id='', secret_access_key='', region='') as _:
pass
```
نیازمندی
| مقدار | نام |
|---|---|
| ==1.24.93 | boto3 |
نحوه نصب
نصب پکیج whl e-aws-0.0.5:
pip install e-aws-0.0.5.whl
نصب پکیج tar.gz e-aws-0.0.5:
pip install e-aws-0.0.5.tar.gz