Attributes¶
obstore.Attribute
module-attribute
¶
Attribute: TypeAlias = (
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.
Not importable at runtime
To use this type hint in your code, import it within a TYPE_CHECKING
block:
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from obstore import Attribute
obstore.Attributes
module-attribute
¶
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
Not importable at runtime
To use this type hint in your code, import it within a TYPE_CHECKING
block:
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from obstore import Attributes