Reference

pynamodb_single_table

PynamoDB Single Table.

class pynamodb_single_table.SingleTableBaseModel(*, uid=None, version=None)
Parameters:
  • uid (UUID | None)

  • version (int)

exception DoesNotExist
exception MultipleObjectsFound
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_post_init(context, /)

This function is meant to behave like a BaseModel method to initialise private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self (BaseModel) – The BaseModel instance.

  • context (Any) – The context.

Return type:

None