openlayer.OpenlayerClient.export#
- OpenlayerClient.export(destination_dir, project_id)#
Exports the commited resources as a tarfile to the location specified by
destination_dir
.This is useful if you want to drag and drop the tarfile into the platform’s UI to upload it instead of using the
push
method.- Parameters
- destination_dirstr
Directory path to where the project’s staging area should be exported.
Notes
- To use this method, you must first have committed your changes with the
commit
method.
- To use this method, you must first have committed your changes with the
Examples
Let’s say you have a project with a model and a dataset staged and committed. You can confirm these resources are indeed in the staging area using the
status
method:>>> project.status()
You should see the staged resources as well as the commit message associated with them.
Now, you can export the resources to a speficied location with:
>>> project.export(destination_dir="/path/to/destination")