Search bar offers the following options:
Term presence. The below example searches for documents that
must contain “foo”, might contain “bar” and must not contain “baz”:
+foo bar -baz
Wildcards. The below example searches for documents with words beginning with “foo”:
Search in specific fields. The following search matches all objects
in "twisted.mail" that matches “search”:
Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.
Fuzzy matches. The following search matches all documents
that have a word within 1 edit distance of “foo”:
Results provided by Lunr.js
||Spawn a process, with a process protocol.|
Union[ bytes, str]]
Optional[= None, path:
Mapping[ AnyStr, AnyStr]]
Union[= None, uid:
None, bytes, str]
Optional[= None, gid:
Optional[= None, usePTY:
bool= False, childFDs:
Optional[= None) ->
Mapping[ int, Union[ int, str]]]
IProcessTransport: (source) ¶
Spawn a process, with a process protocol.
Arguments given to this function that are listed as
unicode may be encoded or decoded depending on the platform and the argument type given. On UNIX systems (Linux, FreeBSD, macOS) and Python 2 on Windows,
unicode arguments will be encoded down to
bytes using the encoding given by
sys.getfilesystemencoding, to be used with the "narrow" OS APIs. On Python 3 on Windows,
bytes arguments will be decoded up to
unicode using the encoding given by
sys.getfilesystemencoding (utf8) and given to Windows's native "wide" APIs.
|process||An object which will be notified of all events related to the created process.|
|executable:||the file name to spawn - the full path should be used.|
|args:||the command line arguments to pass to the process; a sequence of strings. The first string should be the executable's name.|
the environment variables to pass to the child process. The resulting behavior varies between platforms. If:
|path:||the path to run the subprocess in - defaults to the current directory.|
|uid:||user ID to run the subprocess as. (Only available on POSIX systems.)|
|gid:||group ID to run the subprocess as. (Only available on POSIX systems.)|
|use||if true, run this process in a pseudo-terminal. optionally a tuple of (masterfd, slavefd, ttyname), in which case use those file descriptors. (Not available on all systems.)|
A dictionary mapping file descriptors in the new child process to an integer or to the string 'r' or 'w'.
If the value is an integer, it specifies a file descriptor in the parent process which will be mapped to a file descriptor (specified by the key) in the child process. This is useful for things like inetd and shell-like file redirection.
If it is the string 'r', a pipe will be created and attached to the child at that file descriptor: the child will be able to write to that file descriptor and the parent will receive read notification via the
If it is the string 'w', similar setup to the previous case will occur, with the pipe being readable by the child instead of writeable. The parent process can write to that file descriptor using
If childFDs is not passed, the default behaviour is to use a mapping that opens the usual stdin/stdout/stderr pipes.
|An object which provides |
|Raised with errno EAGAIN or ENOMEM if there are insufficient system resources to create a new process.|