msopmodeling 0.0.1__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.
@@ -0,0 +1,10 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(pip --version)",
5
+ "Bash(pip install:*)",
6
+ "Bash(powershell -Command \"Get-Content 'D:\\\\code\\\\sandbox\\\\ascend_op_tool_insights\\\\docs\\\\public\\\\design\\\\007.install_opt\\\\MindStudio工具安装易用性提升方案.md' -Raw\")",
7
+ "Bash(powershell -Command \"\\(Get-Content 'D:\\\\code\\\\sandbox\\\\ascend_op_tool_insights\\\\docs\\\\public\\\\design\\\\007.install_opt\\\\MindStudio工具安装易用性提升方案.md'\\).Count\")"
8
+ ]
9
+ }
10
+ }
@@ -0,0 +1,14 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ dist/
5
+ build/
6
+ .eggs/
7
+ *.egg
8
+ .venv/
9
+ venv/
10
+ env/
11
+ .pytest_cache/
12
+ .coverage
13
+ htmlcov/
14
+ *.pyc
@@ -0,0 +1,10 @@
1
+ # 默认忽略的文件
2
+ /shelf/
3
+ /workspace.xml
4
+ # 已忽略包含查询文件的默认文件夹
5
+ /queries/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
9
+ # 基于编辑器的 HTTP 客户端请求
10
+ /httpRequests/
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Black">
4
+ <option name="sdkName" value="Python 3.11 (PyCharmMiscProject) (2)" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (PyCharmMiscProject) (2)" project-jdk-type="Python SDK" />
7
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/pip_helloworld.iml" filepath="$PROJECT_DIR$/.idea/pip_helloworld.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
6
+ </content>
7
+ <orderEntry type="jdk" jdkName="Python 3.11 (PyCharmMiscProject) (2)" jdkType="Python SDK" />
8
+ <orderEntry type="sourceFolder" forTests="false" />
9
+ </component>
10
+ <component name="PyDocumentationSettings">
11
+ <option name="format" value="GOOGLE" />
12
+ <option name="myDocStringFormat" value="Google" />
13
+ </component>
14
+ <component name="TestRunnerService">
15
+ <option name="PROJECT_TEST_RUNNER" value="py.test" />
16
+ </component>
17
+ </module>
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="6a5b9851-3f2e-4a14-bb92-a0b4a23aab75" name="更改" comment="" />
5
+ <option name="SHOW_DIALOG" value="false" />
6
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
7
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
8
+ <option name="LAST_RESOLUTION" value="IGNORE" />
9
+ </component>
10
+ <component name="ProjectColorInfo">{
11
+ &quot;associatedIndex&quot;: 7
12
+ }</component>
13
+ <component name="ProjectId" id="3C3QlF0ZDrYMBjv3KWoTeKLAiRl" />
14
+ <component name="ProjectViewState">
15
+ <option name="autoscrollFromSource" value="true" />
16
+ <option name="hideEmptyMiddlePackages" value="true" />
17
+ <option name="showLibraryContents" value="true" />
18
+ </component>
19
+ <component name="PropertiesComponent">{
20
+ &quot;keyToString&quot;: {
21
+ &quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;,
22
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
23
+ &quot;RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252&quot;: &quot;true&quot;,
24
+ &quot;RunOnceActivity.typescript.service.memoryLimit.init&quot;: &quot;true&quot;,
25
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
26
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
27
+ }
28
+ }</component>
29
+ <component name="SharedIndexes">
30
+ <attachedChunks>
31
+ <set>
32
+ <option value="bundled-js-predefined-d6986cc7102b-c7e53b3be11b-JavaScript-PY-253.28294.336" />
33
+ <option value="bundled-python-sdk-0978a7220b69-9867c7d4c0a4-com.jetbrains.pycharm.pro.sharedIndexes.bundled-PY-253.28294.336" />
34
+ </set>
35
+ </attachedChunks>
36
+ </component>
37
+ <component name="TaskManager">
38
+ <task active="true" id="Default" summary="默认任务">
39
+ <changelist id="6a5b9851-3f2e-4a14-bb92-a0b4a23aab75" name="更改" comment="" />
40
+ <created>1775611922909</created>
41
+ <option name="number" value="Default" />
42
+ <option name="presentableId" value="Default" />
43
+ <updated>1775611922909</updated>
44
+ <workItem from="1775611924223" duration="8187000" />
45
+ <workItem from="1775800634482" duration="49000" />
46
+ </task>
47
+ <servers />
48
+ </component>
49
+ <component name="TypeScriptGeneratedFilesManager">
50
+ <option name="version" value="3" />
51
+ </component>
52
+ </project>
@@ -0,0 +1,62 @@
1
+ Metadata-Version: 2.4
2
+ Name: msopmodeling
3
+ Version: 0.0.1
4
+ Summary: Coming soon
5
+ Requires-Python: >=3.8
6
+ Description-Content-Type: text/markdown
7
+
8
+ # pip-helloworld
9
+
10
+ 一个用于学习 PyPI 发布流程的 Hello World 示例包。
11
+
12
+ ## 安装
13
+
14
+ ```bash
15
+ pip install pip-helloworld
16
+ ```
17
+
18
+ ## 使用
19
+
20
+ ### 作为命令行工具
21
+
22
+ ```bash
23
+ pip-helloworld
24
+ ```
25
+
26
+ ### 在 Python 中使用
27
+
28
+ ```python
29
+ from pip_helloworld import greet, hello
30
+
31
+ # 自定义问候
32
+ print(greet("Alice"))
33
+ # 输出: Hello, Alice! 👋 来自 pip_helloworld 包
34
+
35
+ # 默认问候
36
+ hello()
37
+ # 输出: Hello, World! 👋 来自 pip_helloworld 包
38
+ ```
39
+
40
+ ### 作为模块运行
41
+
42
+ ```bash
43
+ python -m pip_helloworld
44
+ ```
45
+
46
+ ## 开发
47
+
48
+ ```bash
49
+ # 克隆项目
50
+ git clone https://github.com/yourname/pip-helloworld.git
51
+ cd pip-helloworld
52
+
53
+ # 安装开发依赖
54
+ pip install -e ".[dev]"
55
+
56
+ # 运行测试
57
+ pytest
58
+ ```
59
+
60
+ ## License
61
+
62
+ MIT
@@ -0,0 +1,55 @@
1
+ # pip-helloworld
2
+
3
+ 一个用于学习 PyPI 发布流程的 Hello World 示例包。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pip install pip-helloworld
9
+ ```
10
+
11
+ ## 使用
12
+
13
+ ### 作为命令行工具
14
+
15
+ ```bash
16
+ pip-helloworld
17
+ ```
18
+
19
+ ### 在 Python 中使用
20
+
21
+ ```python
22
+ from pip_helloworld import greet, hello
23
+
24
+ # 自定义问候
25
+ print(greet("Alice"))
26
+ # 输出: Hello, Alice! 👋 来自 pip_helloworld 包
27
+
28
+ # 默认问候
29
+ hello()
30
+ # 输出: Hello, World! 👋 来自 pip_helloworld 包
31
+ ```
32
+
33
+ ### 作为模块运行
34
+
35
+ ```bash
36
+ python -m pip_helloworld
37
+ ```
38
+
39
+ ## 开发
40
+
41
+ ```bash
42
+ # 克隆项目
43
+ git clone https://github.com/yourname/pip-helloworld.git
44
+ cd pip-helloworld
45
+
46
+ # 安装开发依赖
47
+ pip install -e ".[dev]"
48
+
49
+ # 运行测试
50
+ pytest
51
+ ```
52
+
53
+ ## License
54
+
55
+ MIT
@@ -0,0 +1,16 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "msopmodeling"
7
+ version = "0.0.1"
8
+ description = "Coming soon"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+
12
+ [project.scripts]
13
+ msopmodeling = "msopmodeling.__main__:main"
14
+
15
+ [tool.hatch.build.targets.wheel]
16
+ packages = ["msopmodeling"]
@@ -0,0 +1 @@
1
+ __version__ = "0.0.1"
@@ -0,0 +1,6 @@
1
+ def main() -> None:
2
+ print("coming soon...")
3
+
4
+
5
+ if __name__ == "__main__":
6
+ main()
@@ -0,0 +1,8 @@
1
+ """pip_helloworld - 一个用于学习 PyPI 发布流程的示例包"""
2
+
3
+ __version__ = "0.1.0"
4
+ __author__ = "max"
5
+
6
+ from .hello import greet, hello
7
+
8
+ __all__ = ["greet", "hello"]
@@ -0,0 +1,6 @@
1
+ """允许通过 python -m pip_helloworld 运行"""
2
+
3
+ from .hello import hello
4
+
5
+ if __name__ == "__main__":
6
+ hello()
@@ -0,0 +1,18 @@
1
+ """核心功能模块"""
2
+
3
+
4
+ def greet(name: str) -> str:
5
+ """返回问候语字符串
6
+
7
+ Args:
8
+ name: 被问候的名字
9
+
10
+ Returns:
11
+ 问候语字符串
12
+ """
13
+ return f"Hello, {name}! 👋 来自 pip_helloworld 包"
14
+
15
+
16
+ def hello() -> None:
17
+ """打印默认问候语"""
18
+ print(greet("World"))
File without changes
@@ -0,0 +1,33 @@
1
+ """测试核心功能"""
2
+
3
+ import pytest
4
+ from pip_helloworld import greet, hello
5
+ from pip_helloworld import __version__
6
+
7
+
8
+ def test_greet_returns_string():
9
+ result = greet("Alice")
10
+ assert isinstance(result, str)
11
+
12
+
13
+ def test_greet_contains_name():
14
+ result = greet("Alice")
15
+ assert "Alice" in result
16
+
17
+
18
+ def test_greet_world():
19
+ result = greet("World")
20
+ assert "World" in result
21
+ assert "Hello" in result
22
+
23
+
24
+ def test_hello_prints(capsys):
25
+ hello()
26
+ captured = capsys.readouterr()
27
+ assert "Hello" in captured.out
28
+ assert "World" in captured.out
29
+
30
+
31
+ def test_version_exists():
32
+ assert __version__ is not None
33
+ assert isinstance(__version__, str)