# uproot.from_pyroot

Defined in [uproot.pyroot](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/pyroot.py) on [line 214](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/pyroot.py#L214).

### uproot.pyroot.from_pyroot(obj)

* **Parameters:**
  **obj** (*PyROOT object inheriting from TObject*) – PyROOT object to convert to
  an Uproot [uproot.Model](uproot.model.Model.html.md).

Converts a PyROOT object into its corresponding Uproot [uproot.Model](uproot.model.Model.html.md)
*if it is readable by Uproot*. Most ROOT classes are readable by Uproot. Readability
is necessary for conversion from PyROOT because the object is serialized through a
ROOT TMessage.
