PyLinkAhead Configuration Reference#
PyLinkAhead is configured using ini configuration files. The files are read in the following
order:
The file specified in the environment variable
PYLINKAHEADINI(useful for CI/CD pipelines or when switching between multiple configurations)~/.pylinkahead.ini(user home directory)pylinkahead.iniin the current working directory (if it exists)
Later files override earlier ones. This means you can keep shared settings in ~/.pylinkahead.ini
and override specific values per project using a local pylinkahead.ini. You can download the
example pylinkahead.ini file
as a starting point.
At least, you need to set the url and username fields.
Note
To try PyLinkAhead against the public demo instance at https://demo.indiscale.com, use
username=admin with password_method=plain and password=caosdb.
Settings#
All settings go under the [Connection] section of the ini file:
[Connection]
url=...
username=...
urlThe URL of the LinkAhead server (e.g.
https://demo.indiscale.com).usernameThe username for authentication.
password_methodControls how the password is provided. Accepted values:
input: query the password on demand (default)pass: use the pass password manager; requirespassword_identifierkeyring: use the system keyring/wallet (macOS, GNOME, KDE, Windows); requires the keyring packageplain: read the plain-text password stored in thepasswordfield of the ini file (strongly discouraged)
password_identifierThe identifier within
passfor the desired password. Only used whenpassword_method=pass.passwordThe plain-text password. Only used when
password_method=plain.auth_tokenAn authentication token for connecting to the server. Not recommended for regular users.
cacertPath to the SSL CA certificate file for the connection (e.g.
/path/to/linkahead.ca.pem).ssl_insecureSet to
Trueto skip SSL certificate validation. This leaves the connection vulnerable to man-in-the-middle attacks. Use with care.ssl_versionThe SSL protocol version to use, given as the name of the corresponding attribute in Python’s
sslmodule (e.g.PROTOCOL_TLS).debugSet to
0to suppress debug output (default). Set to1or2for verbose output useful for debugging or learning about the protocol internals.timeoutSets the timeout in seconds for requests to the server.
socket_proxyAddress of a SOCKS4 or SOCKS5 proxy (e.g.
localhost:12345), for reaching a server behind a firewall tunnelled viassh -Dor a dedicated proxy server.
For the full list of available options with defaults, see the pylinkahead.ini example file.