mrok 0.6.0__py3-none-any.whl → 0.8.0__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.
Files changed (43) hide show
  1. mrok/agent/devtools/inspector/__main__.py +3 -23
  2. mrok/agent/devtools/inspector/app.py +407 -112
  3. mrok/agent/devtools/inspector/utils.py +149 -0
  4. mrok/cli/commands/admin/bootstrap.py +2 -2
  5. mrok/cli/commands/admin/register/extensions.py +7 -9
  6. mrok/cli/commands/admin/register/instances.py +13 -16
  7. mrok/cli/commands/admin/unregister/extensions.py +7 -11
  8. mrok/cli/commands/admin/unregister/instances.py +12 -12
  9. mrok/cli/commands/agent/run/asgi.py +1 -1
  10. mrok/cli/commands/frontend/run.py +1 -1
  11. mrok/cli/main.py +17 -1
  12. mrok/cli/utils.py +26 -0
  13. mrok/conf.py +15 -7
  14. mrok/constants.py +21 -0
  15. mrok/controller/app.py +12 -10
  16. mrok/controller/auth/__init__.py +11 -0
  17. mrok/controller/auth/backends.py +60 -0
  18. mrok/controller/auth/base.py +38 -0
  19. mrok/controller/auth/manager.py +31 -0
  20. mrok/controller/auth/registry.py +17 -0
  21. mrok/frontend/app.py +94 -26
  22. mrok/frontend/main.py +8 -5
  23. mrok/frontend/middleware.py +35 -0
  24. mrok/frontend/utils.py +83 -0
  25. mrok/logging.py +24 -22
  26. mrok/proxy/app.py +13 -5
  27. mrok/proxy/middleware.py +7 -8
  28. mrok/proxy/models.py +36 -10
  29. mrok/proxy/ziticorn.py +8 -17
  30. mrok/ziti/api.py +4 -4
  31. mrok/ziti/bootstrap.py +0 -5
  32. mrok/ziti/identities.py +11 -10
  33. mrok/ziti/services.py +6 -6
  34. {mrok-0.6.0.dist-info → mrok-0.8.0.dist-info}/METADATA +9 -3
  35. {mrok-0.6.0.dist-info → mrok-0.8.0.dist-info}/RECORD +38 -35
  36. mrok/agent/devtools/__main__.py +0 -34
  37. mrok/cli/commands/agent/utils.py +0 -5
  38. mrok/controller/auth.py +0 -87
  39. mrok/proxy/constants.py +0 -22
  40. mrok/proxy/utils.py +0 -90
  41. {mrok-0.6.0.dist-info → mrok-0.8.0.dist-info}/WHEEL +0 -0
  42. {mrok-0.6.0.dist-info → mrok-0.8.0.dist-info}/entry_points.txt +0 -0
  43. {mrok-0.6.0.dist-info → mrok-0.8.0.dist-info}/licenses/LICENSE.txt +0 -0
@@ -1,25 +1,5 @@
1
- import argparse
2
- from typing import Any
1
+ import sys
3
2
 
4
- from mrok.agent.devtools.inspector.app import InspectorApp
3
+ from mrok.agent.devtools.inspector.app import module_main
5
4
 
6
-
7
- def run(port: int) -> None:
8
- app = InspectorApp(port)
9
- app.run()
10
-
11
-
12
- def main(argv: Any = None) -> None:
13
- parser = argparse.ArgumentParser(description="mrok devtools agent")
14
- parser.add_argument(
15
- "-p",
16
- "--subscriber-port",
17
- type=int,
18
- default=50001,
19
- help="Port for subscriber (default: 50001)",
20
- )
21
- args = parser.parse_args(argv)
22
- run(args.subscriber_port)
23
-
24
-
25
- main()
5
+ module_main(sys.argv[1:])