parseur.schemas.paserfield

Classes

FieldFormat

Enumeration of the data formats a parser field can have.

TableFieldReadSchema

A table field as summarised in a mailbox's table_set (id + name).

ParserFieldBaseSchema

Properties shared by the read and write representations of a parser field.

ParserFieldReadSchema

Read schema for a parser field returned by the API.

ParserFieldWriteSchema

Write schema for a parser field.

Module Contents

class parseur.schemas.paserfield.FieldFormat[source]

Bases: str, enum.Enum

Enumeration of the data formats a parser field can have.

Used as the format of a field when creating or updating a mailbox’s fields (parser_object_set).

TEXT = 'TEXT'[source]
ONELINE = 'ONELINE'[source]
DATE = 'DATE'[source]
TIME = 'TIME'[source]
DATETIME = 'DATETIME'[source]
NUMBER = 'NUMBER'[source]
NAME = 'NAME'[source]
ADDRESS = 'ADDRESS'[source]
TABLE = 'TABLE'[source]
class parseur.schemas.paserfield.TableFieldReadSchema[source]

Bases: parseur.schemas.BaseSchema

A table field as summarised in a mailbox’s table_set (id + name).

id[source]
name[source]
class parseur.schemas.paserfield.ParserFieldBaseSchema[source]

Bases: parseur.schemas.BaseSchema

Properties shared by the read and write representations of a parser field.

Both serializing API responses and validating create/update request bodies rely on these common fields, so they are declared once here.

name[source]
format[source]
query[source]
choice_set[source]
class parseur.schemas.paserfield.ParserFieldReadSchema[source]

Bases: ParserFieldBaseSchema

Read schema for a parser field returned by the API.

id[source]
type[source]
is_required[source]
used_by_ai[source]
csv_download[source]
json_download[source]
xls_download[source]
parser_object_set[source]
class parseur.schemas.paserfield.ParserFieldWriteSchema[source]

Bases: ParserFieldBaseSchema

Write schema for a parser field.

Used to validate and serialize each entry of a mailbox’s parser_object_set. Unknown fields are rejected so read-only properties (type, csv_download, …) and typos never reach the API silently. Pass id to update an existing field; omit it to create a new one.

class Meta[source]
unknown[source]
ordered = True[source]
id[source]
is_required[source]
used_by_ai[source]
_destroy[source]
parser_object_set[source]