Publishing USD layer via python

I wonder if it’s possible to publish USD layer directly from python without any DCC or GUI?