Assets
nodekit.assets.Image
pydantic-model
¶
Fields:
-
sha256(SHA256) -
locator(AssetLocator) -
media_type(ImageMediaType)
locator
pydantic-field
¶
A location which is a claimed source of valid bytes for this Asset.
media_type
pydantic-field
¶
The IANA media (MIME) type of the image file.
from_path
classmethod
¶
A public convenience method to create an Asset from a file path on the user's local file system. This is I/O bound, as it computes the SHA-256 hash of the file.
nodekit.assets.Video
pydantic-model
¶
Fields:
-
sha256(SHA256) -
locator(AssetLocator) -
media_type(VideoMediaType)
locator
pydantic-field
¶
A location which is a claimed source of valid bytes for this Asset.
media_type
pydantic-field
¶
The IANA media (MIME) type of the video file.
from_path
classmethod
¶
A public convenience method to create an Asset from a file path on the user's local file system. This is I/O bound, as it computes the SHA-256 hash of the file.