module documentation

Provider-free Python views over authoritative direct WKT messages.

Function datetime_to_timestamp Normalize a datetime/serializable timestamp into the localized direct type.
Function duration_to_timedelta Return a timedelta view using protobuf's sub-microsecond truncation.
Function request_status_to_status Normalize an SDK/direct Status into the localized direct type.
Function status_to_request_status Return an SDK status view retaining the direct value's registry.
Function timedelta_to_duration Normalize a timedelta/serializable duration into the localized direct type.
Function timestamp_to_datetime Return a local-time datetime view without mutating the direct message.
Variable local_timezone Undocumented
Function _coerce_direct_message Undocumented
Function _protobuf_full_name Undocumented
Constant _EPOCH Undocumented
Constant _TIMESTAMP_MAX_SECONDS Undocumented
Constant _TIMESTAMP_MIN_SECONDS Undocumented
def datetime_to_timestamp(value: object, factory: Callable[[], type[Any]]) -> Any: (source)

Normalize a datetime/serializable timestamp into the localized direct type.

def duration_to_timedelta(value: Any) -> timedelta: (source)

Return a timedelta view using protobuf's sub-microsecond truncation.

def request_status_to_status(value: object, factory: Callable[[], type[Any]]) -> Any: (source)

Normalize an SDK/direct Status into the localized direct type.

def status_to_request_status(value: Any) -> Any: (source)

Return an SDK status view retaining the direct value's registry.

def timedelta_to_duration(value: object, factory: Callable[[], type[Any]]) -> Any: (source)

Normalize a timedelta/serializable duration into the localized direct type.

def timestamp_to_datetime(value: Any) -> datetime: (source)

Return a local-time datetime view without mutating the direct message.

local_timezone = (source)

Undocumented

def _coerce_direct_message(value: object, message_type: type[Any], name: str) -> Any: (source)

Undocumented

def _protobuf_full_name(value: object) -> str | None: (source)

Undocumented

Undocumented

Value
datetime(1970, 1, 1,
         tzinfo=timezone.utc)
_TIMESTAMP_MAX_SECONDS: int = (source)

Undocumented

Value
253402300799
_TIMESTAMP_MIN_SECONDS: int = (source)

Undocumented

Value
-62135596800