new()
Create a new Python project with your defaults.
Usage
new(
name: str | None = None,
location: str | Path | None = None,
type: str | None = None,
*,
workflow: str | None = None,
tools: Mapping[str, bool] | Sequence[str] | None = None,
package_sets: Sequence[str] = (),
skill_sets: Sequence[str] = (),
blueprint: str | None = None,
structure: str | None = None,
skills: Sequence[str] = (),
sensitive: bool | None = None,
ai: bool | Mapping[str, Any] | None = None,
git: bool | None = None,
key: str | None = None,
interactive: bool | None = None,
offline: bool = False,
) -> Path
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| name | str | None | None |
Project name. Asked for when interactive. |
| location | str | Path | None | None |
The project folder to create. Asked for when interactive. |
| type | str | None | None |
project, project_sensitive, course, presentation, or bare. When you are logged in to Framework Cloud, every choice is resolved there: a type is its system blueprint ( |
| workflow | str | None | None |
How notebooks are written: |
| tools | Mapping[str, bool] | Sequence[str] | None | None |
Tools to turn on, as a list of ids such as |
| package_sets | Sequence[str] | () |
Package sets to add. Offline, a bundled set; with |
| skill_sets | Sequence[str] | () |
Skill sets to add, such as |
| blueprint | str | None | None |
A Framework Cloud blueprint handle, such as |
| structure | str | None | None |
A Framework Cloud structure handle, such as |
| skills | Sequence[str] | () |
Skill handles to add on Framework Cloud. Needs |
| sensitive | bool | None | None |
Turn the sensitive-data setting on or off. Needs |
| ai | bool | Mapping[str, Any] | None | None |
Turn AI assistants on or off, or a map such as |
| git | bool | None | None |
Turn git on or off. Needs |
| key | str | None | None |
A Framework Cloud project token. The project's definition (its layers) is fetched from the cloud, and the token is saved in the new project's |
| interactive | bool | None | None |
Whether to prompt. Default: whether stdin is a terminal. |
| offline | bool | False |
Build from Framework's built-in defaults without contacting Framework Cloud. When you are logged in and pass no choices, |
Value
The project folder.