gitspy

Intuitive Git for Python.

class gitspy.Git[source]

Bases: Subprocess

Git commands as class attributes.

@DynamicAttrs

call(*args: str, **kwargs: bool | str | PathLike) int[source]

Call partial git command instantiated in superclass.

Parameters:
*args: str

Command’s positional arguments.

Key file:

File path to write the stdout stream to.

Key capture:

Pipe stream to self.

Key devnull:

Suppress output.

Key suppress:

Suppress errors and continue running.

Raises:

CalledProcessError – If error occurs in subprocess.

Returns:

Exit status.