Changes (objetto.changes)

Object changes.

Batch Change

class objetto.changes.Batch(**initial)

Batch change.

Inherits from:
name :  Data Attribute

Name describing the change.

Type

str

metadata :  Data Attribute

Metadata.

Type

objetto.data.DictData[str, Any]

is_atomic :  Data Attribute

Whether change is atomic or not.

Type

bool

Attributes Change

class objetto.changes.Update(**initial)

Object’s attributes have been updated.

Inherits from:
name :  Data Attribute

Name describing the change.

Type

str

old_values :  Data Attribute

Old attribute values.

Type

objetto.data.DictData[str, Any]

new_values :  Data Attribute

New attribute values.

Type

objetto.data.DictData[str, Any]

Dictionary Changes

class objetto.changes.DictUpdate(**initial)

Dictionary values have been updated.

Inherits from:
name :  Data Attribute

Name describing the change.

old_values :  Data Attribute

Old values.

Type

objetto.data.DictData[collections.abc.Hashable, Any]

new_values :  Data Attribute

New values.

Type

objetto.data.DictData[collections.abc.Hashable, Any]

List Changes

class objetto.changes.ListInsert(**initial)

Values have been inserted into the list.

Inherits from:
name :  Data Attribute

Name describing the change.

Type

str

index :  Data Attribute

Insertion index.

Type

int

last_index :  Data Attribute

Last inserted value index.

Type

int

stop :  Data Attribute

Stop index.

Type

int

new_values :  Data Attribute

New values.

Type

objetto.data.ListData[Any]

class objetto.changes.ListDelete(**initial)

Values have been removed from the list.

Inherits from:
name :  Data Attribute

Name describing the change.

Type

str

index :  Data Attribute

First removed value index.

Type

int

last_index :  Data Attribute

Last removed value index.

Type

int

stop :  Data Attribute

Stop index.

Type

int

old_values :  Data Attribute

Old values.

Type

objetto.data.ListData[Any]

class objetto.changes.ListUpdate(**initial)

List values have been updated.

Inherits from:
name :  Data Attribute

Name describing the change.

Type

str

index :  Data Attribute

First updated value index.

Type

int

last_index :  Data Attribute

Last updated value index.

Type

int

stop :  Data Attribute

Stop index.

Type

int

old_values :  Data Attribute

Old values.

Type

objetto.data.ListData[Any]

new_values :  Data Attribute

New values.

Type

objetto.data.ListData[Any]

class objetto.changes.ListMove(**initial)

List values have been moved internally.

Inherits from:
name :  Data Attribute

Name describing the change.

Type

str

index :  Data Attribute

First moved value index.

Type

int

last_index :  Data Attribute

Last moved value index.

Type

int

stop :  Data Attribute

Stop index.

Type

int

target_index :  Data Attribute

Index where values are being moved to.

Type

int

post_index :  Data Attribute

First moved value index after the move.

Type

int

post_last_index :  Data Attribute

Last moved value index after the move.

Type

int

post_stop :  Data Attribute

Stop index after the move.

Type

int

values :  Data Attribute

Values being moved.

Type

objetto.data.ListData[Any]

Set Changes

class objetto.changes.SetUpdate(**initial)

Values have been added to the set.

Inherits from:
name :  Data Attribute

Name describing the change.

Type

str

new_values :  Data Attribute

Values being added to the set.

Type

objetto.data.SetData[collections.abc.Hashable]

class objetto.changes.SetRemove(**initial)

Values have been removed from the set.

Inherits from:
name :  Data Attribute

Name describing the change.

Type

str

old_values :  Data Attribute

Values being removed from the set.

Type

objetto.data.SetData[collections.abc.Hashable]