Export#

Description#

Creates an uncompressed tar archive (.tar) of a package from the given repository.

Instead of directly copying a package from server to server using the mirror command, you can also have WRAPP create a tar archive with all contents of a package for a subsequent import operation.

For usage examples, see the Tutorial. For CLI options, run wrapp export --help.

Python API Reference#

async wrapp.export_package(
catalog: str | None,
repo: str | None,
package_name: str,
version: str,
output: str,
overwrite: bool = False,
dedup=False,
*,
context: CommandParameters = CommandParameters(debug=False, verbose=False, dry_run=False, log_file=None, hash_cache_file=None),
scheduler: SchedulerContext | None = None,
) None#

Take package information and repository location and create an uncompressed tar file of a package from the given package cache

Parameters:
  • catalog – Name of the catalog file that describes the items to export

  • repo – URL of the repository containing the package to be exported

  • output – Name of tar file to create

  • overwrite – Flag to allow overwriting the tar file in case it already exists

  • dedup – Specify this to deduplicate content on export, i.e. don’t store files by their name in the tar but by their hash

  • context – Global configuration parameters

  • scheduler – Optionally pre-constructed SchedulerContext. When calling many functions in a row make sure to pre-construct the scheduler.

Raises:
  • FailedCommand – When prerequisites not matched

  • StorageOperationError – Raised when network or file operations fail