zach-test-tool 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.
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.3
2
+ Name: zach-test-tool
3
+ Version: 0.1.0
4
+ Summary:
5
+ Author: zach.zhou
6
+ Author-email: zach.zhou@airwallex.com
7
+ Requires-Python: >=3.12
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.12
10
+ Classifier: Programming Language :: Python :: 3.13
11
+ Provides-Extra: web
12
+ Requires-Dist: requests (>=2.28,<3.0) ; extra == "web"
13
+ Description-Content-Type: text/markdown
14
+
15
+
File without changes
@@ -0,0 +1,25 @@
1
+ [project]
2
+ name = "zach-test-tool"
3
+ version = "0.1.0"
4
+ description = ""
5
+ authors = [
6
+ {name = "zach.zhou",email = "zach.zhou@airwallex.com"}
7
+ ]
8
+ readme = "README.md"
9
+ requires-python = ">=3.12"
10
+ dependencies = [
11
+ ]
12
+
13
+ [tool.poetry]
14
+ packages = [{include = "zach_test_tool", from = "src"}]
15
+
16
+ [tool.poetry.dependencies]
17
+ python = "^3.12"
18
+ requests = { version = "^2.28", optional = true } # web 子模块专用
19
+
20
+ [tool.poetry.extras]
21
+ web = ["requests"]
22
+
23
+ [build-system]
24
+ requires = ["poetry-core>=2.0.0,<3.0.0"]
25
+ build-backend = "poetry.core.masonry.api"
@@ -0,0 +1,7 @@
1
+ __version__ = "0.2.0"
2
+
3
+ # 暴露常用功能
4
+ from .math import add, multiply
5
+ from .web import get_json
6
+
7
+ __all__ = ['add', 'multiply', 'get_json']
@@ -0,0 +1,3 @@
1
+ from .basic import add, multiply
2
+
3
+ __all__ = ['add', 'multiply']
@@ -0,0 +1,7 @@
1
+ def add(a: float, b: float) -> float:
2
+ """Basic addition"""
3
+ return a + b
4
+
5
+ def multiply(a: float, b: float) -> float:
6
+ """Basic multiplication"""
7
+ return a * b
@@ -0,0 +1,3 @@
1
+ from .client import get_json
2
+
3
+ __all__ = ['get_json']
@@ -0,0 +1,7 @@
1
+ import requests
2
+
3
+ def get_json(url: str) -> dict:
4
+ """Fetch JSON data from URL"""
5
+ response = requests.get(url)
6
+ response.raise_for_status()
7
+ return response.json()