-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Refine the constructor of Project to hide repositories (#1194)
Closes #1160 This PR intends to ease the project API by centralizing all the action in the constructor. To note: - Remove all actions from the CLI except "launch UI", which implicitly create the specified project. - Rename the command `skore` to `skore-ui`. - Release the constraints on project name. - Remove all project management scripts and `open` function in favor of the project class constructor. - Create implicitly the project when calling the constructor. - Add project `clear` function to allow user to **explicitly** clear a project. --- ```python # create project import skore project = skore.Project("project.skore") ``` ```python # work on existing project import skore project = skore.Project("project.skore", exist_ok=True) ``` ```python # work on existing project and clear explicitly import skore project = skore.Project("project.skore", exist_ok=True) project.clear() ``` ```python # work on existing project, but without knowing it import skore project = skore.Project("project.skore") --------------------------------------------------------------------------- FileExistsError Traceback (most recent call last) [...] FileExistsError: Project 'project.skore' already exists. ```
- Loading branch information
1 parent
66ca391
commit a8301b8
Showing
34 changed files
with
228 additions
and
837 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
"""Implement view primitives and storage.""" | ||
|
||
from .view import View | ||
|
||
__all__ = ["View"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
"""Alias top level function and class of the project submodule.""" | ||
|
||
from .open import open | ||
from .project import Project | ||
|
||
__all__ = [ | ||
"open", | ||
"Project", | ||
] |
Oops, something went wrong.