# uproot.to_writable

Defined in [uproot.writing.identify](https://github.com/scikit-hep/uproot5/blob/8503a78187b11564abbf517628be5558fba274af/src/uproot/writing/identify.py) on [line 95](https://github.com/scikit-hep/uproot5/blob/8503a78187b11564abbf517628be5558fba274af/src/uproot/writing/identify.py#L95).

### uproot.writing.identify.to_writable(obj)

Converts arbitrary Python object `obj` to a writable [uproot.Model](uproot.model.Model.html.md)
if possible; raises `TypeError` otherwise.

This function is a series of rules that defines what Python data can or cannot be
written to ROOT files. For instance, a 2-tuple of NumPy arrays with the appropriate
dimensions is recognized as a histogram, since NumPy’s `np.histogram` function
produces such objects.

This series of rules is expected to grow with time.
