Simple AWS S3 operations library
Project description
S3Learning
A simple AWS S3 operations library for Python.
Installation
pip install s3learning
AWS Credentials Setup
This library requires AWS credentials to authenticate with AWS services. You can set up your credentials in one of the following ways:
- Environment variables:
export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key
export AWS_DEFAULT_REGION=your_preferred_region
- AWS credentials file (~/.aws/credentials):
[default]
aws_access_key_id = your_access_key
aws_secret_access_key = your_secret_key
- AWS config file (~/.aws/config):
[default]
region = your_preferred_region
For more information, see AWS credentials configuration.
Usage
from s3learning import S3Bucket, S3Object
# Create a bucket handler
bucket_handler = S3Bucket('us-east-1')
buckets = bucket_handler.list_buckets()
print(f"Available buckets: {buckets}")
# Work with objects in a bucket
object_handler = S3Object('us-east-1', 'my-bucket-name')
object_handler.upload_file('local_file.txt', 'remote_name.txt')
Features
- Bucket operations: create, list, delete buckets
- Object operations: upload, download, delete, list objects
- Lifecycle policy management
- Resource existence checking
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
s3simplified-0.1.2.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file s3simplified-0.1.2.tar.gz.
File metadata
- Download URL: s3simplified-0.1.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b147f1a2e4c4f31b699570a282147333879eacd24e101dcb890179296ac41c3e
|
|
| MD5 |
6565daa9a6bfdb7994b1b202f280f3d4
|
|
| BLAKE2b-256 |
46de4f7e3771cd4eedde94f3325ec94d16e64a3f059f4c8a41bf3000487e8a7f
|
File details
Details for the file s3simplified-0.1.2-py3-none-any.whl.
File metadata
- Download URL: s3simplified-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3fc60800496b53330960deeeaade81d7f46bfb2ec6d3aecd48ce7778b3a764c
|
|
| MD5 |
8e7969480165bbd69b14cee66c52d194
|
|
| BLAKE2b-256 |
5d06d28907ef01c78d26272720e7f6ff8b8011980681ab55a589b74c3ee53099
|