Are there Python3 libraries for the net commands and etc?

Jeremy Allison jra at
Mon Mar 28 16:11:18 UTC 2022

On Sun, Mar 27, 2022 at 09:21:38AM -0700, Richard Sharpe via samba-technical wrote:
>Hi folks,
>A lot of system management scripts these days are implemented in
>Python and I am sick of using popen and system in python to run Samba
>commands and then grub through the output to figure out what I need.
>Are there any Python3 libraries that provide the functionality of the
>net commands?

I don't think so. The only python SMB stuff I'm aware of is:

I think only Samba does the management stuff. However,
most of our management stuff is drivable directly from
python, as that's how we do much of the testing.

Talk to David Mulder from SuSE or some of the Catalyst
Team as they know much more about this than I.

More information about the samba-technical mailing list