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.
- ptn-0.2.7/.gitignore +77 -0
- ptn-0.2.7/LICENSE +661 -0
- ptn-0.2.7/PKG-INFO +158 -0
- ptn-0.2.7/README.md +119 -0
- ptn-0.2.7/porterminal/__init__.py +327 -0
- ptn-0.2.7/porterminal/__main__.py +8 -0
- ptn-0.2.7/porterminal/_version.py +34 -0
- ptn-0.2.7/porterminal/app.py +385 -0
- ptn-0.2.7/porterminal/application/__init__.py +1 -0
- ptn-0.2.7/porterminal/application/ports/__init__.py +7 -0
- ptn-0.2.7/porterminal/application/ports/connection_port.py +34 -0
- ptn-0.2.7/porterminal/application/services/__init__.py +13 -0
- ptn-0.2.7/porterminal/application/services/management_service.py +279 -0
- ptn-0.2.7/porterminal/application/services/session_service.py +249 -0
- ptn-0.2.7/porterminal/application/services/tab_service.py +286 -0
- ptn-0.2.7/porterminal/application/services/terminal_service.py +514 -0
- ptn-0.2.7/porterminal/asgi.py +43 -0
- ptn-0.2.7/porterminal/cli/__init__.py +19 -0
- ptn-0.2.7/porterminal/cli/args.py +141 -0
- ptn-0.2.7/porterminal/cli/display.py +157 -0
- ptn-0.2.7/porterminal/composition.py +216 -0
- ptn-0.2.7/porterminal/config.py +179 -0
- ptn-0.2.7/porterminal/container.py +54 -0
- ptn-0.2.7/porterminal/domain/__init__.py +89 -0
- ptn-0.2.7/porterminal/domain/entities/__init__.py +16 -0
- ptn-0.2.7/porterminal/domain/entities/output_buffer.py +69 -0
- ptn-0.2.7/porterminal/domain/entities/session.py +86 -0
- ptn-0.2.7/porterminal/domain/entities/tab.py +71 -0
- ptn-0.2.7/porterminal/domain/ports/__init__.py +11 -0
- ptn-0.2.7/porterminal/domain/ports/pty_port.py +51 -0
- ptn-0.2.7/porterminal/domain/ports/session_repository.py +58 -0
- ptn-0.2.7/porterminal/domain/ports/tab_repository.py +70 -0
- ptn-0.2.7/porterminal/domain/services/__init__.py +18 -0
- ptn-0.2.7/porterminal/domain/services/environment_sanitizer.py +61 -0
- ptn-0.2.7/porterminal/domain/services/rate_limiter.py +63 -0
- ptn-0.2.7/porterminal/domain/services/session_limits.py +104 -0
- ptn-0.2.7/porterminal/domain/services/tab_limits.py +54 -0
- ptn-0.2.7/porterminal/domain/values/__init__.py +25 -0
- ptn-0.2.7/porterminal/domain/values/environment_rules.py +156 -0
- ptn-0.2.7/porterminal/domain/values/rate_limit_config.py +21 -0
- ptn-0.2.7/porterminal/domain/values/session_id.py +20 -0
- ptn-0.2.7/porterminal/domain/values/shell_command.py +37 -0
- ptn-0.2.7/porterminal/domain/values/tab_id.py +24 -0
- ptn-0.2.7/porterminal/domain/values/terminal_dimensions.py +45 -0
- ptn-0.2.7/porterminal/domain/values/user_id.py +25 -0
- ptn-0.2.7/porterminal/infrastructure/__init__.py +20 -0
- ptn-0.2.7/porterminal/infrastructure/cloudflared.py +299 -0
- ptn-0.2.7/porterminal/infrastructure/config/__init__.py +7 -0
- ptn-0.2.7/porterminal/infrastructure/config/shell_detector.py +392 -0
- ptn-0.2.7/porterminal/infrastructure/network.py +43 -0
- ptn-0.2.7/porterminal/infrastructure/registry/__init__.py +5 -0
- ptn-0.2.7/porterminal/infrastructure/registry/user_connection_registry.py +104 -0
- ptn-0.2.7/porterminal/infrastructure/repositories/__init__.py +9 -0
- ptn-0.2.7/porterminal/infrastructure/repositories/in_memory_session.py +70 -0
- ptn-0.2.7/porterminal/infrastructure/repositories/in_memory_tab.py +120 -0
- ptn-0.2.7/porterminal/infrastructure/server.py +181 -0
- ptn-0.2.7/porterminal/infrastructure/web/__init__.py +7 -0
- ptn-0.2.7/porterminal/infrastructure/web/websocket_adapter.py +78 -0
- ptn-0.2.7/porterminal/logging_setup.py +48 -0
- ptn-0.2.7/porterminal/pty/__init__.py +46 -0
- ptn-0.2.7/porterminal/pty/env.py +97 -0
- ptn-0.2.7/porterminal/pty/manager.py +163 -0
- ptn-0.2.7/porterminal/pty/protocol.py +84 -0
- ptn-0.2.7/porterminal/pty/unix.py +162 -0
- ptn-0.2.7/porterminal/pty/windows.py +131 -0
- ptn-0.2.7/porterminal/static/assets/app-DQePboVd.css +32 -0
- ptn-0.2.7/porterminal/static/assets/app-DoBiVkTD.js +72 -0
- ptn-0.2.7/porterminal/static/icon.svg +34 -0
- ptn-0.2.7/porterminal/static/index.html +130 -0
- ptn-0.2.7/porterminal/updater.py +204 -0
- 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
|