The behavior of pycaosdb is defined via a configuration that is provided using configuration files.
The behavior of pycaosdb is defined via the [configuration](https://caosdb.gitlab.io/caosdb-pylib/_apidoc/caosdb.html#module-caosdb.configuration) module, initial values are taken from
the configuration files.
Pycaosdb tries to read from the inifile specified in the environment variable `PYCAOSDBINI` or
Pycaosdb tries to read from the inifile specified in the environment variable `PYCAOSDBINI` or
alternatively in `~/.pycaosdb.ini` upon import. After that, the ini file `pycaosdb.ini` in the
alternatively in `~/.pycaosdb.ini` upon import. After that, the ini file `pycaosdb.ini` in the
current working directory will be read additionally, if it exists.
current working directory will be read additionally, if it exists.
...
@@ -14,9 +11,9 @@ can be changed by setting `password_method`:
...
@@ -14,9 +11,9 @@ can be changed by setting `password_method`:
* with `password_method=input` password (and possibly user) will be queried on demand (**default**)
* with `password_method=input` password (and possibly user) will be queried on demand (**default**)
* use the password manager [pass](https://www.passwordstore.org) by using `pass` as value, see also the [ArchWiki
* use the password manager [pass](https://www.passwordstore.org) by using `pass` as value, see also the [ArchWiki
entry](https://wiki.archlinux.org/index.php/Pass#Basic_usage). This also requires ```password_identifier``` which refers to the identifier within pass
entry](https://wiki.archlinux.org/index.php/Pass#Basic_usage). This also requires `password_identifier` which refers to the identifier within pass
for the desired password.
for the desired password.
* install the python package [keyring](https://pypi.org/project/keyring), to use the system keychain/wallet (macOS, GNOME, KDE,
* install the python package [keyring](https://pypi.org/project/keyring), to use the system keyring/wallet (macOS, GNOME, KDE,
Windows). The password will be queried on first usage.
Windows). The password will be queried on first usage.
* with `password_method=plain` (**strongly discouraged**)
* with `password_method=plain` (**strongly discouraged**)
...
@@ -50,4 +47,8 @@ cacert=/path/to/caosdb.ca.pem
...
@@ -50,4 +47,8 @@ cacert=/path/to/caosdb.ca.pem
`debug=0` ensures that debug information is **not** printed to the terminal every time you interact
`debug=0` ensures that debug information is **not** printed to the terminal every time you interact
with CaosDB which makes the experience much less verbose. Set it to 1 or 2 in case you want to help
with CaosDB which makes the experience much less verbose. Set it to 1 or 2 in case you want to help
debugging (which I hope will not be necessary for this tutorial) or if you want to learn more about
debugging (which I hope will not be necessary for this tutorial) or if you want to learn more about
the internals of the procotol
the internals of the protocol.
A complete list of options can be found in the
[pycaosdb.ini file](https://gitlab.com/caosdb/caosdb-pylib/-/blob/master/examples/pycaosdb.ini) in