simple-proxy 0.0.7__tar.gz → 0.0.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simple-proxy
3
- Version: 0.0.7
3
+ Version: 0.0.9
4
4
  Summary: A very simple NIO TCP proxy server
5
5
  Home-page: https://github.com/ruanhao/simple-proxy
6
6
  Author: Hao Ruan
@@ -23,6 +23,10 @@ Classifier: Topic :: Software Development :: Libraries
23
23
  Requires-Python: >=3.7, <4
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE
26
+ Requires-Dist: click
27
+ Requires-Dist: py-netty
28
+ Requires-Dist: cryptography>=42.0.0
29
+ Requires-Dist: attrs>=22.1.0
26
30
 
27
31
  # simple-proxy :rocket:
28
32
 
@@ -22,7 +22,7 @@ config = {
22
22
  'keywords': ['network', 'tcp', 'non-blocking', 'proxy'],
23
23
  'version': __version__,
24
24
  'packages': find_packages(),
25
- 'install_requires': ['click', 'py-netty', 'cryptography~=42.0.0', 'attrs~=22.1.0'],
25
+ 'install_requires': ['click', 'py-netty', 'cryptography>=42.0.0', 'attrs>=22.1.0'],
26
26
  'python_requires': ">=3.7, <4",
27
27
  'setup_requires': ['wheel'],
28
28
  'package_data': {'simple_proxy': ['*']},
@@ -164,10 +164,15 @@ def _repr(obj):
164
164
 
165
165
  def _all_args_repr(args, kw):
166
166
  try:
167
- args_repr = [repr(arg) for arg in args]
168
- kws = [f"{k}={_repr(v)}" for k, v in kw.items()]
167
+ args_repr = [f"<{len(arg)} bytes>" if isinstance(arg, (bytes, bytearray)) else repr(arg) for arg in args]
168
+ kws = []
169
+ for k, v in kw.items():
170
+ if isinstance(v, (bytes, bytearray)):
171
+ kws.append(f"{k}=<{len(v)} bytes>")
172
+ else:
173
+ kws.append(f"{k}={repr(v)}")
169
174
  return ', '.join(args_repr + kws)
170
- except Exception:
175
+ except (Exception,):
171
176
  return "(?)"
172
177
 
173
178
 
@@ -0,0 +1 @@
1
+ __version__ = "0.0.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simple-proxy
3
- Version: 0.0.7
3
+ Version: 0.0.9
4
4
  Summary: A very simple NIO TCP proxy server
5
5
  Home-page: https://github.com/ruanhao/simple-proxy
6
6
  Author: Hao Ruan
@@ -23,6 +23,10 @@ Classifier: Topic :: Software Development :: Libraries
23
23
  Requires-Python: >=3.7, <4
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE
26
+ Requires-Dist: click
27
+ Requires-Dist: py-netty
28
+ Requires-Dist: cryptography>=42.0.0
29
+ Requires-Dist: attrs>=22.1.0
26
30
 
27
31
  # simple-proxy :rocket:
28
32
 
@@ -0,0 +1,4 @@
1
+ click
2
+ py-netty
3
+ cryptography>=42.0.0
4
+ attrs>=22.1.0
@@ -1 +0,0 @@
1
- __version__ = "0.0.7"
@@ -1,4 +0,0 @@
1
- click
2
- py-netty
3
- cryptography~=42.0.0
4
- attrs~=22.1.0
File without changes
File without changes
File without changes