atoti-server-spring-boot-admin 0.9.9__py3-none-any.whl
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.
- atoti_server_spring_boot_admin-0.9.9.dist-info/METADATA +17 -0
- atoti_server_spring_boot_admin-0.9.9.dist-info/RECORD +9 -0
- atoti_server_spring_boot_admin-0.9.9.dist-info/WHEEL +4 -0
- atoti_server_spring_boot_admin-0.9.9.dist-info/entry_points.txt +2 -0
- atoti_spring_boot_admin/__init__.py +7 -0
- atoti_spring_boot_admin/__resources__/plugin.jar +0 -0
- atoti_spring_boot_admin/_plugin.py +35 -0
- atoti_spring_boot_admin/_resources_directory.py +3 -0
- atoti_spring_boot_admin/py.typed +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: atoti-server-spring-boot-admin
|
|
3
|
+
Version: 0.9.9
|
|
4
|
+
Summary: Resources to enable Spring Boot Admin
|
|
5
|
+
Project-URL: Documentation, https://docs.activeviam.com/products/atoti/python-sdk/0.9.9/api/atoti_spring_boot_admin.html
|
|
6
|
+
Project-URL: Homepage, https://www.atoti.io
|
|
7
|
+
Project-URL: Issues, https://github.com/atoti/atoti/issues
|
|
8
|
+
Author-email: ActiveViam <dev@atoti.io>
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: License :: Free for non-commercial use
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Java
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Typing :: Typed
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Requires-Dist: atoti-core==0.9.9
|
|
17
|
+
Requires-Dist: typing-extensions>=4.12.2
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
atoti_spring_boot_admin/__init__.py,sha256=QXH56EUsIX2z-GMmFfFc7eLybNt3CJXkthtFKUxvl5k,333
|
|
2
|
+
atoti_spring_boot_admin/_plugin.py,sha256=gfcFi13cQ18k-MHwgA1di7NPVnCJkOLH-YJGsq0uZ9w,826
|
|
3
|
+
atoti_spring_boot_admin/_resources_directory.py,sha256=kOOsXoN0C2-JZbbg3vJcW18ypPwrF0p-ELc2H6Dlo6k,88
|
|
4
|
+
atoti_spring_boot_admin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
atoti_spring_boot_admin/__resources__/plugin.jar,sha256=M6yN9vgqCL9ywCkqR4cLzMX20Fla5eM2gMY0cWIR15U,34142376
|
|
6
|
+
atoti_server_spring_boot_admin-0.9.9.dist-info/METADATA,sha256=heDwOu5zsEh5ifv4yw-R2NtwPhIom3UEwapLWE5Y0Us,741
|
|
7
|
+
atoti_server_spring_boot_admin-0.9.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
+
atoti_server_spring_boot_admin-0.9.9.dist-info/entry_points.txt,sha256=jICH4pD2vhuTpBf_uRz_RAE-regugjoR3KTk-0g64ok,90
|
|
9
|
+
atoti_server_spring_boot_admin-0.9.9.dist-info/RECORD,,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"""Plugin enabling `Spring Boot Admin <https://docs.spring-boot-admin.com/>`__.
|
|
2
|
+
|
|
3
|
+
This exposes a web interface to monitor resource usage, manage loggers, interact with JMX beans, and more.
|
|
4
|
+
|
|
5
|
+
Spring Boot Admin can be accessed at ``f"{session.url}/spring-boot-admin"``.
|
|
6
|
+
Only users with the :guilabel:`ROLE_ADMIN` role can access it.
|
|
7
|
+
"""
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from dataclasses import replace
|
|
4
|
+
from typing import TYPE_CHECKING, final
|
|
5
|
+
|
|
6
|
+
from _atoti_core import Plugin
|
|
7
|
+
from typing_extensions import override
|
|
8
|
+
|
|
9
|
+
from ._resources_directory import RESOURCES_DIRECTORY
|
|
10
|
+
|
|
11
|
+
if TYPE_CHECKING:
|
|
12
|
+
import atoti as tt # pylint: disable=nested-import,undeclared-dependency
|
|
13
|
+
|
|
14
|
+
_PLUGIN_KEY = "spring-boot-admin"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@final
|
|
18
|
+
class SpringBootAdminPlugin(Plugin):
|
|
19
|
+
@override
|
|
20
|
+
def session_config_hook(
|
|
21
|
+
self,
|
|
22
|
+
session_config: tt.SessionConfig,
|
|
23
|
+
) -> tt.SessionConfig:
|
|
24
|
+
return replace(
|
|
25
|
+
session_config,
|
|
26
|
+
extra_jars=[
|
|
27
|
+
*session_config.extra_jars,
|
|
28
|
+
RESOURCES_DIRECTORY / "plugin.jar",
|
|
29
|
+
],
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
@override
|
|
34
|
+
def _key(self) -> str | None:
|
|
35
|
+
return _PLUGIN_KEY
|
|
File without changes
|