openlayer.Project.export#

Project.export(*args, **kwargs)#

Exports the commit bundle as a tarfile to the location specified by destination_dir.

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.

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")