pisces.models.core.base.BaseModel.copy_profile#

BaseModel.copy_profile(old_name: str, new_name: str)[source]#

Create a duplicate of an existing profile under a new name.

Parameters:
  • old_name (str) – Name of the existing profile.

  • new_name (str) – Name for the copied profile.

Raises:

KeyError – If old_name does not exist or new_name already exists.