Skip to main content

Easy AWS connection

Project description

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

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

from e_aws.awslambda import AWSLambda

AWSLambda('function').invoke({})

Using multiple services on a single connection

from e_aws.awsconnect import AWSConnect

with AWSConnect() as aws:
    aws.bucket('test').exists("test.txt")
    aws.lambdaF('function', {})

Using connection keys

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

e_aws-0.0.5-py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page