FieldType

Luo_Suppe2026-08-15

gma.gio.FieldType

[class] FieldType(name = None, dtype = "UNKNOWN"):

Create a FieldType object.

**Optional:

name = str||None. Default None.

The name of the field. None for dtype name.

dtype = str. Default 'UNKNOWN'.

The data type of the field. See `dtypes.DefinedFieldDataTypes` for valid types.

Method

set_precision

[method] .set_precision(precision):

Set the formatting precision for this field in characters.

Parameters:

precision: int.

the new precision.

set_type

[method] .set_type(f_dtype):

Set the formatting width for this field in characters.

Parameters:

f_dtype: int||str.

the new field data type

set_width

[method] .set_width(width):

Set the formatting width for this field in characters.

Parameters:

width: int.

the new width

Property

default

[property] .default

Field default value. --> str/int/float/...

ftype

[property] .ftype

Field data type. --> str

name

[property] .name

Field name. --> str

precision

[property] .precision

Field precision. --> int

width

[property] .width

Field width. --> int

Last Updated 8/19/2026, 6:10:59 AM