Registry / aws / tinys3

tinys3

JSON →
library0.1.12pypypi✓ verified 85d ago

A small library for uploading files to S3 with support for async uploads, worker pools, cache headers, etc. Current version is 0.1.12, released infrequently.

pip install tinys3
INSTALL
IMPORT
SIG · TINYS3
T
tinys3
awspythonv0.1.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Connection
from tinys3 import Connection
import tinys3; conn = tinys3.Connection(...)
The standard pattern is direct import, not module prefix. Most examples do 'from tinys3 import Connection'.

Initialize a connection and upload a file. Replace ACCESS_KEY and SECRET_KEY with your AWS credentials.

from tinys3 import Connection conn = Connection('ACCESS_KEY', 'SECRET_KEY', tls=True) f = open('test.txt', 'rb') conn.upload('test.txt', f, 'mybucket')
Debug
Known issues
gotchatinys3 uses Boto-style credentials (access key, secret key) but does not read from ~/.aws/credentials or environment variables automatically. You must pass them explicitly or set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables before importing.
fix
Explicitly pass keys to Connection(), or set environment variables and use conn = Connection(None, None, tls=True) — but note that None keys may cause attribute errors in some versions.
affects: all
deprecatedThe library is not actively maintained; last release was in 2017. It may not work with newer Python versions or AWS SDK changes.
fix
Consider migrating to boto3 for long-term support.
affects: all
gotchaThe library does not support multipart uploads for large files. Uploading files larger than ~5GB will fail silently or raise an error.
fix
Use boto3's multipart upload for files > 5GB.
affects: all
Errors
Common errors & fixes
AttributeError: 'NoneType' object has no attribute 'get'
Passing None for access_key or secret_key when not using environment variables.
fix
Set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables, or pass valid key strings to Connection().
tinys3.exceptions.ConnectionError: The authorization mechanism you have provided is not supported
Likely due to using old AWS Signature Version (e.g., v2) that is no longer supported.
fix
Enable TLS and ensure you are using valid credentials. If problem persists, use boto3.
Upgrade
Version history
0.1.12latest on PyPI · released Oct 14, 2016
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources
tinys3 — pip install tinys3 · libregistry