Low-level API¶
This API is built on top of REST API endpoints exposed by Renku services.
Warning
Renku services are currently in beta preview status and they are subject to change in forseenable future.
HTTP clients for Renku platform.
-
class
renku.api.LocalClient(path=NOTHING, renku_home='.renku', datadir='data')[source]¶ A low-level client for communicating with a local Renku repository.
Example:
>>> import renku >>> client = renku.LocalClient('.')
Datasets¶
Client for handling datasets.
Repository¶
Client for handling a local repository.
-
class
renku.api.repository.RepositoryApiMixin(renku_home='.renku')[source]¶ Client for handling a local repository.
-
LOCK_SUFFIX= '.lock'¶ Default suffix for Renku lock file.
-
METADATA= 'metadata.yml'¶ Default name of Renku config file.
-
WORKFLOW= 'workflow'¶ Directory for storing workflow in Renku.
-
git= None¶ Store an instance of the Git repository.
-
init_repository(name=None, force=False, use_external_storage=True)[source]¶ Initialize a local Renku repository.
-
lock¶ Create a Renku config lock.
-
renku_home= None¶ Define a name of the Renku folder (default:
.renku).
-
renku_metadata_path¶ Return a
Pathinstance of Renku metadata file.
-
renku_path= None¶ Store a
Pathinstance of the Renku folder.
-
workflow_path¶ Return a
Pathinstance of the workflow folder.
-