Skip to content

Export

JSON and CSV export.

nimbusimage.export.ExportAccessor

to_json(include_annotations=True, include_connections=True, include_properties=True, include_property_values=True)

Export dataset as JSON.

to_csv(property_paths, delimiter=',', undefined_value='', sanitize_column_names=False, path=None)

Export dataset as CSV.

Parameters:

Name Type Description Default
property_paths list[list[str]]

List of property path lists (e.g., [["propId", "Area"]]).

required
delimiter str

CSV delimiter.

','
undefined_value str

Value for undefined fields.

''
sanitize_column_names bool

Replace spaces, slashes, commas, and other non-alphanumeric column-name characters with underscores.

False
path str | None

If provided, write to this file path.

None

Returns:

Type Description
bytes

CSV bytes (also written to path if provided).