Content Format module¶
Reference to the content_format.py module.
content_format
¶
Module for handling content formats of an app's input and output.
| CLASS | DESCRIPTION |
|---|---|
ContentFormat |
Format of the content of an app's input and output. This is used to specify how the app should read and write data. |
ContentFormat
¶
Format of the content of an app's input and output. This is used to specify how the app should read and write data.
You can import the ContentFormat class directly from nextmv:
| ATTRIBUTE | DESCRIPTION |
|---|---|
JSON |
JSON format, utf-8 encoded.
TYPE:
|
MULTI_FILE |
Multi-file format, used for loading multiple files in a single input.
TYPE:
|
InputFormat
¶
Warning
InputFormat is deprecated, use nextmv.ContentFormat instead.
Format of an Input.
You can import the InputFormat class directly from nextmv:
This enum specifies the supported formats for input data.
| ATTRIBUTE | DESCRIPTION |
|---|---|
JSON |
Warning
JSON format, utf-8 encoded.
TYPE:
|
TEXT |
Warning
Text format, utf-8 encoded.
TYPE:
|
CSV_ARCHIVE |
Warning
CSV archive format: multiple CSV files.
TYPE:
|
MULTI_FILE |
Warning
Multi-file format, used for loading multiple files in a single input.
TYPE:
|
JSON
class-attribute
instance-attribute
¶
Warning
InputFormat.JSON is deprecated, use ContentFormat.JSON instead.
JSON format, utf-8 encoded.
TEXT
class-attribute
instance-attribute
¶
Warning
InputFormat.TEXT is deprecated, use ContentFormat.MULTI_FILE instead.
Text format, utf-8 encoded.
CSV_ARCHIVE
class-attribute
instance-attribute
¶
Warning
InputFormat.CSV_ARCHIVE is deprecated, use ContentFormat.MULTI_FILE instead.
CSV archive format: multiple CSV files.
MULTI_FILE
class-attribute
instance-attribute
¶
Warning
InputFormat.MULTI_FILE is deprecated, use ContentFormat.MULTI_FILE instead.
Multi-file format, used for loading multiple files in a single input.