bk-plugin-framework 2.2.2__tar.gz → 2.2.4__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.
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/PKG-INFO +4 -4
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/__version__.py +1 -1
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/envs.py +4 -1
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/kit/__init__.py +4 -1
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/kit/plugin.py +4 -1
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/executor.py +5 -1
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/management/commands/data/api-definition.yml +1 -1
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/pyproject.toml +4 -4
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/setup.py +4 -4
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/constants.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/hub/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/kit/api.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/kit/authentication.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/kit/decorators.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/metrics.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/callback/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/callback/api.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/callback/apps.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/callback/celery/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/callback/celery/queues.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/callback/celery/tasks.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/callback/migrations/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/callbacker.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/loghub/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/loghub/admin.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/loghub/apps.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/loghub/log.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/loghub/migrations/0001_initial.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/loghub/migrations/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/loghub/models.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/admin.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/apps.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/celery/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/celery/beat.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/celery/queues.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/celery/tasks.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/migrations/0001_initial.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/migrations/0002_schedule_finish_at.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/migrations/0003_auto_20210830_1945.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/migrations/0004_schedule_scheduling.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/migrations/0005_schedule_err.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/migrations/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/models.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/utils.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/admin.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/api/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/api/callback.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/api/detail.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/api/invoke.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/api/logs.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/api/meta.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/api/permissions.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/api/plugin_api_dispatch.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/api/schedule.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/api/serializers/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/apps.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/management/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/management/commands/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/management/commands/data/api-resources.yml +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/management/commands/data/api-strategy-cors.yml +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/management/commands/sync_plugin_apigw.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/middlewares.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/migrations/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/bpf_service/urls.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/debug_panel/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/debug_panel/management/commands/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/debug_panel/management/commands/rundebugserver.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/debug_panel/migrations/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/debug_panel/views.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/utils/__init__.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/utils/local.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/utils/log.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/utils/module_load.py +0 -0
- {bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/utils/validations.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bk-plugin-framework
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: bk plugin python framework
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Your Name
|
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.7
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.8
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
15
|
Requires-Dist: apigw-manager[extra] (>=1.0.6,<1.2.0)
|
|
16
|
-
Requires-Dist: bk-plugin-runtime (==2.0.
|
|
16
|
+
Requires-Dist: bk-plugin-runtime (==2.0.7)
|
|
17
17
|
Requires-Dist: jsonschema (>=2.5.0,<5.0.0)
|
|
18
|
-
Requires-Dist: pydantic (>=1.0,<
|
|
19
|
-
Requires-Dist: werkzeug (>=2.0.0,<
|
|
18
|
+
Requires-Dist: pydantic (>=1.0,<3)
|
|
19
|
+
Requires-Dist: werkzeug (>=2.0.0,<4.0)
|
|
@@ -14,7 +14,10 @@ import base64
|
|
|
14
14
|
import hashlib
|
|
15
15
|
import logging
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
try:
|
|
18
|
+
from pydantic.v1 import BaseSettings
|
|
19
|
+
except ImportError:
|
|
20
|
+
from pydantic import BaseSettings
|
|
18
21
|
from django.conf import settings as default_settings
|
|
19
22
|
|
|
20
23
|
logger = logging.getLogger("bk_plugin")
|
|
@@ -10,7 +10,10 @@ an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express o
|
|
|
10
10
|
specific language governing permissions and limitations under the License.
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
try:
|
|
14
|
+
from pydantic.v1 import Field
|
|
15
|
+
except ImportError:
|
|
16
|
+
from pydantic import Field # noqa
|
|
14
17
|
from bk_plugin_framework.kit.plugin import ( # noqa
|
|
15
18
|
Plugin,
|
|
16
19
|
InputsModel,
|
|
@@ -14,7 +14,10 @@ import re
|
|
|
14
14
|
import typing
|
|
15
15
|
import inspect
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
try:
|
|
18
|
+
from pydantic.v1 import BaseModel
|
|
19
|
+
except ImportError:
|
|
20
|
+
from pydantic import BaseModel
|
|
18
21
|
|
|
19
22
|
from bk_plugin_framework.hub import VersionHub
|
|
20
23
|
from bk_plugin_framework.constants import State
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/executor.py
RENAMED
|
@@ -15,7 +15,11 @@ import typing
|
|
|
15
15
|
import logging
|
|
16
16
|
|
|
17
17
|
from celery import current_app
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
try:
|
|
20
|
+
from pydantic.v1 import ValidationError
|
|
21
|
+
except ImportError:
|
|
22
|
+
from pydantic import ValidationError
|
|
19
23
|
from django.utils.timezone import now
|
|
20
24
|
|
|
21
25
|
from bk_plugin_framework.kit import Plugin, Context, State, InputsModel, ContextRequire, Callback
|
|
@@ -11,7 +11,7 @@ stage:
|
|
|
11
11
|
upstreams:
|
|
12
12
|
loadbalance: "roundrobin"
|
|
13
13
|
hosts:
|
|
14
|
-
- host: "
|
|
14
|
+
- host: "{{ settings.BK_PLUGIN_APIGW_BACKEND_SCHEME }}://{{ settings.BK_PLUGIN_APIGW_BACKEND_NETLOC }}/"
|
|
15
15
|
weight: 100
|
|
16
16
|
|
|
17
17
|
release:
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "bk-plugin-framework"
|
|
3
|
-
version = "2.2.
|
|
3
|
+
version = "2.2.4"
|
|
4
4
|
description = "bk plugin python framework"
|
|
5
5
|
authors = ["Your Name <you@example.com>"]
|
|
6
6
|
license = "MIT"
|
|
7
7
|
|
|
8
8
|
[tool.poetry.dependencies]
|
|
9
9
|
python = "^3.6.1,<4.0"
|
|
10
|
-
pydantic = "
|
|
11
|
-
werkzeug = "
|
|
10
|
+
pydantic = ">=1.0,<3"
|
|
11
|
+
werkzeug = ">=2.0.0, <4.0"
|
|
12
12
|
apigw-manager = {version = ">=1.0.6, <1.2.0", extras = ["extra"]}
|
|
13
|
-
bk-plugin-runtime = "2.0.
|
|
13
|
+
bk-plugin-runtime = "2.0.7"
|
|
14
14
|
jsonschema = ">=2.5.0,<5.0.0"
|
|
15
15
|
|
|
16
16
|
[tool.poetry.dev-dependencies]
|
|
@@ -32,14 +32,14 @@ package_data = \
|
|
|
32
32
|
|
|
33
33
|
install_requires = \
|
|
34
34
|
['apigw-manager[extra]>=1.0.6,<1.2.0',
|
|
35
|
-
'bk-plugin-runtime==2.0.
|
|
35
|
+
'bk-plugin-runtime==2.0.7',
|
|
36
36
|
'jsonschema>=2.5.0,<5.0.0',
|
|
37
|
-
'pydantic>=1.0,<
|
|
38
|
-
'werkzeug>=2.0.0,<
|
|
37
|
+
'pydantic>=1.0,<3',
|
|
38
|
+
'werkzeug>=2.0.0,<4.0']
|
|
39
39
|
|
|
40
40
|
setup_kwargs = {
|
|
41
41
|
'name': 'bk-plugin-framework',
|
|
42
|
-
'version': '2.2.
|
|
42
|
+
'version': '2.2.4',
|
|
43
43
|
'description': 'bk plugin python framework',
|
|
44
44
|
'long_description': None,
|
|
45
45
|
'author': 'Your Name',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/kit/authentication.py
RENAMED
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/kit/decorators.py
RENAMED
|
File without changes
|
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/callback/api.py
RENAMED
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/callback/apps.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/callbacker.py
RENAMED
|
File without changes
|
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/loghub/admin.py
RENAMED
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/loghub/apps.py
RENAMED
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/loghub/log.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/loghub/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/runtime/schedule/apps.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/services/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/utils/module_load.py
RENAMED
|
File without changes
|
{bk-plugin-framework-2.2.2 → bk-plugin-framework-2.2.4}/bk_plugin_framework/utils/validations.py
RENAMED
|
File without changes
|