How rcmdnk/s3-reader works
s3-reader is a small Python library that presents local paths, S3 objects, and HTTP(S) resources through a File object. A caller constructs File; it normalizes and routes the path, downloads remote content to a temporary file, and exposes that path for ordinary local reading. S3 access uses boto3-session and AWS credentials/retry options; HTTP uses urllib. Destruction cleans up temporary storage. The graph follows the sampled implementation and README; version metadata is included because it is a core module, though it is separate from file reading.
Main entry points: file.py File manager · __init__.py Package export · version.py Version metadata
Components 11
Other components
- Calling code
- File manager
src/s3_reader/file.py - S3 download
src/s3_reader/file.py - HTTP download
src/s3_reader/file.py - boto3-session
- Amazon S3
- HTTP origin
- Temporary storage
- Local path
- Version metadata
src/s3_reader/version.py - Package export
src/s3_reader/__init__.py
Connections 13
- Calling code → File manager: constructs
README.md - File manager → S3 download: routes S3
src/s3_reader/file.py - File manager → HTTP download: routes HTTP
src/s3_reader/file.py - S3 download → boto3-session: creates session
src/s3_reader/file.py - S3 download → Amazon S3: downloads object
src/s3_reader/file.py - HTTP download → HTTP origin: fetches URL
src/s3_reader/file.py - S3 download → Temporary storage: writes download
src/s3_reader/file.py - HTTP download → Temporary storage: writes response
src/s3_reader/file.py - File manager → Temporary storage: cleans up
src/s3_reader/file.py - File manager → Calling code: exposes path
README.md - Calling code → Local path: reads file
README.md - Package export → File manager: exports
src/s3_reader/__init__.py - Package export → Version metadata: loads version
src/s3_reader/__init__.py