Skip to contents

R6 Class Wrapper for Metaflow S3Object

R6 Class Wrapper for Metaflow S3Object

Details

This class represents an S3 object returned by the s3_client.

Public fields

py_obj

Python S3Object

Active bindings

url

The S3 URL of the object

key

The S3 key of the object

size

The size of the object in bytes

path

The local path of the object if downloaded

blob

The object's content as bytes

text

The object's content as text

metadata

The object's metadata

content_type

The MIME type of the object

downloaded

Whether the object has been downloaded

exists

Whether the object exists in S3

last_modified

The last modified timestamp of the object

prefix

The S3 prefix of the object

has_info

Whether the object has additional info

encryption

The encryption status of the object

range_info

Information about partial content requests

Methods

Public methods


Method new()

Create a new S3Object

Usage

S3Object$new(py_obj)

Arguments

py_obj

Python S3Object to wrap