teff.tool.builtin.s3¶
teff.tool.builtin.s3
¶
S3 tools — list, read, and write objects in Amazon S3 (or S3-compatible stores).
Classes:
| Name | Description |
|---|---|
S3GetTool |
Download an object from an S3 bucket and return its contents. |
S3PutTool |
Upload text content to an object in an S3 bucket. |
S3Tool |
List objects in an S3 bucket. |
S3GetTool
¶
Bases: S3Tool
Download an object from an S3 bucket and return its contents.
Source code in teff/tool/builtin/s3.py
61 62 63 64 65 66 67 68 69 70 71 72 73 | |
S3PutTool
¶
Bases: S3Tool
Upload text content to an object in an S3 bucket.
Source code in teff/tool/builtin/s3.py
76 77 78 79 80 81 82 83 84 85 86 87 88 | |
S3Tool
¶
Bases: Tool
List objects in an S3 bucket.
Requires boto3 (from teff[tools]). Credentials are resolved by
boto3's standard chain (env vars, ~/.aws/credentials, IAM role)
unless overridden via config.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
dict | None
|
Optional dict with |
None
|
Source code in teff/tool/builtin/s3.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |