AWS S3 tools package.
Project description
AWS S3 Tools
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for aws_s3_tools-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75a54ce77c4b79a8645b056879a0c852a1a2894bab10fec4ed4cb9bafb8e049d |
|
MD5 | 7e3c0c440faef9c6620ef2b8a0d0e45b |
|
BLAKE2b-256 | 14132b6ab8f40a1c9e89e73c3d28083114c355d4b85ac1b53602d3e7d08542bd |