ptn 0.2.7__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.
Files changed (71) hide show
  1. ptn-0.2.7/.gitignore +77 -0
  2. ptn-0.2.7/LICENSE +661 -0
  3. ptn-0.2.7/PKG-INFO +158 -0
  4. ptn-0.2.7/README.md +119 -0
  5. ptn-0.2.7/porterminal/__init__.py +327 -0
  6. ptn-0.2.7/porterminal/__main__.py +8 -0
  7. ptn-0.2.7/porterminal/_version.py +34 -0
  8. ptn-0.2.7/porterminal/app.py +385 -0
  9. ptn-0.2.7/porterminal/application/__init__.py +1 -0
  10. ptn-0.2.7/porterminal/application/ports/__init__.py +7 -0
  11. ptn-0.2.7/porterminal/application/ports/connection_port.py +34 -0
  12. ptn-0.2.7/porterminal/application/services/__init__.py +13 -0
  13. ptn-0.2.7/porterminal/application/services/management_service.py +279 -0
  14. ptn-0.2.7/porterminal/application/services/session_service.py +249 -0
  15. ptn-0.2.7/porterminal/application/services/tab_service.py +286 -0
  16. ptn-0.2.7/porterminal/application/services/terminal_service.py +514 -0
  17. ptn-0.2.7/porterminal/asgi.py +43 -0
  18. ptn-0.2.7/porterminal/cli/__init__.py +19 -0
  19. ptn-0.2.7/porterminal/cli/args.py +141 -0
  20. ptn-0.2.7/porterminal/cli/display.py +157 -0
  21. ptn-0.2.7/porterminal/composition.py +216 -0
  22. ptn-0.2.7/porterminal/config.py +179 -0
  23. ptn-0.2.7/porterminal/container.py +54 -0
  24. ptn-0.2.7/porterminal/domain/__init__.py +89 -0
  25. ptn-0.2.7/porterminal/domain/entities/__init__.py +16 -0
  26. ptn-0.2.7/porterminal/domain/entities/output_buffer.py +69 -0
  27. ptn-0.2.7/porterminal/domain/entities/session.py +86 -0
  28. ptn-0.2.7/porterminal/domain/entities/tab.py +71 -0
  29. ptn-0.2.7/porterminal/domain/ports/__init__.py +11 -0
  30. ptn-0.2.7/porterminal/domain/ports/pty_port.py +51 -0
  31. ptn-0.2.7/porterminal/domain/ports/session_repository.py +58 -0
  32. ptn-0.2.7/porterminal/domain/ports/tab_repository.py +70 -0
  33. ptn-0.2.7/porterminal/domain/services/__init__.py +18 -0
  34. ptn-0.2.7/porterminal/domain/services/environment_sanitizer.py +61 -0
  35. ptn-0.2.7/porterminal/domain/services/rate_limiter.py +63 -0
  36. ptn-0.2.7/porterminal/domain/services/session_limits.py +104 -0
  37. ptn-0.2.7/porterminal/domain/services/tab_limits.py +54 -0
  38. ptn-0.2.7/porterminal/domain/values/__init__.py +25 -0
  39. ptn-0.2.7/porterminal/domain/values/environment_rules.py +156 -0
  40. ptn-0.2.7/porterminal/domain/values/rate_limit_config.py +21 -0
  41. ptn-0.2.7/porterminal/domain/values/session_id.py +20 -0
  42. ptn-0.2.7/porterminal/domain/values/shell_command.py +37 -0
  43. ptn-0.2.7/porterminal/domain/values/tab_id.py +24 -0
  44. ptn-0.2.7/porterminal/domain/values/terminal_dimensions.py +45 -0
  45. ptn-0.2.7/porterminal/domain/values/user_id.py +25 -0
  46. ptn-0.2.7/porterminal/infrastructure/__init__.py +20 -0
  47. ptn-0.2.7/porterminal/infrastructure/cloudflared.py +299 -0
  48. ptn-0.2.7/porterminal/infrastructure/config/__init__.py +7 -0
  49. ptn-0.2.7/porterminal/infrastructure/config/shell_detector.py +392 -0
  50. ptn-0.2.7/porterminal/infrastructure/network.py +43 -0
  51. ptn-0.2.7/porterminal/infrastructure/registry/__init__.py +5 -0
  52. ptn-0.2.7/porterminal/infrastructure/registry/user_connection_registry.py +104 -0
  53. ptn-0.2.7/porterminal/infrastructure/repositories/__init__.py +9 -0
  54. ptn-0.2.7/porterminal/infrastructure/repositories/in_memory_session.py +70 -0
  55. ptn-0.2.7/porterminal/infrastructure/repositories/in_memory_tab.py +120 -0
  56. ptn-0.2.7/porterminal/infrastructure/server.py +181 -0
  57. ptn-0.2.7/porterminal/infrastructure/web/__init__.py +7 -0
  58. ptn-0.2.7/porterminal/infrastructure/web/websocket_adapter.py +78 -0
  59. ptn-0.2.7/porterminal/logging_setup.py +48 -0
  60. ptn-0.2.7/porterminal/pty/__init__.py +46 -0
  61. ptn-0.2.7/porterminal/pty/env.py +97 -0
  62. ptn-0.2.7/porterminal/pty/manager.py +163 -0
  63. ptn-0.2.7/porterminal/pty/protocol.py +84 -0
  64. ptn-0.2.7/porterminal/pty/unix.py +162 -0
  65. ptn-0.2.7/porterminal/pty/windows.py +131 -0
  66. ptn-0.2.7/porterminal/static/assets/app-DQePboVd.css +32 -0
  67. ptn-0.2.7/porterminal/static/assets/app-DoBiVkTD.js +72 -0
  68. ptn-0.2.7/porterminal/static/icon.svg +34 -0
  69. ptn-0.2.7/porterminal/static/index.html +130 -0
  70. ptn-0.2.7/porterminal/updater.py +204 -0
  71. ptn-0.2.7/pyproject.toml +98 -0
ptn-0.2.7/.gitignore ADDED
@@ -0,0 +1,77 @@
1
+ # Node
2
+ node_modules/
3
+
4
+ # Python
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+ *.so
9
+ .Python
10
+ build/
11
+ develop-eggs/
12
+ dist/
13
+ downloads/
14
+ eggs/
15
+ .eggs/
16
+ lib/
17
+ lib64/
18
+ parts/
19
+ sdist/
20
+ var/
21
+ wheels/
22
+ *.egg-info/
23
+ .installed.cfg
24
+ *.egg
25
+
26
+ # Virtual environments
27
+ .venv/
28
+ venv/
29
+ ENV/
30
+
31
+ # IDE
32
+ .idea/
33
+ .vscode/
34
+ .claude/
35
+ *.swp
36
+ *.swo
37
+ *~
38
+
39
+ # OS
40
+ .DS_Store
41
+ Thumbs.db
42
+
43
+ # Environment
44
+ .env
45
+ .env.local
46
+
47
+ # Logs
48
+ *.log
49
+ logs/
50
+
51
+ # Testing
52
+ .pytest_cache/
53
+ .coverage
54
+ htmlcov/
55
+
56
+ # Build
57
+ *.manifest
58
+ *.spec
59
+
60
+ # Type checking
61
+ .mypy_cache/
62
+ .pytype/
63
+
64
+ # Linting
65
+ .ruff_cache/
66
+
67
+ # Local config override
68
+ config.local.yaml
69
+
70
+ # Build cache
71
+ porterminal/static/.vite/
72
+
73
+ # Generated version file (hatch-vcs)
74
+ porterminal/_version.py
75
+
76
+ # Windows artifacts
77
+ nul