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
e_aws-0.0.6-py3-none-any.whl
(10.3 kB
view details)
File details
Details for the file e_aws-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: e_aws-0.0.6-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e87ee09ca60ead41e6fac666154d2adad2e6900e574933c0fce14fc48b7bc889 |
|
MD5 | d137eb0cde29c5369ea7f8b2b3d3ad47 |
|
BLAKE2b-256 | f864510665a8bc37c05b701897b7aa78e541e4eb8531bcb00d8ab5254a2fc467 |