You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling subprocess for any bash command is mostly inefficient when there is pythonic way/module to do same operation. That would be good from performance point of view to reduce number of subprocess calls. For example, for operation with packages there is rpm python module that can be used for quivering over RPM database, installing/upgrading packages; restarting systemd services can be done by direct signal to bus from dbus python module
The text was updated successfully, but these errors were encountered:
Communication with RPM db and dbus of the system is not worth implementing, calling corresponding commands from the subprocess seems to be a more easy way. But what can be reduced, is communicating with IPA server via its Python API
Calling subprocess for any bash command is mostly inefficient when there is pythonic way/module to do same operation. That would be good from performance point of view to reduce number of subprocess calls. For example, for operation with packages there is
rpm
python module that can be used for quivering over RPM database, installing/upgrading packages; restarting systemd services can be done by direct signal to bus fromdbus
python moduleThe text was updated successfully, but these errors were encountered: