Skip to content

Attributes

obstore.Attribute module-attribute

Attribute = (
    Literal[
        "Content-Disposition",
        "Content-Encoding",
        "Content-Language",
        "Content-Type",
        "Cache-Control",
    ]
    | str
)

Additional object attribute types.

  • "Content-Disposition": Specifies how the object should be handled by a browser.

    See Content-Disposition.

  • "Content-Encoding": Specifies the encodings applied to the object.

    See Content-Encoding.

  • "Content-Language": Specifies the language of the object.

    See Content-Language.

  • "Content-Type": Specifies the MIME type of the object.

    This takes precedence over any client configuration.

    See Content-Type.

  • "Cache-Control": Overrides cache control policy of the object.

    See Cache-Control.

Any other string key specifies a user-defined metadata field for the object.

obstore.Attributes module-attribute

Attributes = Dict[Attribute, str]

Additional attributes of an object

Attributes can be specified in put/put_async and retrieved from get/get_async.

Unlike ObjectMeta, Attributes are not returned by listing APIs