ds-server-lib 7.0.0a2__tar.gz → 7.0.0a4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ds-server-lib
3
- Version: 7.0.0a2
3
+ Version: 7.0.0a4
4
4
  Summary: Server library for owasp depscan
5
5
  Author-email: Team AppThreat <cloud@appthreat.com>
6
6
  License-Expression: MIT
@@ -19,11 +19,11 @@ Classifier: Topic :: Security
19
19
  Classifier: Topic :: Utilities
20
20
  Requires-Python: >=3.11
21
21
  Description-Content-Type: text/markdown
22
- Requires-Dist: appthreat-vulnerability-db<8,>=7.0.6
22
+ Requires-Dist: appthreat-vulnerability-db<8,>=7.0.7
23
23
  Requires-Dist: custom-json-diff~=2.1.6
24
24
  Requires-Dist: quart~=0.20
25
25
  Requires-Dist: rich~=15.0.0
26
- Requires-Dist: ds-analysis-lib~=7.0.0a2
26
+ Requires-Dist: ds-analysis-lib~=7.0.0a4
27
27
  Provides-Extra: dev
28
28
  Requires-Dist: pytest~=9.2.0; extra == "dev"
29
29
  Requires-Dist: pytest-asyncio~=1.4.1; extra == "dev"
@@ -1,16 +1,16 @@
1
1
  [project]
2
2
  name = "ds-server-lib"
3
- version = "7.0.0a2"
3
+ version = "7.0.0a4"
4
4
  description = "Server library for owasp depscan"
5
5
  authors = [
6
6
  {name = "Team AppThreat", email = "cloud@appthreat.com"},
7
7
  ]
8
8
  dependencies = [
9
- "appthreat-vulnerability-db>=7.0.6,<8",
9
+ "appthreat-vulnerability-db>=7.0.7,<8",
10
10
  "custom-json-diff~=2.1.6",
11
11
  "quart~=0.20",
12
12
  "rich~=15.0.0",
13
- "ds-analysis-lib~=7.0.0a2"
13
+ "ds-analysis-lib~=7.0.0a4"
14
14
  ]
15
15
 
16
16
  requires-python = ">=3.11"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ds-server-lib
3
- Version: 7.0.0a2
3
+ Version: 7.0.0a4
4
4
  Summary: Server library for owasp depscan
5
5
  Author-email: Team AppThreat <cloud@appthreat.com>
6
6
  License-Expression: MIT
@@ -19,11 +19,11 @@ Classifier: Topic :: Security
19
19
  Classifier: Topic :: Utilities
20
20
  Requires-Python: >=3.11
21
21
  Description-Content-Type: text/markdown
22
- Requires-Dist: appthreat-vulnerability-db<8,>=7.0.6
22
+ Requires-Dist: appthreat-vulnerability-db<8,>=7.0.7
23
23
  Requires-Dist: custom-json-diff~=2.1.6
24
24
  Requires-Dist: quart~=0.20
25
25
  Requires-Dist: rich~=15.0.0
26
- Requires-Dist: ds-analysis-lib~=7.0.0a2
26
+ Requires-Dist: ds-analysis-lib~=7.0.0a4
27
27
  Provides-Extra: dev
28
28
  Requires-Dist: pytest~=9.2.0; extra == "dev"
29
29
  Requires-Dist: pytest-asyncio~=1.4.1; extra == "dev"
@@ -1,8 +1,8 @@
1
- appthreat-vulnerability-db<8,>=7.0.6
1
+ appthreat-vulnerability-db<8,>=7.0.7
2
2
  custom-json-diff~=2.1.6
3
3
  quart~=0.20
4
4
  rich~=15.0.0
5
- ds-analysis-lib~=7.0.0a2
5
+ ds-analysis-lib~=7.0.0a4
6
6
 
7
7
  [dev]
8
8
  pytest~=9.2.0
@@ -14,7 +14,6 @@ from urllib.parse import urlparse, urlsplit
14
14
  from analysis_lib.config import SUPPORTED_BOM_PROFILES
15
15
  from custom_json_diff.lib.utils import file_write
16
16
  from quart import Quart, request
17
- from rich.console import Console
18
17
  from server_lib import ServerOptions
19
18
  from vdb.lib import search
20
19
 
@@ -35,25 +34,6 @@ def get_allowed_git_schemes(default_schemes=None):
35
34
  allowed_git_schemes = get_allowed_git_schemes()
36
35
 
37
36
 
38
- def _color_system():
39
- """Translate CONSOLE_COLOR_SCHEME into a rich-acceptable value.
40
-
41
- rich only accepts its fixed color-system names (or None); anything else
42
- raises KeyError while constructing the Console, so an unrecognized value
43
- (e.g. a typo) falls back to None for auto-detection.
44
- """
45
- scheme = os.getenv("CONSOLE_COLOR_SCHEME", "256")
46
- return scheme if scheme in ("auto", "standard", "256", "truecolor", "windows") else None
47
-
48
-
49
- console = Console(
50
- log_time=False,
51
- log_path=False,
52
- color_system=_color_system(),
53
- tab_size=2,
54
- emoji=os.getenv("DISABLE_CONSOLE_EMOJI", "") not in ("true", "1"),
55
- )
56
-
57
37
  MAX_PROJECT_TYPES = 32
58
38
  MAX_PROJECT_TYPE_LENGTH = 64
59
39
  DEFAULT_MAX_BOM_FILE_SIZE = 100 * 1024 * 1024