% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/infra__python_bridge.R
\name{.py_get}
\alias{.py_get}
\title{Safe Python Field Extraction}
\usage{
.py_get(obj, field, default = NULL, as_type = NULL)
}
\arguments{
\item{obj}{Object to extract from (typically a reticulate Python object)}

\item{field}{Field name to extract}

\item{default}{Value to return if extraction fails}

\item{as_type}{Optional coercion function (e.g., \code{as.integer})}
}
\value{
Extracted value, or \code{default} on failure
}
\description{
Safely extracts a field from a Python/reticulate object with optional
type coercion. Handles NULL, missing fields, and conversion errors.
}
\keyword{internal}
