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


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



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

Simple Usage

import pyboto

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

df = boto_obj.get_csv_as_df('myBucket', 'myKey', sep=',')

Full Usage

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

boto_obj.get_csv_as_df('myBucket', 'myKey', sep=',', skiprows: int, encoding: str, dtype, column_name)

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

boto_obj.get_excel('myBucket', 'myKey', engine: str)

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

boto_obj.put_file(bucket='myBucket', key='myKey', file_or_buffer=contents)

boto_obj.put_excel('myBucket', 'myKey', pandas_dataframe, header: bool, index: bool):


Project details

Download files

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

Source Distribution

pyboto-0.1.4.tar.gz (8.2 kB view hashes)

Uploaded source

Built Distribution

pyboto-0.1.4-py2.py3-none-any.whl (8.8 kB view hashes)

Uploaded py2 py3

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