Skip to main content

AWS S3 tools package.

Project description

AWS S3 Tools

MIT License 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

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
  • Add functions to move S3 objects

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.2.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

aws_s3_tools-0.0.2-py3-none-any.whl (10.4 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