ResourceImporterCSV๏ƒ

Inherits: ResourceImporter < RefCounted < Object

Imports CSV, TSV, and PSV files as CSV resources.

Description๏ƒ

ResourceImporterCSV imports delimiter-separated source files into CSV resources for use in projects. It supports comma, semicolon, tab, and pipe delimiters, optional headers, parser options, and custom null and boolean mappings.

Properties๏ƒ

String

comment_prefixes

""

int

delimiter

0

String

false_values

""

bool

headers

true

String

null_values

""

int

row_length_mode

0

bool

skip_empty_rows

false

bool

trim_fields

false

String

true_values

""


Property Descriptions๏ƒ

String comment_prefixes = "" ๐Ÿ”—

Comma-separated prefixes for comment rows to skip during import.


int delimiter = 0 ๐Ÿ”—

Delimiter preset used to parse the source file.


String false_values = "" ๐Ÿ”—

Comma-separated field values to convert to false.


bool headers = true ๐Ÿ”—

If true, uses the first accepted row as dictionary keys.


String null_values = "" ๐Ÿ”—

Comma-separated field values to convert to null.


int row_length_mode = 0 ๐Ÿ”—

Controls how short or long rows are handled during import.


bool skip_empty_rows = false ๐Ÿ”—

If true, skips rows that contain only empty fields.


bool trim_fields = false ๐Ÿ”—

If true, trims leading and trailing whitespace from unquoted fields.


String true_values = "" ๐Ÿ”—

Comma-separated field values to convert to true.