poprox_concepts.domain.demographics#

Classes

Demographics(*[, demographic_id, email_client])

class poprox_concepts.domain.demographics.Demographics(*, demographic_id=None, account_id, gender, birth_year, zip3, education, race, email_client=None)#

Bases: BaseModel

Parameters:
  • demographic_id (UUID)

  • account_id (UUID)

  • gender (str)

  • birth_year (int)

  • zip3 (str)

  • education (str)

  • race (str)

  • email_client (str | None)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}#

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

model_fields: ClassVar[dict[str, FieldInfo]] = {'account_id': FieldInfo(annotation=UUID, required=True), 'birth_year': FieldInfo(annotation=int, required=True), 'demographic_id': FieldInfo(annotation=UUID, required=False, default=None), 'education': FieldInfo(annotation=str, required=True), 'email_client': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'gender': FieldInfo(annotation=str, required=True), 'race': FieldInfo(annotation=str, required=True), 'zip3': FieldInfo(annotation=str, required=True)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.