module documentation

defines generic type conversion functions, as used in bind and result processors. They all share one common characteristic: None is passed through unchanged.

Function int_to_boolean Undocumented
Function str_to_date Undocumented
Function str_to_datetime Undocumented
Function str_to_datetime_processor_factory Undocumented
Function str_to_time Undocumented
Function to_decimal_processor_factory Undocumented
Function to_float Undocumented
Function to_str Undocumented
Type Variable _DT Undocumented
def int_to_boolean(value: Optional[int]) -> Optional[bool]: (source)

Undocumented

def str_to_date(value: Optional[str]) -> Optional[datetime.date]: (source)

Undocumented

def str_to_datetime(value: Optional[str]) -> Optional[datetime.datetime]: (source)

Undocumented

def str_to_datetime_processor_factory(regexp: typing.Pattern[str], type_: Callable[..., _DT]) -> Callable[[Optional[str]], Optional[_DT]]: (source)

Undocumented

def str_to_time(value: Optional[str]) -> Optional[datetime.time]: (source)

Undocumented

def to_decimal_processor_factory(target_class: Type[Decimal], scale: int) -> Callable[[Optional[float]], Optional[Decimal]]: (source)

Undocumented

def to_float(value: Optional[Union[int, float]]) -> Optional[float]: (source)

Undocumented

def to_str(value: Optional[Any]) -> Optional[str]: (source)

Undocumented