Skip to main content

Tiny wrapper for basic S3 functions in boto3

Project description


Minimal wrapper for S3 functionality in boto3.


pip install pys3


from pys3 import PyS3

# Local file
file = PyS3('/path/to/file.txt', 'w')
file.write('Hello World!')

# File on S3
file = PyS3('s3://bucket_name/path/to/file.txt', 'w')
file.write('Hello World!')


pys3 uses boto3 as a back-end. Thus, credentials for AWS must be set up according to that framework. For example, place the acces key ID and secret key in the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

How it works

Upon creation of a PyS3 file object, it is checked whether the passed file URL refers to a location on S3. If so, a local copy of the file is downloaded (provided it exists). When the close() method is called, any modifications to the local file are uploaded.

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 pys3, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size pys3-0.0.5.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page