s3 module¶
conda_package_streaming.s3 adapts a s3 client, bucket name, and key to
LazyConda
, or, for .tar.bz2
, a normal streaming GET
request that can be
closed before transferring the whole file.
Adapt s3 to package_streaming
- conda_package_streaming.s3.conda_reader_for_s3(client: None, bucket: str, key: str)¶
Return (name, file_like) suitable for package_streaming APIs
- conda_package_streaming.s3.stream_conda_info(client, bucket, key)¶
Yield (tar, member) for conda package.
Just “info/” for .conda, all members for tar.