DEFAULT_SOCKET_CANDIDATES
Return the socket candidates in Herdr's documented precedence order. Supplying a named session returns only that session's socket path; otherwise environment variables and the default path are considered.
Return socket candidates in Herdr's documented precedence order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
str | None
|
Optional named Herdr session. When supplied, only that session's socket path is returned. |
None
|
Returns:
| Type | Description |
|---|---|
list[Path]
|
Candidate paths ordered by precedence. Without |
list[Path]
|
|
Example
from herdr_client import DEFAULT_SOCKET_CANDIDATES
candidates = DEFAULT_SOCKET_CANDIDATES(session="work")
print(candidates[0])
Source code in src/herdr_client/transport.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | |