pylspci 0.4.3
“Simple parser for lspci -mmnn.”
Imports Python's subprocess moduleChild-process launch capability
SHA-2563868a5b899692898472cb6554c8467ef2a49549c8262b4ebd967431678925dd8
MaleculeH₂(DbPo₂)Md(Pa)
Evidence
87:2… """
88 if isinstance(args, str):
89 args = shlex.split(args)
90 return Device(**vars(self._parser.parse_args(args)))
91
92 def run(self, **kwargs: Any) -> List[Device]:
93 i …
1import subprocess
2from enum import Enum
3from pathlib import Path
4from typing import (
5 Any, Iterator, List, Mapping, MutableMapping, Optional, …
⋯6 lines
139 args.append('-O{}={}'.format(key, value))
140
141 return subprocess.check_output(
142 args,
143 universal_newlines=True,
⋯11 lines
379:42… e: bool = True) -> 'CommandBuilder':
380 """
381 Under Linux, includes the available kernel modules for each device.
382 Implies ``.verbose()``.
383
⋯3 lines
No evidence locations were recorded for this file. Raw result