Files Resources¶
File objects that hold structured file metadata
Doc links:
_BaseFile
_BaseUIDModel
Array
HasProperties
Image
-
class
lfview.resources.files.files.
Array
(array=None, **kwargs)¶ File resource for numeric array binary storage
In addition to file metadata properties, Array instances have anarray
attribute. This attribute can be set with a numeric list or a numpy array, and doing so will dynamically fill in the other properties.Required Properties:
- content_length (
Integer
): Content length of the file, an integer in range [0, inf] - content_type (
StringChoice
): Content type of the file, any of “application/octet-stream”, Default: application/octet-stream - dtype (
StringChoice
): Data type of array, any of “Float32Array”, “Float64Array”, “Int8Array”, “Int16Array”, “Int32Array”, “Uint8Array”, “Uint16Array”, “Uint32Array” - shape (a list of
Integer
): Dimensions of the array, a list (each item is an integer in range [0, inf]) with length >= 1
Optional Properties:
- uid (
String
): Unique object identifier, a unicode string
- content_length (
-
class
lfview.resources.files.files.
Image
(image=None, **kwargs)¶ File resource for image storage
Currently, only PNG images are supported.
In addition to file metadata properties, Image instances have an
image
attribute. This attribute can be set to a file, and doing so will dynamically fill in the other properties.Required Properties:
- content_length (
Integer
): Content length of the file, an integer in range [0, inf] - content_type (
StringChoice
): Content type of the file, any of “image/png”, Default: image/png
Optional Properties:
- uid (
String
): Unique object identifier, a unicode string
- content_length (