Move files
This commit is contained in:
parent
3cf28379e8
commit
00cc8225c5
159 changed files with 31 additions and 49 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -43,7 +43,7 @@ jobs:
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Unit test coverage (Python ${{ matrix.python-version }})
|
name: Unit test coverage (Python ${{ matrix.python-version }} - ${{ matrix.operating-system }})
|
||||||
path: "*.xml"
|
path: "*.xml"
|
||||||
|
|
||||||
sonar:
|
sonar:
|
||||||
|
|
|
||||||
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
|
@ -6,6 +6,7 @@
|
||||||
"botocore",
|
"botocore",
|
||||||
"Convolutional",
|
"Convolutional",
|
||||||
"datatable",
|
"datatable",
|
||||||
|
"deduplicated",
|
||||||
"displaylogo",
|
"displaylogo",
|
||||||
"downsample",
|
"downsample",
|
||||||
"fastapi",
|
"fastapi",
|
||||||
|
|
|
||||||
|
|
@ -8,20 +8,19 @@ from threading import Event
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import uvicorn
|
import uvicorn
|
||||||
|
from parse_arguments import parse_arguments
|
||||||
from uvicorn._subprocess import get_subprocess
|
from uvicorn._subprocess import get_subprocess
|
||||||
from uvicorn.config import LOGGING_CONFIG, Config
|
from uvicorn.config import LOGGING_CONFIG, Config
|
||||||
from uvicorn.supervisors.basereload import BaseReload
|
from uvicorn.supervisors.basereload import BaseReload
|
||||||
from watchdog.events import FileSystemEvent, PatternMatchingEventHandler
|
from watchdog.events import FileSystemEvent, PatternMatchingEventHandler
|
||||||
from watchdog.observers import Observer
|
from watchdog.observers import Observer
|
||||||
|
|
||||||
|
from great_ai.constants import SERVER_NAME
|
||||||
|
from great_ai.context import _is_in_production_mode
|
||||||
|
from great_ai.deploy import GreatAI
|
||||||
|
from great_ai.exceptions import ArgumentValidationError, MissingArgumentError
|
||||||
from great_ai.utilities import get_logger
|
from great_ai.utilities import get_logger
|
||||||
|
|
||||||
from .great_ai.constants import SERVER_NAME
|
|
||||||
from .great_ai.context import _is_in_production_mode
|
|
||||||
from .great_ai.deploy import GreatAI
|
|
||||||
from .great_ai.exceptions import ArgumentValidationError, MissingArgumentError
|
|
||||||
from .parse_arguments import parse_arguments
|
|
||||||
|
|
||||||
logger = get_logger(SERVER_NAME)
|
logger = get_logger(SERVER_NAME)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
from great_ai.large_file import LargeFileMongo, LargeFileS3
|
from .large_file import LargeFileMongo, LargeFileS3
|
||||||
|
|
||||||
from .persistence.mongodb_driver import MongodbDriver
|
from .persistence.mongodb_driver import MongodbDriver
|
||||||
|
|
||||||
ENV_VAR_KEY = "ENVIRONMENT"
|
ENV_VAR_KEY = "ENVIRONMENT"
|
||||||
|
|
@ -6,9 +6,6 @@ from typing import Any, Dict, Optional, Type, cast
|
||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
from great_ai.large_file import LargeFileBase, LargeFileLocal
|
|
||||||
from great_ai.utilities import get_logger
|
|
||||||
|
|
||||||
from .constants import (
|
from .constants import (
|
||||||
DEFAULT_LARGE_FILE_CONFIG_PATHS,
|
DEFAULT_LARGE_FILE_CONFIG_PATHS,
|
||||||
DEFAULT_TRACING_DATABASE_CONFIG_PATHS,
|
DEFAULT_TRACING_DATABASE_CONFIG_PATHS,
|
||||||
|
|
@ -17,7 +14,9 @@ from .constants import (
|
||||||
PRODUCTION_KEY,
|
PRODUCTION_KEY,
|
||||||
SE4ML_WEBSITE,
|
SE4ML_WEBSITE,
|
||||||
)
|
)
|
||||||
|
from .large_file import LargeFileBase, LargeFileLocal
|
||||||
from .persistence import ParallelTinyDbDriver, TracingDatabaseDriver
|
from .persistence import ParallelTinyDbDriver, TracingDatabaseDriver
|
||||||
|
from .utilities import get_logger
|
||||||
|
|
||||||
|
|
||||||
class Context(BaseModel):
|
class Context(BaseModel):
|
||||||
|
|
@ -16,8 +16,6 @@ from typing import (
|
||||||
from fastapi import APIRouter, FastAPI, status
|
from fastapi import APIRouter, FastAPI, status
|
||||||
from pydantic import BaseModel, create_model
|
from pydantic import BaseModel, create_model
|
||||||
|
|
||||||
from great_ai.utilities import parallel_map
|
|
||||||
|
|
||||||
from ..constants import DASHBOARD_PATH
|
from ..constants import DASHBOARD_PATH
|
||||||
from ..context import get_context
|
from ..context import get_context
|
||||||
from ..helper import (
|
from ..helper import (
|
||||||
|
|
@ -29,6 +27,7 @@ from ..helper import (
|
||||||
from ..models import model_versions
|
from ..models import model_versions
|
||||||
from ..parameters import automatically_decorate_parameters
|
from ..parameters import automatically_decorate_parameters
|
||||||
from ..tracing.tracing_context import TracingContext
|
from ..tracing.tracing_context import TracingContext
|
||||||
|
from ..utilities import parallel_map
|
||||||
from ..views import ApiMetadata, CacheStatistics, HealthCheckResponse, Trace
|
from ..views import ApiMetadata, CacheStatistics, HealthCheckResponse, Trace
|
||||||
from .routes import (
|
from .routes import (
|
||||||
bootstrap_docs_endpoints,
|
bootstrap_docs_endpoints,
|
||||||
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
|
@ -8,11 +8,10 @@ from dash import Dash, dcc, html
|
||||||
from dash.dependencies import Input, Output
|
from dash.dependencies import Input, Output
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
|
|
||||||
from great_ai.utilities import unique
|
|
||||||
|
|
||||||
from ....constants import DASHBOARD_PATH, ONLINE_TAG_NAME
|
from ....constants import DASHBOARD_PATH, ONLINE_TAG_NAME
|
||||||
from ....context import get_context
|
from ....context import get_context
|
||||||
from ....helper import freeze, snake_case_to_text, text_to_hex_color
|
from ....helper import freeze, snake_case_to_text, text_to_hex_color
|
||||||
|
from ....utilities import unique
|
||||||
from ....views import SortBy, Trace
|
from ....views import SortBy, Trace
|
||||||
from .get_description import get_description
|
from .get_description import get_description
|
||||||
from .get_filter_from_datatable import get_filter_from_datatable
|
from .get_filter_from_datatable import get_filter_from_datatable
|
||||||
|
|
@ -4,14 +4,8 @@ from argparse import Namespace
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Mapping, Type
|
from typing import Mapping, Type
|
||||||
|
|
||||||
from great_ai.large_file import (
|
from ..utilities import get_logger
|
||||||
LargeFileBase,
|
from .large_file import LargeFileBase, LargeFileLocal, LargeFileMongo, LargeFileS3
|
||||||
LargeFileLocal,
|
|
||||||
LargeFileMongo,
|
|
||||||
LargeFileS3,
|
|
||||||
)
|
|
||||||
from great_ai.utilities import get_logger
|
|
||||||
|
|
||||||
from .parse_arguments import parse_arguments
|
from .parse_arguments import parse_arguments
|
||||||
|
|
||||||
logger = get_logger("large_file")
|
logger = get_logger("large_file")
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, List, Optional
|
from typing import Any, List, Optional
|
||||||
|
|
||||||
from great_ai.utilities import get_logger
|
from ...utilities import get_logger
|
||||||
|
|
||||||
from ..models import DataInstance
|
from ..models import DataInstance
|
||||||
from .large_file_base import LargeFileBase
|
from .large_file_base import LargeFileBase
|
||||||
|
|
||||||
|
|
@ -6,8 +6,7 @@ from typing import Any, List, Mapping
|
||||||
from gridfs import DEFAULT_CHUNK_SIZE, Database, GridFSBucket
|
from gridfs import DEFAULT_CHUNK_SIZE, Database, GridFSBucket
|
||||||
from pymongo import MongoClient
|
from pymongo import MongoClient
|
||||||
|
|
||||||
from great_ai.utilities import get_logger
|
from ...utilities import get_logger
|
||||||
|
|
||||||
from ..helper import DownloadProgressBar, UploadProgressBar
|
from ..helper import DownloadProgressBar, UploadProgressBar
|
||||||
from ..models import DataInstance
|
from ..models import DataInstance
|
||||||
from .large_file_base import LargeFileBase
|
from .large_file_base import LargeFileBase
|
||||||
|
|
@ -4,8 +4,7 @@ from typing import Any, List, Mapping, Optional
|
||||||
|
|
||||||
import boto3
|
import boto3
|
||||||
|
|
||||||
from great_ai.utilities import get_logger
|
from ...utilities import get_logger
|
||||||
|
|
||||||
from ..helper import DownloadProgressBar, UploadProgressBar
|
from ..helper import DownloadProgressBar, UploadProgressBar
|
||||||
from ..models import DataInstance
|
from ..models import DataInstance
|
||||||
from .large_file_base import LargeFileBase
|
from .large_file_base import LargeFileBase
|
||||||
|
|
@ -3,8 +3,7 @@ from datetime import datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List, Optional, Sequence, Tuple, Union
|
from typing import List, Optional, Sequence, Tuple, Union
|
||||||
|
|
||||||
from great_ai.utilities import ConfigFile
|
from ..utilities import ConfigFile
|
||||||
|
|
||||||
from ..views import Filter, SortBy, Trace
|
from ..views import Filter, SortBy, Trace
|
||||||
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue