Skip to main content

Easy AWS connection

Project description

Easy AWS

Simple connection to AWS Bucket and Lambda Services

Installation

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.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

If you're not sure about the file name format, learn more about wheel file names.

e_aws-0.0.7-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file e_aws-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: e_aws-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for e_aws-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 803976cc51543af57524d3339a87598004877051cbb27f0e50cc0e78e9fd82ad
MD5 88d59d9425affd15f36a508d205ec291
BLAKE2b-256 e16f634e3ed22adb3ffe6baade42b8baf1d51573d0b7801357725431620a57fc

See more details on using hashes here.

Supported by

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