Skip to main content

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)

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):

Note

Metadata

Release files for pyboto 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyboto 0.1.4
File Size Uploaded
pyboto-0.1.4.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyboto 0.1.4
File Interpreter ABI Platform
pyboto-0.1.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 17.0 kB

Release files / pyboto-0.1.4.tar.gz

Download URL pyboto-0.1.4.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6b56419af6f6c5e385ce3a40dd16e94eb2f30d58f28f70fc210466bf7db2eed8
BLAKE2b-256 checksum
How to use checksums
5a52a30be7ed1706a4e78e6431e51fb237264fa85c22fbaf2cbb8842e336fc46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / pyboto-0.1.4-py2.py3-none-any.whl

Download URL pyboto-0.1.4-py2.py3-none-any.whl
Size 8.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5022778968b8e198362bbbca218f162df22c804d638322f5a88e4db8f1fd6170
BLAKE2b-256 checksum
How to use checksums
36174c62fecfb4b0cb61d77c642c3c4a6dfaf74a5ba869fa1a5d6c07d924e628
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page