rcoder 1.0.2__tar.gz → 1.0.4__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 (25) hide show
  1. {rcoder-1.0.2/rcoder.egg-info → rcoder-1.0.4}/PKG-INFO +1 -1
  2. {rcoder-1.0.2 → rcoder-1.0.4}/pyproject.toml +1 -1
  3. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/cli.py +5 -1
  4. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/utils.py +4 -0
  5. {rcoder-1.0.2 → rcoder-1.0.4/rcoder.egg-info}/PKG-INFO +1 -1
  6. {rcoder-1.0.2 → rcoder-1.0.4}/setup.py +1 -1
  7. {rcoder-1.0.2 → rcoder-1.0.4}/LICENSE +0 -0
  8. {rcoder-1.0.2 → rcoder-1.0.4}/README.md +0 -0
  9. {rcoder-1.0.2 → rcoder-1.0.4}/README_RCODER.md +0 -0
  10. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/__init__.py +0 -0
  11. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/async_feedback.py +0 -0
  12. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/async_proxy.py +0 -0
  13. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/auto_optimizer.py +0 -0
  14. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/conversational_config.py +0 -0
  15. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/core.py +0 -0
  16. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/core_optimized.py +0 -0
  17. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/process_manager.py +0 -0
  18. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/remote_tools.py +0 -0
  19. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder/server_installer.py +0 -0
  20. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder.egg-info/SOURCES.txt +0 -0
  21. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder.egg-info/dependency_links.txt +0 -0
  22. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder.egg-info/entry_points.txt +0 -0
  23. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder.egg-info/requires.txt +0 -0
  24. {rcoder-1.0.2 → rcoder-1.0.4}/rcoder.egg-info/top_level.txt +0 -0
  25. {rcoder-1.0.2 → rcoder-1.0.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rcoder
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: 远程代码执行与管理系统,支持低带宽场景和中转服务器场景
5
5
  Home-page: https://github.com/YKaiXu/rcoder
6
6
  Author: YuKaiXu
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rcoder"
7
- version = "1.0.2"
7
+ version = "1.0.4"
8
8
  description = "远程代码执行与管理系统,支持低带宽场景和中转服务器场景"
9
9
  readme = "README_RCODER.md"
10
10
  authors = [
@@ -141,5 +141,9 @@ def cli():
141
141
  parser.print_help()
142
142
 
143
143
 
144
- if __name__ == '__main__':
144
+ def main():
145
+ """主入口函数"""
145
146
  cli()
147
+
148
+ if __name__ == '__main__':
149
+ main()
@@ -63,6 +63,10 @@ class ConfigManager:
63
63
  use_https_disguise: bool = True,
64
64
  proxy_server: Optional[tuple] = None):
65
65
  """添加服务器配置"""
66
+ # 确保servers键存在
67
+ if 'servers' not in self.config:
68
+ self.config['servers'] = {}
69
+
66
70
  self.config['servers'][name] = {
67
71
  'host': host,
68
72
  'port': port,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rcoder
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: 远程代码执行与管理系统,支持低带宽场景和中转服务器场景
5
5
  Home-page: https://github.com/YKaiXu/rcoder
6
6
  Author: YuKaiXu
@@ -14,7 +14,7 @@ with open(os.path.join(os.path.dirname(__file__), 'README_RCODER.md'), 'r', enco
14
14
  setup(
15
15
  # 包信息
16
16
  name="rcoder",
17
- version="1.0.2",
17
+ version="1.0.4",
18
18
  description="远程代码执行与管理系统,支持低带宽场景和中转服务器场景",
19
19
  long_description=long_description,
20
20
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes