# copy\_project

<pre class="language-python"><code class="lang-python">dbnl.copy_project(
    *,
    project: <a data-footnote-ref href="#user-content-fn-1">Project</a>,
    name: str,
    description: Optional[str] = None,
) -> <a data-footnote-ref href="#user-content-fn-1">Project</a>:
</code></pre>

## Parameters

<table><thead><tr><th width="173">Arguments</th><th>Description</th></tr></thead><tbody><tr><td><code>project</code></td><td>The <a href="../../sdk-objects/project">Project</a> to copy.</td></tr><tr><td><code>name</code></td><td>The name for the new dbnl <a href="../../sdk-objects/project">Project</a>. Project names must be unique; an error will be raised if there exists a Project with the same name. </td></tr><tr><td><code>description</code></td><td>An optional description for the dbnl Project, defaults to <code>None</code>. Description is limited to 255 characters.</td></tr></tbody></table>

## Returns

<table><thead><tr><th width="167">Type</th><th>Description</th></tr></thead><tbody><tr><td><a href="../../sdk-objects/project">Project</a></td><td>The newly created dbnl Project.</td></tr></tbody></table>

## Examples

```python
import dbnl
dbnl.login()


proj1 = dbnl.get_or_create_project(name="test_proj1")
proj2 = dbnl.copy_project(project=proj1, name="test_proj2")

assert proj2.name == "test_proj2"
```

[^1]: [Project](https://docs.dbnl.com/v0.20.x/using-distributional/python-sdk/sdk-objects/project)
