Skip to main content

ObType

This enum defines the supported object types for serialization and validation, covering built-in Python primitives, sequence types, and mapping types. It includes specialized categories for datetime objects, network addresses, and Pydantic-specific serializable structures. The class serves as a comprehensive registry to identify and categorize data types during processing.

Attributes

AttributeTypeDescription
None[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a null or missing value type.
Int[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a standard integer numeric type.
IntSubclass[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a user-defined subclass of a standard integer.
Bool[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a boolean truth value.
Float[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a floating-point numeric type.
FloatSubclass[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a user-defined subclass of a floating-point number.
Decimal[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a high-precision decimal numeric type.
Str[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a standard UTF-8 string type.
StrSubclass[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a user-defined subclass of a string.
Bytes[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents an immutable sequence of bytes.
Bytearray[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a mutable sequence of bytes.
List[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a mutable ordered sequence of elements.
Tuple[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents an immutable ordered sequence of elements.
Set[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a mutable unordered collection of unique elements.
Frozenset[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents an immutable unordered collection of unique elements.
Dict[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a mapping of keys to values.
Datetime[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a combined date and time value.
Date[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a calendar date value.
Time[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a clock time value.
Timedelta[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a duration or difference between two dates or times.
Url[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a uniform resource locator string.
MultiHostUrl[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a URL that may contain multiple host definitions.
PydanticSerializable[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents any object implementing pydantic_serializer, such as BaseModel or pydantic dataclasses.
Dataclass[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a standard Python dataclass.
Enum[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a member of an enumeration type.
Generator[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a Python generator or iterator type.
Path[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a filesystem path string or object.
Pattern[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a compiled regular expression pattern.
Uuid[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a universally unique identifier.
Complex[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a complex numeric type with real and imaginary parts.
Ipv4Address[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a single IPv4 address.
Ipv6Address[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents a single IPv6 address.
Ipv4Network[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents an IPv4 network interface or subnet.
Ipv6Network[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents an IPv6 network interface or subnet.
Unknown[ObType](obtype.md?sid=serializers_ob_type_obtype)Represents an unidentified or unsupported object type.

Methods


None()

def None()

Represents a null or None value type.


Int()

def Int()

Represents a standard integer type.


IntSubclass()

def IntSubclass()

Represents a user-defined subclass of the standard integer type.


Bool()

def Bool()

Represents a boolean value type.


Float()

def Float()

Represents a standard floating-point number type.


FloatSubclass()

def FloatSubclass()

Represents a user-defined subclass of the standard float type.


Decimal()

def Decimal()

Represents a fixed-point decimal number type.


Str()

def Str()

Represents a standard string type.


StrSubclass()

def StrSubclass()

Represents a user-defined subclass of the standard string type.


Bytes()

def Bytes()

Represents an immutable sequence of bytes.


Bytearray()

def Bytearray()

Represents a mutable sequence of bytes.


List()

def List()

Represents a mutable sequence of objects.


Tuple()

def Tuple()

Represents an immutable sequence of objects.


Set()

def Set()

Represents a mutable collection of unique objects.


Frozenset()

def Frozenset()

Represents an immutable collection of unique objects.


Dict()

def Dict()

Represents a mapping of keys to values.


Datetime()

def Datetime()

Represents a combined date and time value.


Date()

def Date()

Represents a calendar date value.


Time()

def Time()

Represents a time of day value.


Timedelta()

def Timedelta()

Represents the difference between two dates or times.


Url()

def Url()

Represents a Uniform Resource Locator.


MultiHostUrl()

def MultiHostUrl()

Represents a URL that supports multiple hosts.


PydanticSerializable()

def PydanticSerializable()

Represents any object implementing pydantic_serializer, such as BaseModel or pydantic dataclasses.


Dataclass()

def Dataclass()

Represents a standard Python dataclass.


Enum()

def Enum()

Represents an enumeration type.


Generator()

def Generator()

Represents a generator object or iterator.


Path()

def Path()

Represents a file system path.


Pattern()

def Pattern()

Represents a compiled regular expression pattern.


Uuid()

def Uuid()

Represents a Universally Unique Identifier.


Complex()

def Complex()

Represents a complex number type.


Ipv4Address()

def Ipv4Address()

Represents an IPv4 address.


Ipv6Address()

def Ipv6Address()

Represents an IPv6 address.


Ipv4Network()

def Ipv4Network()

Represents an IPv4 network range.


Ipv6Network()

def Ipv6Network()

Represents an IPv6 network range.


Unknown()

def Unknown()

Represents an unrecognized or unsupported type.