Skip to main content

AWS S3 tools package.

Project description

AWS S3 Tools

MIT License Documentation Status Package Version Python Version

AWS S3 Tools is a Python package to make it easier to deal with S3 objects, where you can:

  • List S3 buckets' content
  • Check if S3 objects exist
  • Read from S3 objects to Python variables
  • Write from Python variables to S3 objects
  • Upload from local files to S3
  • Download from S3 to local files
  • Delete S3 objects
  • Move S3 objects

The AWS authentication is done via boto3 package, click here to know more about it.


Installation

You can install AWS S3 Tools from PyPi with pip or your favorite package manager:

pip install aws-s3-tools

Add the -U switch to update to the current version, if AWS S3 Tools is already installed.


Usage

The full documentation can be found here.

```python
from s3_tools import object_exists

if object_exists("my-bucket", "s3-prefix/object.data"):
    # Do magic
else:
    print("Object not found")
```

Next Steps

  • Improve error handling by creating Exceptions

Acknowledgement

The idea from these functions come from an amazing team that I worked with. This repo is a refactor and documentation to make this public to everyone.

Many thanks to:

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

aws-s3-tools-0.0.3.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

aws_s3_tools-0.0.3-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

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