retunnel 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.
retunnel-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Farshid Ashouri
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,13 @@
1
+ include README.md
2
+ include LICENSE
3
+ include VERSION
4
+ include pyproject.toml
5
+ include setup.py
6
+ recursive-include retunnel *.py
7
+ recursive-include tests *.py
8
+ recursive-include docs *.md
9
+ prune tests/__pycache__
10
+ global-exclude *.pyc
11
+ global-exclude *.pyo
12
+ global-exclude __pycache__
13
+ global-exclude .DS_Store
@@ -0,0 +1,120 @@
1
+ Metadata-Version: 2.4
2
+ Name: retunnel
3
+ Version: 0.1.0
4
+ Summary: A placeholder package for ReTunnel services
5
+ Home-page: https://retunnel.com
6
+ Author: ReTunnel Team
7
+ Author-email: ReTunnel Team <support@retunnel.com>
8
+ License: MIT
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.8
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Dynamic: author
22
+ Dynamic: home-page
23
+ Dynamic: license-file
24
+
25
+ # ReTunnel Python Client
26
+
27
+ [![PyPI Version](https://badge.fury.io/py/retunnel.svg)](https://pypi.org/project/retunnel/)
28
+ [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
29
+
30
+ **Placeholder package for ReTunnel - Securely expose local servers to the internet**
31
+
32
+ ReTunnel is a free platform that allows developers to securely expose local servers to the internet through powerful tunneling capabilities. This Python package serves as a placeholder for the upcoming official ReTunnel client.
33
+
34
+ ## Features (Placeholder)
35
+
36
+ This is currently a placeholder package. The full ReTunnel client will include:
37
+
38
+ * Secure tunnel creation and management
39
+ * Multiple protocol support (HTTP, HTTPS, TCP)
40
+ * Custom domain configuration
41
+ * Authentication and API key management
42
+ * Automatic reconnection and failover
43
+ * Webhook forwarding
44
+ * Request inspection and replay
45
+
46
+ For now, this package provides a simple hello-world implementation to reserve the package name on PyPI.
47
+
48
+
49
+ ## Installation
50
+
51
+ You can install `retunnel` from PyPI using pip:
52
+
53
+ ```bash
54
+ pip install retunnel
55
+ ```
56
+
57
+ ## Usage
58
+
59
+ Here's a simple example demonstrating the placeholder functionality:
60
+
61
+ ```python
62
+ from retunnel import ReTunnelClient, hello
63
+
64
+ # Simple hello message
65
+ print(hello())
66
+
67
+ # Create a client instance
68
+ client = ReTunnelClient()
69
+
70
+ # Connect to the service (placeholder)
71
+ if client.connect():
72
+ print("Connected to ReTunnel service")
73
+
74
+ # Create a tunnel (placeholder)
75
+ tunnel_url = client.create_tunnel(port=8080)
76
+ print(f"Tunnel created: {tunnel_url}")
77
+
78
+ # Close the connection
79
+ client.close()
80
+
81
+ # Or use context manager
82
+ with ReTunnelClient(api_key="your-api-key") as client:
83
+ tunnel_url = client.create_tunnel(port=3000)
84
+ print(f"Tunnel URL: {tunnel_url}")
85
+ ```
86
+
87
+ ## Running Tests
88
+
89
+ To run the unit tests, install pytest and run:
90
+
91
+ ```bash
92
+ pip install pytest
93
+ ```
94
+
95
+ To run the tests:
96
+
97
+ ```bash
98
+ pytest tests/
99
+ ```
100
+
101
+ ## Documentation
102
+
103
+ Full documentation for ReTunnel is available at [https://retunnel.com](https://retunnel.com)
104
+
105
+ ## Contributing
106
+
107
+ This is a placeholder package. The actual ReTunnel client development is happening at the main ReTunnel repository.
108
+
109
+ ## License
110
+
111
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
112
+
113
+ ## Links
114
+
115
+ * Website: [https://retunnel.com](https://retunnel.com)
116
+ * PyPI: [https://pypi.org/project/retunnel/](https://pypi.org/project/retunnel/)
117
+
118
+ ---
119
+
120
+ **Note:** This is a placeholder package. The full-featured ReTunnel client is under development.
@@ -0,0 +1,96 @@
1
+ # ReTunnel Python Client
2
+
3
+ [![PyPI Version](https://badge.fury.io/py/retunnel.svg)](https://pypi.org/project/retunnel/)
4
+ [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
5
+
6
+ **Placeholder package for ReTunnel - Securely expose local servers to the internet**
7
+
8
+ ReTunnel is a free platform that allows developers to securely expose local servers to the internet through powerful tunneling capabilities. This Python package serves as a placeholder for the upcoming official ReTunnel client.
9
+
10
+ ## Features (Placeholder)
11
+
12
+ This is currently a placeholder package. The full ReTunnel client will include:
13
+
14
+ * Secure tunnel creation and management
15
+ * Multiple protocol support (HTTP, HTTPS, TCP)
16
+ * Custom domain configuration
17
+ * Authentication and API key management
18
+ * Automatic reconnection and failover
19
+ * Webhook forwarding
20
+ * Request inspection and replay
21
+
22
+ For now, this package provides a simple hello-world implementation to reserve the package name on PyPI.
23
+
24
+
25
+ ## Installation
26
+
27
+ You can install `retunnel` from PyPI using pip:
28
+
29
+ ```bash
30
+ pip install retunnel
31
+ ```
32
+
33
+ ## Usage
34
+
35
+ Here's a simple example demonstrating the placeholder functionality:
36
+
37
+ ```python
38
+ from retunnel import ReTunnelClient, hello
39
+
40
+ # Simple hello message
41
+ print(hello())
42
+
43
+ # Create a client instance
44
+ client = ReTunnelClient()
45
+
46
+ # Connect to the service (placeholder)
47
+ if client.connect():
48
+ print("Connected to ReTunnel service")
49
+
50
+ # Create a tunnel (placeholder)
51
+ tunnel_url = client.create_tunnel(port=8080)
52
+ print(f"Tunnel created: {tunnel_url}")
53
+
54
+ # Close the connection
55
+ client.close()
56
+
57
+ # Or use context manager
58
+ with ReTunnelClient(api_key="your-api-key") as client:
59
+ tunnel_url = client.create_tunnel(port=3000)
60
+ print(f"Tunnel URL: {tunnel_url}")
61
+ ```
62
+
63
+ ## Running Tests
64
+
65
+ To run the unit tests, install pytest and run:
66
+
67
+ ```bash
68
+ pip install pytest
69
+ ```
70
+
71
+ To run the tests:
72
+
73
+ ```bash
74
+ pytest tests/
75
+ ```
76
+
77
+ ## Documentation
78
+
79
+ Full documentation for ReTunnel is available at [https://retunnel.com](https://retunnel.com)
80
+
81
+ ## Contributing
82
+
83
+ This is a placeholder package. The actual ReTunnel client development is happening at the main ReTunnel repository.
84
+
85
+ ## License
86
+
87
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
88
+
89
+ ## Links
90
+
91
+ * Website: [https://retunnel.com](https://retunnel.com)
92
+ * PyPI: [https://pypi.org/project/retunnel/](https://pypi.org/project/retunnel/)
93
+
94
+ ---
95
+
96
+ **Note:** This is a placeholder package. The full-featured ReTunnel client is under development.
retunnel-0.1.0/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,56 @@
1
+ # ReTunnel Python Client Documentation
2
+
3
+ ## Overview
4
+
5
+ ReTunnel is a platform for securely exposing local servers to the internet. This Python package is currently a placeholder for the upcoming official ReTunnel client.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ pip install retunnel
11
+ ```
12
+
13
+ ## Quick Start
14
+
15
+ ```python
16
+ from retunnel import ReTunnelClient, hello
17
+
18
+ # Print hello message
19
+ print(hello())
20
+
21
+ # Create a tunnel (placeholder)
22
+ with ReTunnelClient() as client:
23
+ tunnel_url = client.create_tunnel(port=8080)
24
+ print(f"Tunnel URL: {tunnel_url}")
25
+ ```
26
+
27
+ ## API Reference
28
+
29
+ ### ReTunnelClient
30
+
31
+ The main client class for interacting with ReTunnel services.
32
+
33
+ #### Methods
34
+
35
+ - `__init__(api_key=None)`: Initialize the client with an optional API key
36
+ - `connect()`: Connect to the ReTunnel service
37
+ - `create_tunnel(port=8080)`: Create a tunnel for the specified port
38
+ - `close()`: Close the connection
39
+
40
+ #### Context Manager
41
+
42
+ The client supports Python's context manager protocol:
43
+
44
+ ```python
45
+ with ReTunnelClient() as client:
46
+ # Use client here
47
+ pass
48
+ ```
49
+
50
+ ### hello()
51
+
52
+ Returns a welcome message from ReTunnel.
53
+
54
+ ## More Information
55
+
56
+ Visit [https://retunnel.com](https://retunnel.com) for more information about ReTunnel.
@@ -0,0 +1,56 @@
1
+ # ReTunnel Python Client Documentation
2
+
3
+ ## Overview
4
+
5
+ ReTunnel is a platform for securely exposing local servers to the internet. This Python package is currently a placeholder for the upcoming official ReTunnel client.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ pip install retunnel
11
+ ```
12
+
13
+ ## Quick Start
14
+
15
+ ```python
16
+ from retunnel import ReTunnelClient, hello
17
+
18
+ # Print hello message
19
+ print(hello())
20
+
21
+ # Create a tunnel (placeholder)
22
+ with ReTunnelClient() as client:
23
+ tunnel_url = client.create_tunnel(port=8080)
24
+ print(f"Tunnel URL: {tunnel_url}")
25
+ ```
26
+
27
+ ## API Reference
28
+
29
+ ### ReTunnelClient
30
+
31
+ The main client class for interacting with ReTunnel services.
32
+
33
+ #### Methods
34
+
35
+ - `__init__(api_key=None)`: Initialize the client with an optional API key
36
+ - `connect()`: Connect to the ReTunnel service
37
+ - `create_tunnel(port=8080)`: Create a tunnel for the specified port
38
+ - `close()`: Close the connection
39
+
40
+ #### Context Manager
41
+
42
+ The client supports Python's context manager protocol:
43
+
44
+ ```python
45
+ with ReTunnelClient() as client:
46
+ # Use client here
47
+ pass
48
+ ```
49
+
50
+ ### hello()
51
+
52
+ Returns a welcome message from ReTunnel.
53
+
54
+ ## More Information
55
+
56
+ Visit [https://retunnel.com](https://retunnel.com) for more information about ReTunnel.
@@ -0,0 +1,93 @@
1
+ [build-system]
2
+ requires = ["setuptools>=45", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "retunnel"
7
+ version = "0.1.0"
8
+ description = "A placeholder package for ReTunnel services"
9
+ authors = [{name = "ReTunnel Team", email = "support@retunnel.com"}]
10
+ license = {text = "MIT"}
11
+ readme = "README.md"
12
+ requires-python = ">=3.8"
13
+ classifiers = [
14
+ "Development Status :: 3 - Alpha",
15
+ "Intended Audience :: Developers",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.8",
19
+ "Programming Language :: Python :: 3.9",
20
+ "Programming Language :: Python :: 3.10",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ ]
24
+
25
+ [tool.pytest.ini_options]
26
+ minversion = "6.0"
27
+ addopts = [
28
+ "-ra",
29
+ "-q",
30
+ "--strict-markers",
31
+ "--strict-config",
32
+ "--cov=retunnel",
33
+ "--cov-report=term-missing",
34
+ "--cov-report=xml",
35
+ "--cov-fail-under=80"
36
+ ]
37
+ testpaths = ["tests"]
38
+ python_files = ["test_*.py", "*_test.py"]
39
+ python_classes = ["Test*"]
40
+ python_functions = ["test_*"]
41
+ pythonpath = ["."]
42
+ markers = [
43
+ "slow: marks tests as slow",
44
+ "integration: marks tests as integration tests",
45
+ "unit: marks tests as unit tests"
46
+ ]
47
+
48
+ [tool.black]
49
+ line-length = 79
50
+ target-version = ["py38", "py39", "py310", "py311", "py312"]
51
+ include = '\.pyi?$'
52
+ extend-exclude = '''
53
+ /(
54
+ \.eggs
55
+ | \.git
56
+ | \.hg
57
+ | \.mypy_cache
58
+ | \.tox
59
+ | \.venv
60
+ | _build
61
+ | buck-out
62
+ | build
63
+ | dist
64
+ )/
65
+ '''
66
+
67
+ [tool.isort]
68
+ profile = "black"
69
+ line_length = 79
70
+ multi_line_output = 3
71
+ include_trailing_comma = true
72
+ force_grid_wrap = 0
73
+ use_parentheses = true
74
+ ensure_newline_before_comments = true
75
+ src_paths = ["retunnel", "tests"]
76
+
77
+ [tool.coverage.run]
78
+ source = ["retunnel"]
79
+ branch = true
80
+
81
+ [tool.coverage.report]
82
+ exclude_lines = [
83
+ "pragma: no cover",
84
+ "def __repr__",
85
+ "if self.debug:",
86
+ "if settings.DEBUG",
87
+ "raise AssertionError",
88
+ "raise NotImplementedError",
89
+ "if 0:",
90
+ "if __name__ == .__main__.:",
91
+ "class .*\\bProtocol\\):",
92
+ "@(abc\\.)?abstractmethod",
93
+ ]
@@ -0,0 +1,15 @@
1
+ """
2
+ ReTunnel - A placeholder package for ReTunnel services.
3
+
4
+ ReTunnel is a platform for securely exposing local servers to the internet.
5
+ This package serves as a placeholder for future ReTunnel client functionality.
6
+ """
7
+
8
+ __version__ = "0.1.0"
9
+ __author__ = "ReTunnel Team"
10
+ __email__ = "support@retunnel.com"
11
+ __url__ = "https://retunnel.com"
12
+
13
+ from .client import start_client
14
+
15
+ __all__ = ["start_client", "__version__"]
@@ -0,0 +1,12 @@
1
+ """
2
+ ReTunnel Client - Placeholder implementation for ReTunnel services.
3
+ """
4
+
5
+
6
+ def start_client():
7
+ """
8
+ Start the ReTunnel client service.
9
+ This function is a placeholder and should be implemented with actual client logic.
10
+ """
11
+ print("Starting ReTunnel client...")
12
+ return True
@@ -0,0 +1,120 @@
1
+ Metadata-Version: 2.4
2
+ Name: retunnel
3
+ Version: 0.1.0
4
+ Summary: A placeholder package for ReTunnel services
5
+ Home-page: https://retunnel.com
6
+ Author: ReTunnel Team
7
+ Author-email: ReTunnel Team <support@retunnel.com>
8
+ License: MIT
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.8
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Dynamic: author
22
+ Dynamic: home-page
23
+ Dynamic: license-file
24
+
25
+ # ReTunnel Python Client
26
+
27
+ [![PyPI Version](https://badge.fury.io/py/retunnel.svg)](https://pypi.org/project/retunnel/)
28
+ [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
29
+
30
+ **Placeholder package for ReTunnel - Securely expose local servers to the internet**
31
+
32
+ ReTunnel is a free platform that allows developers to securely expose local servers to the internet through powerful tunneling capabilities. This Python package serves as a placeholder for the upcoming official ReTunnel client.
33
+
34
+ ## Features (Placeholder)
35
+
36
+ This is currently a placeholder package. The full ReTunnel client will include:
37
+
38
+ * Secure tunnel creation and management
39
+ * Multiple protocol support (HTTP, HTTPS, TCP)
40
+ * Custom domain configuration
41
+ * Authentication and API key management
42
+ * Automatic reconnection and failover
43
+ * Webhook forwarding
44
+ * Request inspection and replay
45
+
46
+ For now, this package provides a simple hello-world implementation to reserve the package name on PyPI.
47
+
48
+
49
+ ## Installation
50
+
51
+ You can install `retunnel` from PyPI using pip:
52
+
53
+ ```bash
54
+ pip install retunnel
55
+ ```
56
+
57
+ ## Usage
58
+
59
+ Here's a simple example demonstrating the placeholder functionality:
60
+
61
+ ```python
62
+ from retunnel import ReTunnelClient, hello
63
+
64
+ # Simple hello message
65
+ print(hello())
66
+
67
+ # Create a client instance
68
+ client = ReTunnelClient()
69
+
70
+ # Connect to the service (placeholder)
71
+ if client.connect():
72
+ print("Connected to ReTunnel service")
73
+
74
+ # Create a tunnel (placeholder)
75
+ tunnel_url = client.create_tunnel(port=8080)
76
+ print(f"Tunnel created: {tunnel_url}")
77
+
78
+ # Close the connection
79
+ client.close()
80
+
81
+ # Or use context manager
82
+ with ReTunnelClient(api_key="your-api-key") as client:
83
+ tunnel_url = client.create_tunnel(port=3000)
84
+ print(f"Tunnel URL: {tunnel_url}")
85
+ ```
86
+
87
+ ## Running Tests
88
+
89
+ To run the unit tests, install pytest and run:
90
+
91
+ ```bash
92
+ pip install pytest
93
+ ```
94
+
95
+ To run the tests:
96
+
97
+ ```bash
98
+ pytest tests/
99
+ ```
100
+
101
+ ## Documentation
102
+
103
+ Full documentation for ReTunnel is available at [https://retunnel.com](https://retunnel.com)
104
+
105
+ ## Contributing
106
+
107
+ This is a placeholder package. The actual ReTunnel client development is happening at the main ReTunnel repository.
108
+
109
+ ## License
110
+
111
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
112
+
113
+ ## Links
114
+
115
+ * Website: [https://retunnel.com](https://retunnel.com)
116
+ * PyPI: [https://pypi.org/project/retunnel/](https://pypi.org/project/retunnel/)
117
+
118
+ ---
119
+
120
+ **Note:** This is a placeholder package. The full-featured ReTunnel client is under development.
@@ -0,0 +1,15 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ VERSION
5
+ pyproject.toml
6
+ setup.py
7
+ docs/README.md
8
+ docs/index.md
9
+ retunnel/__init__.py
10
+ retunnel/client.py
11
+ retunnel.egg-info/PKG-INFO
12
+ retunnel.egg-info/SOURCES.txt
13
+ retunnel.egg-info/dependency_links.txt
14
+ retunnel.egg-info/top_level.txt
15
+ tests/test_retunnel.py
@@ -0,0 +1 @@
1
+ retunnel
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,38 @@
1
+ from setuptools import find_packages, setup
2
+
3
+ with open("VERSION", "r") as version_file:
4
+ version = version_file.read().strip()
5
+
6
+ setup(
7
+ name="retunnel",
8
+ version=version,
9
+ packages=find_packages(
10
+ include=["retunnel"]
11
+ ), # Find packages under retunnel/
12
+ install_requires=[], # No dependencies for now
13
+ description="ReTunnel - Securely expose local servers to the internet",
14
+ long_description=open("README.md").read(),
15
+ long_description_content_type="text/markdown",
16
+ url="https://retunnel.com",
17
+ author="ReTunnel Team",
18
+ author_email="retunnel-support@rodmena.co.uk",
19
+ license="MIT",
20
+ license_files=(
21
+ "LICENSE",
22
+ ), # Explicitly include the LICENSE file - KEEP THIS!
23
+ classifiers=[
24
+ "Development Status :: 3 - Alpha",
25
+ "Intended Audience :: Developers",
26
+ "License :: OSI Approved :: MIT License",
27
+ "Programming Language :: Python :: 3",
28
+ "Programming Language :: Python :: 3.7",
29
+ "Programming Language :: Python :: 3.8",
30
+ "Programming Language :: Python :: 3.9",
31
+ "Programming Language :: Python :: 3.10",
32
+ "Programming Language :: Python :: 3.11",
33
+ "Programming Language :: Python :: 3.12",
34
+ "Topic :: Software Development :: Libraries :: Application Frameworks",
35
+ "Topic :: System :: Networking",
36
+ "Topic :: Internet :: WWW/HTTP",
37
+ ],
38
+ )
@@ -0,0 +1,9 @@
1
+ """
2
+ Tests for the ReTunnel package.
3
+ """
4
+
5
+ from retunnel import start_client
6
+
7
+
8
+ def test_re_tunnel():
9
+ assert start_client() is True, "ReTunnel client did not start successfully"