Skip to main content

A simple boto3 wrapper to complete common operations in S3 such as get or put csv files, list objects and keys, etc.

Project description

pyboto

Wrapper for commonly used boto3 when working with data stored in AWS S3.

Install

Setup

Be sure to set up your AWS authentication credentials. You can do so by using the aws cli and running

pip install awscli aws configure More help on configuring the aws cli here https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html

Simple Usage

import pyboto

boto_obj = pyboto.Boto('us-east-1')
result = boto_obj.get_keys('myBucket', 'myKeyPrefix')
print(result)

Full Usage

boto_obj.get_keys('myBucket', 'myKeyPrefix')

boto_obj.get_file('myBucket', 'myKey')

boto_obj.put_df('myBucket', 'myKey', pandas_dataframe, header: bool, index: bool, sep=',')

boto_obj.put_file(bucket='g2l-dev', key='tmp/test.csv', file_or_buffer=contents)

Note

Project details


Download files

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

Files for pyboto, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pyboto-0.1.0.tar.gz (1.5 kB) File type Source Python version None Upload date Hashes View
Filename, size pyboto-0.1.0-py3-none-any.whl (7.1 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page