ptn 0.1.0__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.1.0/.gitignore +71 -0
  2. ptn-0.1.0/LICENSE +661 -0
  3. ptn-0.1.0/PKG-INFO +139 -0
  4. ptn-0.1.0/README.md +100 -0
  5. ptn-0.1.0/porterminal/__init__.py +288 -0
  6. ptn-0.1.0/porterminal/__main__.py +8 -0
  7. ptn-0.1.0/porterminal/app.py +315 -0
  8. ptn-0.1.0/porterminal/application/__init__.py +1 -0
  9. ptn-0.1.0/porterminal/application/ports/__init__.py +9 -0
  10. ptn-0.1.0/porterminal/application/ports/config_port.py +42 -0
  11. ptn-0.1.0/porterminal/application/ports/connection_port.py +34 -0
  12. ptn-0.1.0/porterminal/application/services/__init__.py +9 -0
  13. ptn-0.1.0/porterminal/application/services/session_service.py +240 -0
  14. ptn-0.1.0/porterminal/application/services/terminal_service.py +305 -0
  15. ptn-0.1.0/porterminal/asgi.py +38 -0
  16. ptn-0.1.0/porterminal/cli/__init__.py +19 -0
  17. ptn-0.1.0/porterminal/cli/args.py +91 -0
  18. ptn-0.1.0/porterminal/cli/display.py +157 -0
  19. ptn-0.1.0/porterminal/composition.py +172 -0
  20. ptn-0.1.0/porterminal/config.py +202 -0
  21. ptn-0.1.0/porterminal/container.py +50 -0
  22. ptn-0.1.0/porterminal/domain/__init__.py +77 -0
  23. ptn-0.1.0/porterminal/domain/entities/__init__.py +13 -0
  24. ptn-0.1.0/porterminal/domain/entities/output_buffer.py +73 -0
  25. ptn-0.1.0/porterminal/domain/entities/session.py +86 -0
  26. ptn-0.1.0/porterminal/domain/ports/__init__.py +10 -0
  27. ptn-0.1.0/porterminal/domain/ports/pty_port.py +80 -0
  28. ptn-0.1.0/porterminal/domain/ports/session_repository.py +58 -0
  29. ptn-0.1.0/porterminal/domain/services/__init__.py +14 -0
  30. ptn-0.1.0/porterminal/domain/services/environment_sanitizer.py +61 -0
  31. ptn-0.1.0/porterminal/domain/services/rate_limiter.py +63 -0
  32. ptn-0.1.0/porterminal/domain/services/session_limits.py +104 -0
  33. ptn-0.1.0/porterminal/domain/values/__init__.py +23 -0
  34. ptn-0.1.0/porterminal/domain/values/environment_rules.py +156 -0
  35. ptn-0.1.0/porterminal/domain/values/rate_limit_config.py +21 -0
  36. ptn-0.1.0/porterminal/domain/values/session_id.py +20 -0
  37. ptn-0.1.0/porterminal/domain/values/shell_command.py +37 -0
  38. ptn-0.1.0/porterminal/domain/values/terminal_dimensions.py +45 -0
  39. ptn-0.1.0/porterminal/domain/values/user_id.py +25 -0
  40. ptn-0.1.0/porterminal/infrastructure/__init__.py +16 -0
  41. ptn-0.1.0/porterminal/infrastructure/cloudflared.py +222 -0
  42. ptn-0.1.0/porterminal/infrastructure/config/__init__.py +9 -0
  43. ptn-0.1.0/porterminal/infrastructure/config/shell_detector.py +84 -0
  44. ptn-0.1.0/porterminal/infrastructure/config/yaml_loader.py +34 -0
  45. ptn-0.1.0/porterminal/infrastructure/network.py +58 -0
  46. ptn-0.1.0/porterminal/infrastructure/repositories/__init__.py +7 -0
  47. ptn-0.1.0/porterminal/infrastructure/repositories/in_memory_session.py +70 -0
  48. ptn-0.1.0/porterminal/infrastructure/server.py +161 -0
  49. ptn-0.1.0/porterminal/infrastructure/web/__init__.py +7 -0
  50. ptn-0.1.0/porterminal/infrastructure/web/websocket_adapter.py +78 -0
  51. ptn-0.1.0/porterminal/logging_setup.py +48 -0
  52. ptn-0.1.0/porterminal/pty/__init__.py +105 -0
  53. ptn-0.1.0/porterminal/pty/env.py +97 -0
  54. ptn-0.1.0/porterminal/pty/fake.py +117 -0
  55. ptn-0.1.0/porterminal/pty/manager.py +163 -0
  56. ptn-0.1.0/porterminal/pty/protocol.py +84 -0
  57. ptn-0.1.0/porterminal/pty/unix.py +162 -0
  58. ptn-0.1.0/porterminal/pty/windows.py +131 -0
  59. ptn-0.1.0/porterminal/static/assets/app-BS392zlj.css +32 -0
  60. ptn-0.1.0/porterminal/static/assets/app-BSV5CpnM.css +32 -0
  61. ptn-0.1.0/porterminal/static/assets/app-C6UZmnjW.js +70 -0
  62. ptn-0.1.0/porterminal/static/assets/app-CjDvandz.js +70 -0
  63. ptn-0.1.0/porterminal/static/assets/app-D8Zu184y.js +70 -0
  64. ptn-0.1.0/porterminal/static/assets/app-D8kJUFHo.js +70 -0
  65. ptn-0.1.0/porterminal/static/assets/app-sDllFolD.js +70 -0
  66. ptn-0.1.0/porterminal/static/icon.svg +34 -0
  67. ptn-0.1.0/porterminal/static/index.html +121 -0
  68. ptn-0.1.0/porterminal/static/manifest.json +31 -0
  69. ptn-0.1.0/porterminal/static/sw.js +72 -0
  70. ptn-0.1.0/porterminal/updater.py +257 -0
  71. ptn-0.1.0/pyproject.toml +88 -0
ptn-0.1.0/.gitignore ADDED
@@ -0,0 +1,71 @@
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
+ # Local config override
65
+ config.local.yaml
66
+
67
+ # Build cache
68
+ porterminal/static/.vite/
69
+
70
+ # Windows artifacts
71
+ nul