path()

audfactory.path(url)[source]

Authenticate at Artifactory and get path object.

You can set your username and API key in the console:

$ export ARTIFACTORY_USERNAME=...
$ export ARTIFACTORY_API_KEY=...

If they are not specified, they are read from ~/.artifactory_python.cfg by matching url against the available entries to pick the matching Artifactory server.

Parameters

url (str) – URL to path on Artifactory

Return type

ArtifactoryPath

Returns

Artifactory path object similar to pathlib.Path

Examples

>>> artifactory_path = path(
...     'https://audeering.jfrog.io/artifactory/data-public/emodb/'
... )
>>> for content in artifactory_path:
...     print(os.path.basename(str(content)))
...
attachment
db
media
meta