Can History be accessed programmatically?

I was wondering if I can activate/deactivate the history on objects and assign which object they should be “affiliated” with using Python/c#/ ?

Similar to the links inside GH definition but without GH.
Or it is recommended that I use gh components inside Python script instead?

Sorry, no.

– Dale