qtmodel 2.2.5__tar.gz → 2.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.
- {qtmodel-2.2.5 → qtmodel-2.2.7}/PKG-INFO +4 -4
- {qtmodel-2.2.5 → qtmodel-2.2.7}/README.md +3 -3
- {qtmodel-2.2.5 → qtmodel-2.2.7}/pyproject.toml +4 -1
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/core/qt_server.py +14 -7
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_project.py +2 -4
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_structure.py +1 -1
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel.egg-info/PKG-INFO +4 -4
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel.egg-info/SOURCES.txt +1 -3
- qtmodel-2.2.5/test/test.py +0 -6
- qtmodel-2.2.5/test/test2.py +0 -4
- {qtmodel-2.2.5 → qtmodel-2.2.7}/setup.cfg +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/__init__.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/cdb/__init__.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/cdb/cdb_anti_overturn_check.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/cdb/cdb_concrete_check.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/cdb/cdb_steel_box_check.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/cdb/cdb_steel_truss_check.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/core/__init__.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/core/data_helper.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/core/model_db.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/core/result_db.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/__init__.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_analysis_setting.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_assistant.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_boundary.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_construction_stage.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_dynamic_load.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_live_load.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_load.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_property.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_section.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_sink_load.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_static_load.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_temperature_load.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/mdb/mdb_tendon.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/odb/__init__.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/odb/odb_model_boundary.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/odb/odb_model_load.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/odb/odb_model_material.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/odb/odb_model_section.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/odb/odb_model_stage.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/odb/odb_model_structure.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/odb/odb_result_data.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/odb/odb_result_plot.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel/odb/odb_view.py +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-2.2.5 → qtmodel-2.2.7}/src/qtmodel.egg-info/top_level.txt +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.7
|
|
4
4
|
Summary: qtmodel package
|
|
5
5
|
Author: Your Name
|
|
6
6
|
Requires-Python: >=3.9
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
|
|
9
|
-
> 最新qtmodel版本 V2.2.
|
|
9
|
+
> 最新qtmodel版本 V2.2.7 - 2026-04-16
|
|
10
10
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
11
|
-
-
|
|
11
|
+
- 更新2.2.6版本,优化帮助文档
|
|
12
12
|
# 建模操作
|
|
13
13
|
## 节点操作
|
|
14
14
|
### add_nodes
|
|
@@ -209,7 +209,7 @@ mdb.update_frame_section(ids=1,sec_id=2)
|
|
|
209
209
|
#Returns: 无
|
|
210
210
|
```
|
|
211
211
|
### update_plate_thick
|
|
212
|
-
|
|
212
|
+
更新板单元截面
|
|
213
213
|
> 参数:
|
|
214
214
|
> ids: 单元编号,支持整形、列表、XtoYbyZ形式字符串
|
|
215
215
|
> thick_id: 板厚号
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
> 最新qtmodel版本 V2.2.
|
|
1
|
+
> 最新qtmodel版本 V2.2.7 - 2026-04-16
|
|
2
2
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
|
-
-
|
|
3
|
+
- 更新2.2.6版本,优化帮助文档
|
|
4
4
|
# 建模操作
|
|
5
5
|
## 节点操作
|
|
6
6
|
### add_nodes
|
|
@@ -201,7 +201,7 @@ mdb.update_frame_section(ids=1,sec_id=2)
|
|
|
201
201
|
#Returns: 无
|
|
202
202
|
```
|
|
203
203
|
### update_plate_thick
|
|
204
|
-
|
|
204
|
+
更新板单元截面
|
|
205
205
|
> 参数:
|
|
206
206
|
> ids: 单元编号,支持整形、列表、XtoYbyZ形式字符串
|
|
207
207
|
> thick_id: 板厚号
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qtmodel"
|
|
7
|
-
version = "2.2.
|
|
7
|
+
version = "2.2.7"
|
|
8
8
|
description = "qtmodel package"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -16,6 +16,9 @@ package-dir = {"" = "src"}
|
|
|
16
16
|
[tool.setuptools.packages.find]
|
|
17
17
|
where = ["src"]
|
|
18
18
|
|
|
19
|
+
# $env:HTTP_PROXY=""
|
|
20
|
+
# $env:HTTPS_PROXY=""
|
|
21
|
+
# $env:NO_PROXY="*"
|
|
19
22
|
# py -m pip install -U pip build twine
|
|
20
23
|
# py -m build
|
|
21
24
|
# py -m twine check dist/*
|
|
@@ -3,21 +3,26 @@ import threading
|
|
|
3
3
|
from typing import Optional
|
|
4
4
|
import requests
|
|
5
5
|
|
|
6
|
+
import json
|
|
7
|
+
import threading
|
|
8
|
+
from typing import Optional
|
|
9
|
+
import requests
|
|
10
|
+
|
|
6
11
|
class QtServer:
|
|
7
12
|
URL: str = "http://localhost:55125/pythonForQt/"
|
|
8
|
-
QT_VERSION: str = "2.2.
|
|
13
|
+
QT_VERSION: str = "2.2.6"
|
|
9
14
|
_session = requests.Session()
|
|
10
15
|
_lock = threading.Lock()
|
|
11
16
|
|
|
12
17
|
@staticmethod
|
|
13
|
-
def send_command(command: str = "", header: str = ""):
|
|
18
|
+
def send_command(command: str = "", header: str = "", read_timeout: int = 600):
|
|
14
19
|
try:
|
|
15
20
|
with QtServer._lock:
|
|
16
21
|
response = QtServer._session.post(
|
|
17
22
|
QtServer.URL,
|
|
18
|
-
headers={'Content-Type':
|
|
23
|
+
headers={'Content-Type': header},
|
|
19
24
|
data=command.encode('utf-8'),
|
|
20
|
-
timeout=(3,
|
|
25
|
+
timeout=(3, read_timeout)
|
|
21
26
|
)
|
|
22
27
|
|
|
23
28
|
if response.status_code == 200:
|
|
@@ -30,18 +35,20 @@ class QtServer:
|
|
|
30
35
|
raise Exception("服务端处理超时,请增加最大等待时间")
|
|
31
36
|
else:
|
|
32
37
|
raise Exception(f"连接错误,请重新尝试。HTTP {response.status_code}: {response.text}")
|
|
38
|
+
except requests.exceptions.ReadTimeout as ex:
|
|
39
|
+
raise Exception(f"请求超时:服务端处理超过 {read_timeout} 秒仍未返回") from ex
|
|
33
40
|
except requests.exceptions.RequestException as ex:
|
|
34
41
|
raise Exception(f"请求失败: {ex}") from ex
|
|
35
42
|
|
|
36
43
|
@staticmethod
|
|
37
|
-
def send_dict(header: str, payload: Optional[dict] = None):
|
|
44
|
+
def send_dict(header: str, payload: Optional[dict] = None, read_timeout: int = 600):
|
|
38
45
|
try:
|
|
39
46
|
if not payload:
|
|
40
|
-
return QtServer.send_command(header=header, command="")
|
|
47
|
+
return QtServer.send_command(header=header, command="", read_timeout=read_timeout)
|
|
41
48
|
payload = dict(payload)
|
|
42
49
|
if "version" not in payload:
|
|
43
50
|
payload["version"] = QtServer.QT_VERSION
|
|
44
51
|
json_string = json.dumps(payload, ensure_ascii=False)
|
|
45
|
-
return QtServer.send_command(header=header, command=json_string)
|
|
52
|
+
return QtServer.send_command(header=header, command=json_string, read_timeout=read_timeout)
|
|
46
53
|
except Exception as ex:
|
|
47
54
|
raise Exception(str(ex)) from ex
|
|
@@ -50,11 +50,9 @@ class MdbProject:
|
|
|
50
50
|
current = _parse_version(QtServer.QT_VERSION)
|
|
51
51
|
target = _parse_version(version)
|
|
52
52
|
|
|
53
|
-
#
|
|
53
|
+
# 如果版本大于当前版本,直接按照当前版本导入
|
|
54
54
|
if target > current:
|
|
55
|
-
|
|
56
|
-
f"不允许设置到更高版本:当前最高版本 {QtServer.QT_VERSION}"
|
|
57
|
-
)
|
|
55
|
+
return
|
|
58
56
|
QtServer.QT_VERSION = version
|
|
59
57
|
|
|
60
58
|
@staticmethod
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.7
|
|
4
4
|
Summary: qtmodel package
|
|
5
5
|
Author: Your Name
|
|
6
6
|
Requires-Python: >=3.9
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
|
|
9
|
-
> 最新qtmodel版本 V2.2.
|
|
9
|
+
> 最新qtmodel版本 V2.2.7 - 2026-04-16
|
|
10
10
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
11
|
-
-
|
|
11
|
+
- 更新2.2.6版本,优化帮助文档
|
|
12
12
|
# 建模操作
|
|
13
13
|
## 节点操作
|
|
14
14
|
### add_nodes
|
|
@@ -209,7 +209,7 @@ mdb.update_frame_section(ids=1,sec_id=2)
|
|
|
209
209
|
#Returns: 无
|
|
210
210
|
```
|
|
211
211
|
### update_plate_thick
|
|
212
|
-
|
|
212
|
+
更新板单元截面
|
|
213
213
|
> 参数:
|
|
214
214
|
> ids: 单元编号,支持整形、列表、XtoYbyZ形式字符串
|
|
215
215
|
> thick_id: 板厚号
|
qtmodel-2.2.5/test/test.py
DELETED
qtmodel-2.2.5/test/test2.py
DELETED
|
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
|
|
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
|
|
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
|
|
File without changes
|