Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé
Python 3.13.2

Contenu du module « subprocess »

Liste des classes du module subprocess

Nom de la classe Description
CompletedProcess A process that has finished running. [extrait de CompletedProcess.__doc__]
Handle
Popen Execute a child program in a new process. [extrait de Popen.__doc__]
STARTUPINFO

Liste des exceptions du module subprocess

Nom de la classe d'exception Description
CalledProcessError Raised when run() is called with check=True and the process [extrait de CalledProcessError.__doc__]
SubprocessError
TimeoutExpired This exception is raised when the timeout expires while waiting for a [extrait de TimeoutExpired.__doc__]

Liste des fonctions du module subprocess

Signature de la fonction Description
call(*popenargs, timeout=None, **kwargs) Run command with arguments. Wait for command to complete or [extrait de call.__doc__]
check_call(*popenargs, **kwargs) Run command with arguments. Wait for command to complete. If [extrait de check_call.__doc__]
check_output(*popenargs, timeout=None, **kwargs) Run command with arguments and return its output. [extrait de check_output.__doc__]
getoutput(cmd, *, encoding=None, errors=None) Return output (stdout or stderr) of executing cmd in a shell. [extrait de getoutput.__doc__]
getstatusoutput(cmd, *, encoding=None, errors=None) Return (exitcode, output) of executing cmd in a shell. [extrait de getstatusoutput.__doc__]
list2cmdline(seq)
run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs) Run command with arguments and return a CompletedProcess instance. [extrait de run.__doc__]

Liste des variables globales du module subprocess

Nom de la variable globale Valeur
ABOVE_NORMAL_PRIORITY_CLASS 32768
BELOW_NORMAL_PRIORITY_CLASS 16384
CREATE_BREAKAWAY_FROM_JOB 16777216
CREATE_DEFAULT_ERROR_MODE 67108864
CREATE_NEW_CONSOLE 16
CREATE_NEW_PROCESS_GROUP 512
CREATE_NO_WINDOW 134217728
DETACHED_PROCESS 8
DEVNULL -3
fcntl None
HIGH_PRIORITY_CLASS 128
IDLE_PRIORITY_CLASS 64
NORMAL_PRIORITY_CLASS 32
PIPE -1
REALTIME_PRIORITY_CLASS 256
STARTF_FORCEOFFFEEDBACK 128
STARTF_FORCEONFEEDBACK 64
STARTF_USESHOWWINDOW 1
STARTF_USESTDHANDLES 256
STD_ERROR_HANDLE 4294967284
STD_INPUT_HANDLE 4294967286
STD_OUTPUT_HANDLE 4294967285
STDOUT -2
SW_HIDE 0


Vous êtes un professionnel et vous avez besoin d'une formation ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé