authentification()

audfactory.authentification(url)[source]

Look for username and API key.

It first looks for the two environment variables ARTIFACTORY_USERNAME and ARTIFACTORY_API_KEY.

If some of them or both are missing, it tries to extract them from the ~/.artifactory_python.cfg config file. For that it removes http:// or https:// from the beginning of url and everything that comes after /artifactory. E.g. for https://audeering.jfrog.io/artifactory/data-public/emodb it will look for an entry in the config file under [audeering.jfrog.io/artifactory].

If it cannot find the config file or a matching entry in the config file it will set the username to anonymous and the API key to an empty string. If your Artifactory server is configured to allow anonymous users you will be able to access the server this way.

Parameters

url – URL of Artifactory server, e.g. https://audeering.jfrog.io/artifactory

Return type

Tuple[str, str]

Returns

username and API key