-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e5abcf
commit 54000bb
Showing
39 changed files
with
500 additions
and
471 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
9 changes: 4 additions & 5 deletions
9
plugins/noauth/fps_noauth/models.py → jupyverse_api/jupyverse_api/auth/models.py
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,15 +1,14 @@ | ||
from typing import Optional | ||
from __future__ import annotations | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class User(BaseModel): | ||
anonymous: bool = True | ||
username: str = "" | ||
name: str = "" | ||
display_name: str = "" | ||
initials: Optional[str] = None | ||
color: Optional[str] = None | ||
avatar_url: Optional[str] = None | ||
initials: str | None = None | ||
color: str | None = None | ||
avatar_url: str | None = None | ||
workspace: str = "{}" | ||
settings: str = "{}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
from typing import Dict, List, Optional, Union | ||
from __future__ import annotations | ||
from typing import Dict, List, Union | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class Content(BaseModel): | ||
name: str | ||
path: str | ||
last_modified: Optional[str] | ||
created: Optional[str] | ||
content: Optional[Union[str, Dict, List[Dict]]] | ||
format: Optional[str] | ||
mimetype: Optional[str] | ||
size: Optional[int] | ||
last_modified: str | None | ||
created: str | None | ||
content: Union[str, Dict, List[Dict]] | None | ||
format: str | None | ||
mimetype: str | None | ||
size: int | None | ||
writable: bool | ||
type: str | ||
|
||
|
||
class SaveContent(BaseModel): | ||
content: Optional[Union[str, Dict]] | ||
content: Union[str, Dict] | None | ||
format: str | ||
path: str | ||
type: str |
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,14 +1,16 @@ | ||
from typing import Optional | ||
from __future__ import annotations | ||
from abc import ABC, abstractmethod | ||
from pathlib import Path | ||
|
||
from jupyverse_api import Router, Config | ||
|
||
|
||
class Kernels(Router): | ||
class Kernels(Router, ABC): | ||
@abstractmethod | ||
async def watch_connection_files(self, path: Path) -> None: | ||
raise RuntimeError("Not implemented") | ||
... | ||
|
||
|
||
class KernelsConfig(Config): | ||
default_kernel: str = "python3" | ||
connection_path: Optional[str] = None | ||
connection_path: str | None = None |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
from abc import ABC, abstractmethod | ||
from pathlib import Path | ||
from typing import Any, Dict, List, Tuple | ||
|
||
from fastapi import APIRouter | ||
from jupyverse_api import Router | ||
|
||
|
||
class Lab(Router): | ||
class Lab(Router, ABC): | ||
@abstractmethod | ||
def init_router( | ||
self, router: APIRouter, redirect_after_root: str | ||
) -> Tuple[Path, List[Dict[str, Any]]]: | ||
raise RuntimeError("Not implemented") | ||
... | ||
|
||
@abstractmethod | ||
def get_federated_extensions(self, extensions_dir: Path) -> Tuple[List, List]: | ||
raise RuntimeError("Not implemented") | ||
... |
Oops, something went wrong.