Attribute data types

Pony supports the following attribute types:

  • str

  • unicode

  • int

  • float

  • Decimal

  • datetime

  • date

  • time

  • timedelta

  • bool

  • buffer - used for binary data in Python 2 and 3

  • bytes - used for binary data in Python 3

  • LongStr - used for large strings

  • LongUnicode - used for large strings

  • UUID

  • Json - used for mapping to native database JSON type

  • IntArray - array of integers

  • StrArray - array of strings

  • FloatArray - array of floats

See the Attribute types part of the API Reference for more information.