vx-toolkit 1.16.2__py3-none-any.whl

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 (77) hide show
  1. vx_toolkit/__init__.py +10 -0
  2. vx_toolkit/_bin/headers/collections/vec.c +8 -0
  3. vx_toolkit/_bin/headers/collections/vec.vxh +2 -0
  4. vx_toolkit/_bin/headers/cpp/greet.cpp +11 -0
  5. vx_toolkit/_bin/headers/cpp/greet.hpp +6 -0
  6. vx_toolkit/_bin/headers/cpp/greet.vxh +4 -0
  7. vx_toolkit/_bin/headers/fmath.c +3 -0
  8. vx_toolkit/_bin/headers/fmath.vxh +5 -0
  9. vx_toolkit/_bin/headers/math.c +6 -0
  10. vx_toolkit/_bin/headers/math.vxh +4 -0
  11. vx_toolkit/_bin/headers/sys.c +9 -0
  12. vx_toolkit/_bin/headers/sys.vxh +3 -0
  13. vx_toolkit/_bin/headers/text.c +17 -0
  14. vx_toolkit/_bin/headers/text.vxh +6 -0
  15. vx_toolkit/_bin/libvxrt.a +0 -0
  16. vx_toolkit/_bin/libvxtidy.dylib +0 -0
  17. vx_toolkit/_bin/std/README.md +90 -0
  18. vx_toolkit/_bin/std/bytes.vx +65 -0
  19. vx_toolkit/_bin/std/char.vx +83 -0
  20. vx_toolkit/_bin/std/collections/hashmap.vx +31 -0
  21. vx_toolkit/_bin/std/collections/linked_list.vx +166 -0
  22. vx_toolkit/_bin/std/collections/mod.vx +8 -0
  23. vx_toolkit/_bin/std/collections/set.vx +102 -0
  24. vx_toolkit/_bin/std/collections/vec.vx +40 -0
  25. vx_toolkit/_bin/std/conv.vx +57 -0
  26. vx_toolkit/_bin/std/error.vx +165 -0
  27. vx_toolkit/_bin/std/io/dir.vx +50 -0
  28. vx_toolkit/_bin/std/io/file.vx +154 -0
  29. vx_toolkit/_bin/std/io/mod.vx +5 -0
  30. vx_toolkit/_bin/std/io/path.vx +105 -0
  31. vx_toolkit/_bin/std/io/stream.vx +82 -0
  32. vx_toolkit/_bin/std/io.vx +6 -0
  33. vx_toolkit/_bin/std/iter.vx +67 -0
  34. vx_toolkit/_bin/std/macros.vx +117 -0
  35. vx_toolkit/_bin/std/math/math.vx +341 -0
  36. vx_toolkit/_bin/std/math/mod.vx +6 -0
  37. vx_toolkit/_bin/std/math/random.vx +104 -0
  38. vx_toolkit/_bin/std/mem/allocator.vx +9 -0
  39. vx_toolkit/_bin/std/mem/arena.vx +41 -0
  40. vx_toolkit/_bin/std/mem/general.vx +35 -0
  41. vx_toolkit/_bin/std/mem/mod.vx +11 -0
  42. vx_toolkit/_bin/std/mem/page.vx +23 -0
  43. vx_toolkit/_bin/std/mod.vx +5 -0
  44. vx_toolkit/_bin/std/option.vx +68 -0
  45. vx_toolkit/_bin/std/prelude.vx +13 -0
  46. vx_toolkit/_bin/std/reflect/mod.vx +129 -0
  47. vx_toolkit/_bin/std/string/codec.vx +146 -0
  48. vx_toolkit/_bin/std/string/core.vx +28 -0
  49. vx_toolkit/_bin/std/string/iter.vx +49 -0
  50. vx_toolkit/_bin/std/string/mod.vx +7 -0
  51. vx_toolkit/_bin/std/string/pattern.vx +84 -0
  52. vx_toolkit/_bin/std/string/util.vx +369 -0
  53. vx_toolkit/_bin/std/sys/coroutine.vx +46 -0
  54. vx_toolkit/_bin/std/sys/datetime.vx +160 -0
  55. vx_toolkit/_bin/std/sys/duration.vx +53 -0
  56. vx_toolkit/_bin/std/sys/env.vx +43 -0
  57. vx_toolkit/_bin/std/sys/mod.vx +10 -0
  58. vx_toolkit/_bin/std/sys/sync.vx +132 -0
  59. vx_toolkit/_bin/std/sys/time.vx +28 -0
  60. vx_toolkit/_bin/std/sys.vx +6 -0
  61. vx_toolkit/_bin/std/tests/run_all.vx +627 -0
  62. vx_toolkit/_bin/std/tests/smoke.vx +4 -0
  63. vx_toolkit/_bin/std/tests/test_collections.vx +42 -0
  64. vx_toolkit/_bin/std/tests/test_string_io.vx +202 -0
  65. vx_toolkit/_bin/vfmt +0 -0
  66. vx_toolkit/_bin/vlnk +0 -0
  67. vx_toolkit/_bin/vmake +0 -0
  68. vx_toolkit/_bin/vmake-lsp +0 -0
  69. vx_toolkit/_bin/vx +0 -0
  70. vx_toolkit/_bin/vxc +0 -0
  71. vx_toolkit/_bin/vxls +0 -0
  72. vx_toolkit/_dispatch.py +121 -0
  73. vx_toolkit-1.16.2.dist-info/METADATA +13 -0
  74. vx_toolkit-1.16.2.dist-info/RECORD +77 -0
  75. vx_toolkit-1.16.2.dist-info/WHEEL +4 -0
  76. vx_toolkit-1.16.2.dist-info/entry_points.txt +8 -0
  77. vx_toolkit-1.16.2.dist-info/licenses/LICENSE +198 -0
@@ -0,0 +1,202 @@
1
+ # ============================================================
2
+ # std::string & std::io 测试套件
3
+ # 验证字符串处理和 I/O 功能
4
+ # ============================================================
5
+
6
+ import std.string.util
7
+ import std.io.file
8
+ import std.error
9
+
10
+ func test_string_basic():
11
+ out("=== Test String Basic ===")
12
+ var s: string = "Hello, World!"
13
+
14
+ # 测试长度
15
+ if len(s) != 13:
16
+ out("FAIL: length should be 13")
17
+ return
18
+
19
+ # 测试大小写转换
20
+ var upper: string = s.to_upper()
21
+ if upper != "HELLO, WORLD!":
22
+ out("FAIL: to_upper failed")
23
+ return
24
+
25
+ var lower: string = upper.to_lower()
26
+ if lower != "hello, world!":
27
+ out("FAIL: to_lower failed")
28
+ return
29
+
30
+ # 测试包含
31
+ if s.contains("World") == false:
32
+ out("FAIL: contains should find 'World'")
33
+ return
34
+
35
+ if s.contains("world"):
36
+ out("FAIL: contains should not find 'world' (case sensitive)")
37
+ return
38
+
39
+ # 测试分割
40
+ var parts: vec.Vec = s.split(", ")
41
+ if parts.size() != 2:
42
+ out("FAIL: split should produce 2 parts")
43
+ return
44
+
45
+ if parts.get(0) != "Hello":
46
+ out("FAIL: first part should be 'Hello'")
47
+ return
48
+
49
+ if parts.get(1) != "World!":
50
+ out("FAIL: second part should be 'World!'")
51
+ return
52
+
53
+ # 测试替换
54
+ var replaced: string = s.replace("World", "VX")
55
+ if replaced != "Hello, VX!":
56
+ out("FAIL: replace failed")
57
+ return
58
+
59
+ # 测试裁剪
60
+ var trimmed: string = " hello ".trim()
61
+ if trimmed != "hello":
62
+ out("FAIL: trim failed")
63
+ return
64
+
65
+ # 测试子串
66
+ var substr: string = s.substring(0, 5)
67
+ if substr != "Hello":
68
+ out("FAIL: substring failed")
69
+ return
70
+
71
+ out("PASS: test_string_basic")
72
+
73
+ func test_string_util():
74
+ out("=== Test StringUtil ===")
75
+
76
+ # 测试行分割
77
+ var text: string = "line1\nline2\nline3"
78
+ var lines: vec.Vec = StringUtil.lines(text)
79
+
80
+ if lines.size() != 3:
81
+ out("FAIL: lines should produce 3 lines")
82
+ return
83
+
84
+ # 测试连接
85
+ var joined: string = StringUtil.join(lines, ", ")
86
+ if joined != "line1, line2, line3":
87
+ out("FAIL: join failed")
88
+ return
89
+
90
+ # 测试重复
91
+ var repeated: string = StringUtil.repeat("ab", 3)
92
+ if repeated != "ababab":
93
+ out("FAIL: repeat failed")
94
+ return
95
+
96
+ # 测试填充
97
+ var padded: string = StringUtil.pad_left("5", 3, "0")
98
+ if padded != "005":
99
+ out("FAIL: pad_left failed")
100
+ return
101
+
102
+ padded = StringUtil.pad_right("hi", 5, "-")
103
+ if padded != "hi---":
104
+ out("FAIL: pad_right failed")
105
+ return
106
+
107
+ out("PASS: test_string_util")
108
+
109
+ func test_file_operations():
110
+ out("=== Test File Operations ===")
111
+
112
+ # 测试文件写入和读取
113
+ var f: file.File = file.File.open("/tmp/test_vx.txt", "w")
114
+ if f.is_open() == false:
115
+ out("FAIL: file should be open for writing")
116
+ return
117
+
118
+ f.write_all("Hello from VX!")
119
+ f.close()
120
+
121
+ # 验证文件存在
122
+ if file.exists("/tmp/test_vx.txt") == false:
123
+ out("FAIL: file should exist after write")
124
+ return
125
+
126
+ # 读取文件内容
127
+ f = file.File.open("/tmp/test_vx.txt", "r")
128
+ var result: Result = f.read_all()
129
+
130
+ if result.is_ok == false:
131
+ out("FAIL: read_all should succeed")
132
+ return
133
+
134
+ if result.value != "Hello from VX!":
135
+ out("FAIL: content mismatch: " + result.value)
136
+ return
137
+
138
+ f.close()
139
+
140
+ # 清理测试文件
141
+ file.remove("/tmp/test_vx.txt")
142
+
143
+ out("PASS: test_file_operations")
144
+
145
+ func test_error_handling():
146
+ out("=== Test Error Handling ===")
147
+
148
+ # 测试错误创建
149
+ var err: error.VXError = error.io_error("test error")
150
+
151
+ if err.message() != "test error":
152
+ out("FAIL: error message should match")
153
+ return
154
+
155
+ # 测试 Result 类型
156
+ var success: Result = Result.ok(42)
157
+ var failure: Result = Result.err(error.runtime_error("something went wrong"))
158
+
159
+ if success.is_ok == false:
160
+ out("FAIL: ok result should have is_ok=true")
161
+ return
162
+
163
+ if success.value != 42:
164
+ out("FAIL: value should be 42")
165
+ return
166
+
167
+ if failure.is_ok:
168
+ out("FAIL: err result should have is_ok=false")
169
+ return
170
+
171
+ if failure.error.message() != "something went wrong":
172
+ out("FAIL: error message should match")
173
+ return
174
+
175
+ # 测试 unwrap 和 expect
176
+ var val: int = success.unwrap()
177
+ if val != 42:
178
+ out("FAIL: unwrap should return value")
179
+ return
180
+
181
+ # 测试 or_else
182
+ var fallback: int = failure.or_else(0)
183
+ if fallback != 0:
184
+ out("FAIL: or_else should return default")
185
+ return
186
+
187
+ out("PASS: test_error_handling")
188
+
189
+ func run_all_tests():
190
+ out("\n🧪 Running String & I/O Tests\n")
191
+ out("=" * 50 + "\n")
192
+
193
+ test_string_basic()
194
+ test_string_util()
195
+ test_file_operations()
196
+ test_error_handling()
197
+
198
+ out("\n" + "=" * 50)
199
+ out("✅ All string & I/O tests completed!\n")
200
+
201
+ func main():
202
+ run_all_tests()
vx_toolkit/_bin/vfmt ADDED
Binary file
vx_toolkit/_bin/vlnk ADDED
Binary file
vx_toolkit/_bin/vmake ADDED
Binary file
Binary file
vx_toolkit/_bin/vx ADDED
Binary file
vx_toolkit/_bin/vxc ADDED
Binary file
vx_toolkit/_bin/vxls ADDED
Binary file
@@ -0,0 +1,121 @@
1
+ """vx_toolkit._dispatch —— uv 安装入口:定位真实工具链二进制并 exec。
2
+
3
+ `uv tool install` 只能装 Python 代码,C++ 工具链本体需要由
4
+ `python/scripts/stage.py` 预置到包内 `_bin/`(随 wheel 分发),
5
+ 或通过环境变量 / PATH 指向已有安装。
6
+
7
+ 二进制查找顺序:
8
+ 1. VX_TOOLKIT_BIN —— 显式指定的工具目录(优先,便于指向自定义构建)
9
+ 2. 包内 _bin/ —— stage.py 复制的工具链(wheel 自带)
10
+ 3. PATH —— 系统里已安装的同一套工具
11
+
12
+ vxc / vxls / vx 默认从「可执行文件同目录的 headers/」解析 @imp / @cppimp 库,
13
+ 因此 stage.py 会把 headers/ 复制到 _bin/headers;`-I` 追加搜索目录,
14
+ `VX_HEADERS_DIR` 覆盖库根(`VX_HEADERS` 为兼容别名),二者仍可用。
15
+ """
16
+
17
+ from __future__ import annotations
18
+
19
+ import os
20
+ import sys
21
+ from pathlib import Path
22
+
23
+ # uv 注册的 console script 名称,同时也是二进制文件名
24
+ COMMANDS = ("vxc", "vlnk", "vmake", "vxls", "vmake-lsp", "vfmt", "vx")
25
+
26
+ # 包内自带的工具链目录(stage.py 产出)
27
+ PACKAGE_BIN = Path(__file__).resolve().parent / "_bin"
28
+
29
+
30
+ def _is_executable(path: Path) -> bool:
31
+ # Windows 上 os.access(X_OK) 对普通文件恒为真,需额外判断后缀
32
+ return path.is_file() and os.access(str(path), os.X_OK)
33
+
34
+
35
+ def _search_dirs():
36
+ """按优先级产出候选二进制目录。"""
37
+ env_dir = os.environ.get("VX_TOOLKIT_BIN", "").strip()
38
+ if env_dir:
39
+ yield Path(env_dir)
40
+ yield PACKAGE_BIN
41
+ for part in os.environ.get("PATH", "").split(os.pathsep):
42
+ if part:
43
+ yield Path(part)
44
+
45
+
46
+ def find_tool(name: str):
47
+ """在候选目录中查找工具二进制,返回路径或 None。"""
48
+ suffix = ".exe" if os.name == "nt" else ""
49
+ for directory in _search_dirs():
50
+ candidate = directory / (name + suffix)
51
+ if _is_executable(candidate):
52
+ return candidate
53
+ return None
54
+
55
+
56
+ def _invoked_name() -> str:
57
+ """从 argv[0] 取命令名(uv 生成的脚本以命令名命名)。"""
58
+ name = Path(sys.argv[0]).name
59
+ if name.lower().endswith(".exe"):
60
+ name = name[: -len(".exe")]
61
+ return name
62
+
63
+
64
+ def _prepend_lib_path(exe: Path) -> None:
65
+ """把二进制同目录加入动态库搜索路径。
66
+
67
+ libvxtidy 等动态库随 _bin/ 分发,构建期 rpath 在安装后失效;
68
+ 补 DYLD_LIBRARY_PATH(macOS)/ LD_LIBRARY_PATH(Linux)保证加载。
69
+ """
70
+ exe_dir = exe.parent
71
+ has_shared = any(exe_dir.glob("*.dylib")) or any(exe_dir.glob("*.so"))
72
+ if not has_shared:
73
+ return
74
+ for var in ("DYLD_LIBRARY_PATH", "LD_LIBRARY_PATH"):
75
+ current = os.environ.get(var, "")
76
+ parts = [str(exe_dir)] + [p for p in current.split(os.pathsep) if p]
77
+ os.environ[var] = os.pathsep.join(parts)
78
+
79
+
80
+ def _missing_help(name: str) -> str:
81
+ return (
82
+ f"error: 未找到 VX 工具链中的 '{name}'。\n"
83
+ f" 已搜索: VX_TOOLKIT_BIN、{PACKAGE_BIN}、PATH\n"
84
+ f"修复方式(任选其一):\n"
85
+ f" 1) 从源码构建并装入本包: python3 python/scripts/stage.py -B build\n"
86
+ f" 2) 指向已有安装目录: export VX_TOOLKIT_BIN=/path/to/bin\n"
87
+ f" 3) 把工具目录加入 PATH\n"
88
+ )
89
+
90
+
91
+ def main() -> int:
92
+ args = sys.argv[1:]
93
+ name = _invoked_name()
94
+ if name not in COMMANDS:
95
+ # 以 `python -m` 或其他方式调用时,允许首个参数指定命令
96
+ if args and args[0] in COMMANDS:
97
+ name, args = args[0], args[1:]
98
+ else:
99
+ sys.stderr.write(
100
+ "error: 无法确定要调用的命令\n"
101
+ " 可用命令: " + ", ".join(COMMANDS) + "\n"
102
+ )
103
+ return 2
104
+
105
+ exe = find_tool(name)
106
+ if exe is None:
107
+ sys.stderr.write(_missing_help(name))
108
+ return 127
109
+
110
+ _prepend_lib_path(exe)
111
+
112
+ if os.name == "nt":
113
+ # Windows 没有 POSIX execv 语义,用子进程转发退出码
114
+ import subprocess
115
+
116
+ return subprocess.call([str(exe)] + args)
117
+
118
+ os.execv(str(exe), [str(exe)] + args)
119
+ # execv 成功时不会返回
120
+ sys.stderr.write(f"error: 无法执行 {exe}\n")
121
+ return 127
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.5
2
+ Name: vx-toolkit
3
+ Version: 1.16.2
4
+ Summary: VX language toolchain (vxc, vlnk, vmake, vxls) installed through uv
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ Keywords: build,compiler,lsp,toolchain,vx
8
+ Classifier: Environment :: Console
9
+ Classifier: License :: OSI Approved :: Apache Software License
10
+ Classifier: Programming Language :: C++
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Topic :: Software Development :: Compilers
13
+ Requires-Python: >=3.9
@@ -0,0 +1,77 @@
1
+ vx_toolkit/__init__.py,sha256=1bRS7I_XznKNcNR_nST-S6UWQfzZ6zDpZr4dzll2swk,343
2
+ vx_toolkit/_dispatch.py,sha256=06gXLRViQnw2y2mQXtM8spHPgvwzSwIv398sktJZreQ,4232
3
+ vx_toolkit/_bin/libvxrt.a,sha256=Ft2iSgSimv32KK9C53IFEzW-6G0QeHF_zwBfkY4yNF0,16592
4
+ vx_toolkit/_bin/libvxtidy.dylib,sha256=Z0TCZ6EKjLO4agBHfnsKyvxXgETevWF8rh4qEQ_rjC0,159104
5
+ vx_toolkit/_bin/vfmt,sha256=Kh5BdF6M1HTd03z-1PYh-mCm37kY8zodEshRIMiINfA,159720
6
+ vx_toolkit/_bin/vlnk,sha256=L4OAkcfCE7UoxHlzV09KHzVy1-0Toi8IpE3GJ9PjZTY,247944
7
+ vx_toolkit/_bin/vmake,sha256=_iH4imenGL38XN08MnADRy52PvfSAYFrYHsjlTrpWVw,265432
8
+ vx_toolkit/_bin/vmake-lsp,sha256=uAPMRWO_itFfdAimmZu1-HFkPH6Se9i7hE3ryWtnBec,229352
9
+ vx_toolkit/_bin/vx,sha256=z6vzxGJgDHhPPCmBGL0Jc85qo6xd_DGbIoURGaGr4s4,65056
10
+ vx_toolkit/_bin/vxc,sha256=QXJ5VcbSuBK1FqcASol1ABOsDo3DbnHR4EB4tpRzWmU,321552
11
+ vx_toolkit/_bin/vxls,sha256=vJyI6XYfAkbrARhApyrY1RO2GOC-rBXUkc0S3dV1uC4,519144
12
+ vx_toolkit/_bin/headers/fmath.c,sha256=eoiZ6GgipxfpA39elLvw82Yzx0Uc_Vvu7n-D2CS5m38,186
13
+ vx_toolkit/_bin/headers/fmath.vxh,sha256=ThdxOmmcqKSz5iH5vQ65sv3xhjwB_OrRCI-WvLkp2yE,296
14
+ vx_toolkit/_bin/headers/math.c,sha256=t1w9vHO0Sef8ZATVBS5e0EZJ0NpyAUr65i282NvvIw8,293
15
+ vx_toolkit/_bin/headers/math.vxh,sha256=_IvrkFoZTKDvX6176r4fltXjnVse7e3oJ_NtUWqlYBE,204
16
+ vx_toolkit/_bin/headers/sys.c,sha256=iyEGXgXVmAtOsm8sT_GUldNqSaaifKoktwkrmuSVmw0,269
17
+ vx_toolkit/_bin/headers/sys.vxh,sha256=Jo4-jmjKcTlPwCgDCOBhoNwYiP1GBdNv0N6DIhfaP3Q,162
18
+ vx_toolkit/_bin/headers/text.c,sha256=gukGc7PRMrYjAhwPxfX7RuE_r3h_nrY-h50Rx_70im4,518
19
+ vx_toolkit/_bin/headers/text.vxh,sha256=PNwp3rPzmugXLdHTihelblLCSeIm5RFU0k1yOqQCcm8,322
20
+ vx_toolkit/_bin/headers/collections/vec.c,sha256=jFMea2yFuTkI9YiCzAjY2I-hrNIa_OT8tNiVAWekQxo,192
21
+ vx_toolkit/_bin/headers/collections/vec.vxh,sha256=a_s1tgomcS32_g5ZEN_m9Vd1QXg3VScgKhiMOz75vm8,133
22
+ vx_toolkit/_bin/headers/cpp/greet.cpp,sha256=SuEk0ENWslwjx_gcK2_sdl4-Z1qAiNJJM4cdOQLYeGw,364
23
+ vx_toolkit/_bin/headers/cpp/greet.hpp,sha256=nNjiYlIGE3jur8ZaKtq-j59VjHWpXtkGnomBk3V7m64,286
24
+ vx_toolkit/_bin/headers/cpp/greet.vxh,sha256=EtOBZ2MufH46-jVjKc2-IfpdgBEDXhvJKPWzsYAZLaE,254
25
+ vx_toolkit/_bin/std/README.md,sha256=E2QoqKLfiCT5BDJcadiz57z1H35IpzywHf8vPK7b05U,4090
26
+ vx_toolkit/_bin/std/bytes.vx,sha256=m9kKJlI7fNi1UmjfjIhvwO2sTm8Sd8K3dAeDak0wyM4,1862
27
+ vx_toolkit/_bin/std/char.vx,sha256=JAG1szvkxDN-T8IdBpueVNX-o9s9ExezCbFpMkDBIRw,2625
28
+ vx_toolkit/_bin/std/conv.vx,sha256=ViBAcokf9b-x4x-Py8P3ekmTb7KCz3t8svJYleKwuhY,1641
29
+ vx_toolkit/_bin/std/error.vx,sha256=FyT1gaZmrtMUnYZvISZWZxXHnSAp-fWm2Ysq6VGAwSk,4716
30
+ vx_toolkit/_bin/std/io.vx,sha256=SAU_GrJMdPugIMxfcN6mKFVrk33i2czZ20goZNjLlmU,172
31
+ vx_toolkit/_bin/std/iter.vx,sha256=0icAafTZ74OURmz1jlGHsqbMVMt-Nio6nA0rJV37CHk,1819
32
+ vx_toolkit/_bin/std/macros.vx,sha256=c9lFji3StveQQ1YOu5EH2wPyXJyrok2Q8hNq5WMoJFE,2971
33
+ vx_toolkit/_bin/std/mod.vx,sha256=OYG62FGws7hdUT57GTvViY3nL6FKc5jXXntArKahL1U,84
34
+ vx_toolkit/_bin/std/option.vx,sha256=XhbAIKmDwLOlA9knUxXm93Dlwyw3pFN1bCzUgpxC_3A,1618
35
+ vx_toolkit/_bin/std/prelude.vx,sha256=wsgnm7g2f6oxpJ6HC4SDcgYpMjFNHt-QjWIYF6deiag,365
36
+ vx_toolkit/_bin/std/sys.vx,sha256=3KSGAAmxps2JsUeb-vSmCwpGCn0DUQuVzNTz_AY9WiU,187
37
+ vx_toolkit/_bin/std/collections/hashmap.vx,sha256=E0LhUnxUUFhPRAnp6B75XrZ9Ad8h-8mq0_pIcZVZ3_Q,732
38
+ vx_toolkit/_bin/std/collections/linked_list.vx,sha256=f1P6f-r6Rsa9qzAy2829cIrawlV5rvLdJhzOnYiYKJM,4410
39
+ vx_toolkit/_bin/std/collections/mod.vx,sha256=X_vREOZxOiIo3pgeXmbOfCBt0-lOVrivsv3azqupxGI,286
40
+ vx_toolkit/_bin/std/collections/set.vx,sha256=_fs8GKzPejYGq0rsUXipBTMp1x-Ej8XSYXgwt1xvQbs,2880
41
+ vx_toolkit/_bin/std/collections/vec.vx,sha256=o8L9MFbbgeQ8lwpB4DiXxqOsczSCwktgnYXFZ2ABP2w,947
42
+ vx_toolkit/_bin/std/io/dir.vx,sha256=XfJqwKQ-rti8rOKiCuR7pL5Gr2R_LyyvacrQy8-jvxc,1619
43
+ vx_toolkit/_bin/std/io/file.vx,sha256=o_zIXMspVdE2sd2BZ5k0hN_tqeHfs5c971Ra9PTOLVI,4795
44
+ vx_toolkit/_bin/std/io/mod.vx,sha256=0AVyTmNllLAhBZIqOScVulblP3DM3Oczpprwx2n7S-A,168
45
+ vx_toolkit/_bin/std/io/path.vx,sha256=bfiZThtF_qZaonh56A0Uqv7Z0JPfc5H-zFhMBOKwYvE,3322
46
+ vx_toolkit/_bin/std/io/stream.vx,sha256=b_quTqRyoj6EYZiZt2_5VEjbcILXEm0ELCVDEKFZWYc,2239
47
+ vx_toolkit/_bin/std/math/math.vx,sha256=USJwK7a86Br-xqVfmrpMaoL-aesxG43CEhZ8WL2IaQk,7009
48
+ vx_toolkit/_bin/std/math/mod.vx,sha256=pYLQ_1dUoQ6gCZLwbgcE559Nt6OA-ZFZBI75o2RPXOg,203
49
+ vx_toolkit/_bin/std/math/random.vx,sha256=NHoJ9qQ_m2UdhR8Ya2017anIo3_VDn72tuDc7v7EPk0,2981
50
+ vx_toolkit/_bin/std/mem/allocator.vx,sha256=O7768NRHjXEGuAahqhct_nuDdT_jN4Ophu2gGDnUC6s,387
51
+ vx_toolkit/_bin/std/mem/arena.vx,sha256=yl6mmE2xL271GKa_m2ulHeDMOCbK2-VXCZxqu3Msoxs,1159
52
+ vx_toolkit/_bin/std/mem/general.vx,sha256=iPZH0AHw7C0YsOOjTh9AWcbhxzwiLhC2Xxa-ymHVwwE,1086
53
+ vx_toolkit/_bin/std/mem/mod.vx,sha256=IE8OCr7vtK5Vwh6ijGBnkZvXhJP_e-mP33tE9JQ0uAA,397
54
+ vx_toolkit/_bin/std/mem/page.vx,sha256=ANJL5rnB1M-fz015-HtvhKa89zGBWrMCAlVk3d2ngts,649
55
+ vx_toolkit/_bin/std/reflect/mod.vx,sha256=515enVsHPVyFPjgf0Tw5HuVfY3YxVbB2b8H4YTIB7w0,3425
56
+ vx_toolkit/_bin/std/string/codec.vx,sha256=JTvz3h92E5QWjTW0YCPyuQJ0Qvw24nQ0YbqR7TXXhBk,4640
57
+ vx_toolkit/_bin/std/string/core.vx,sha256=1W3uAifXX3p3BCDmoTd7sIWnvNSGqv6if9f2dy9Jhtw,739
58
+ vx_toolkit/_bin/std/string/iter.vx,sha256=L9y37OiGdW1db-yY_UGDZyQrxiGDBYjavEGL1bodPtg,1223
59
+ vx_toolkit/_bin/std/string/mod.vx,sha256=VBFXygH1A35Kf5vm48whc4HgGd57IJSr5aaiPz0U5mE,234
60
+ vx_toolkit/_bin/std/string/pattern.vx,sha256=XHCAhRsXbAADhWEGLdbe5FbifaHsHQnWaj7N9W1pNPo,2757
61
+ vx_toolkit/_bin/std/string/util.vx,sha256=KbcIGutr6f6bK9VMMK4hWXSaCehyzX4TtsBB7SlHL3k,10738
62
+ vx_toolkit/_bin/std/sys/coroutine.vx,sha256=99ffrpDoY5O5lg9p5CT7ZThP7Bbb8BpvuSNRiHWuizo,1160
63
+ vx_toolkit/_bin/std/sys/datetime.vx,sha256=97dnMPRpTUO8Zdqm0db_qqCQ9k1I4GnNMj_XYMNWdsA,4645
64
+ vx_toolkit/_bin/std/sys/duration.vx,sha256=IScFlD0m_yjJMmWQT-b9fGnLkuEMjJWgsC39myW5_TE,1424
65
+ vx_toolkit/_bin/std/sys/env.vx,sha256=lecxiF9f_xJ1xPIkMXZ6mgjvYvO9bhRmYZHsTios6DU,1239
66
+ vx_toolkit/_bin/std/sys/mod.vx,sha256=hM4x4kRl6LGQ4GgKH7QqtsqJ7hLzO2faOcXnr4XHgJo,290
67
+ vx_toolkit/_bin/std/sys/sync.vx,sha256=DmZ1h8hrAK3gO7NeNXc2pHkzPWnVYTkAduKeQCJ6dCY,3146
68
+ vx_toolkit/_bin/std/sys/time.vx,sha256=NZ73-kbs59VJpQinvPktLGl03_lM110YOc81hUHbym0,848
69
+ vx_toolkit/_bin/std/tests/run_all.vx,sha256=tT25omvKL-DkwivlTPWH0eBBbBmKTez6C4edRjLKR3c,20557
70
+ vx_toolkit/_bin/std/tests/smoke.vx,sha256=btTrQhyNpoGdkVJJKt7YRSZovmmne78fTymKtZQNFOE,137
71
+ vx_toolkit/_bin/std/tests/test_collections.vx,sha256=y56OUZXWwfwngqEiOvutGM6-Nl_js_THFQHcRuC7Cds,1061
72
+ vx_toolkit/_bin/std/tests/test_string_io.vx,sha256=Jx2tjAEYLLJlfRjn3DolgbIwg1_mC3x19vZF9edFhEI,5194
73
+ vx_toolkit-1.16.2.dist-info/METADATA,sha256=QOCa4xFEH1EvduHGrvy7LqIXHm2R-FHrIuVbXf5SZ48,491
74
+ vx_toolkit-1.16.2.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
75
+ vx_toolkit-1.16.2.dist-info/entry_points.txt,sha256=mllVR5w6ak7RWVSURLekY2V00yd01ytSrmE0xX4n8LQ,252
76
+ vx_toolkit-1.16.2.dist-info/licenses/LICENSE,sha256=Ig-2n4HS8fYD1qXPPAPZI36hysJ_s0W2bo4xeDNDV-c,10923
77
+ vx_toolkit-1.16.2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,8 @@
1
+ [console_scripts]
2
+ vfmt = vx_toolkit._dispatch:main
3
+ vlnk = vx_toolkit._dispatch:main
4
+ vmake = vx_toolkit._dispatch:main
5
+ vmake-lsp = vx_toolkit._dispatch:main
6
+ vx = vx_toolkit._dispatch:main
7
+ vxc = vx_toolkit._dispatch:main
8
+ vxls = vx_toolkit._dispatch:main
@@ -0,0 +1,198 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or
41
+ Object form, that is based on (or derived from) the Work and for
42
+ which the editorial revisions, annotations, elaborations, or other
43
+ modifications represent, as a whole, an original work of authorship.
44
+ For the purposes of this License, Derivative Works shall not include
45
+ works that remain separable from, or merely link (or bind by name)
46
+ to the interfaces of, the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright
52
+ owner or by an individual or Legal Entity authorized to submit on
53
+ behalf of the copyright owner. For the purposes of this definition,
54
+ "submitted" means any form of electronic, verbal, or written
55
+ communication sent to the Licensor or its representatives, including
56
+ but not limited to communication on electronic mailing lists, source
57
+ code control systems, and issue tracking systems that are managed by,
58
+ or on behalf of, the Licensor for the purpose of discussing and
59
+ improving the Work, but excluding communication that is
60
+ conspicuously marked or otherwise designated in writing by the
61
+ copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal
64
+ Entity on behalf of whom a Contribution has been received by
65
+ Licensor and subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ modify, merge, publish, distribute, sublicense, and/or sell copies
72
+ of the Work, and to permit persons to whom the Work is furnished
73
+ to do so, subject to the following conditions:
74
+
75
+ The above copyright notice and this permission notice shall be
76
+ included in all copies or substantial portions of the Work.
77
+
78
+ 3. Grant of Patent License. Subject to the terms and conditions of
79
+ this License, each Contributor hereby grants to You a perpetual,
80
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
81
+ (except as stated in this section) patent license to make, have
82
+ made, use, offer to sell, sell, import, and otherwise transfer
83
+ the Work, where such license applies only to those patent claims
84
+ licensable by such Contributor that are necessarily infringed by
85
+ their Contribution(s) alone or by combination of their
86
+ Contribution(s) with the Work to which such Contribution(s) was
87
+ submitted. If You institute patent litigation against any entity
88
+ (including a cross-claim or counterclaim in a lawsuit) alleging
89
+ that the Work or a Contribution incorporated within the Work
90
+ constitutes direct or indirect patent infringement, then any
91
+ patent licenses granted to You under this License for that Work
92
+ shall terminate as of the date such litigation is filed.
93
+
94
+ 4. Redistribution. You may reproduce and distribute copies of the
95
+ Work or Derivative Works thereof in any medium, with or without
96
+ modifications, and in Source or Object form, provided that You
97
+ meet the following conditions:
98
+
99
+ (a) You must give any other recipients of the Work or
100
+ Derivative Works a copy of this License; and
101
+
102
+ (b) You must cause any modified files to carry prominent notices
103
+ stating that You changed the files; and
104
+
105
+ (c) You must retain, in the Source form of any Derivative Works
106
+ that You distribute, all copyright, patent, trademark, and
107
+ attribution notices from the Source form of the Work,
108
+ excluding those notices that do not pertain to any part of
109
+ the Derivative Works; and
110
+
111
+ (d) If the Work includes a "NOTICE" text file as part of its
112
+ distribution, then any Derivative Works that You distribute
113
+ must include a readable copy of the attribution notices
114
+ contained within such NOTICE file, excluding those notices
115
+ that do not pertain to any part of the Derivative Works,
116
+ in at least one of the following places: within a NOTICE text
117
+ file distributed as part of the Derivative Works; within
118
+ the Source form or documentation, if provided along with the
119
+ Derivative Works; or, within a display generated by the
120
+ Derivative Works, if and wherever such third-party notices
121
+ normally appear. The contents of the NOTICE file are for
122
+ informational purposes only and do not modify the License.
123
+ You may add Your own attribution notices within Derivative
124
+ Works that You distribute, alongside or as an addendum to
125
+ the NOTICE text file from the Work, provided that such
126
+ additional attribution notices cannot be construed as
127
+ modifying the License.
128
+
129
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
130
+ any Contribution intentionally submitted for inclusion in the Work
131
+ by You to the Licensor shall be under the terms and conditions of
132
+ this License, without any additional terms or conditions.
133
+ Notwithstanding the above, nothing herein shall supersede or modify
134
+ the terms of any separate license agreement you may have executed
135
+ with Licensor regarding such Contributions.
136
+
137
+ 6. Trademarks. This License does not grant permission to use the trade
138
+ names, trademarks, service marks, or product names of the Licensor,
139
+ except as required for reasonable and customary use in describing
140
+ the origin of the Work and reproducing the content of the NOTICE
141
+ file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or
148
+ conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or
149
+ FITNESS FOR A PARTICULAR PURPOSE. You are hereby notified that
150
+ you may be exposing yourself and others to risks by using the Work,
151
+ and that the recommended and prudent course of action is to
152
+ analyze all aspects of the Work and test it in a controlled
153
+ environment before putting it into production. You assume all
154
+ risks and responsibilities associated with the use of the Work.
155
+
156
+ 8. Limitation of Liability. In no event and under no legal theory,
157
+ whether in tort (including negligence), contract, or otherwise,
158
+ unless required by applicable law (such as deliberate and grossly
159
+ negligent acts) or agreed to in writing, shall any Contributor be
160
+ liable to you for damages, including any direct, indirect, special,
161
+ incidental, or consequential damages of any kind, arising as a
162
+ result of this License or out of the use or inability to use the
163
+ Work (including but not limited to damages for loss of goodwill,
164
+ work stoppage, computer failure or malfunction, or any and all
165
+ other commercial damages or losses), even if such Contributor
166
+ has been advised of the possibility of such damages.
167
+
168
+ 9. Accepting Warranty or Additional Support, Services, Maintenance,
169
+ or Insurance. Licensor may choose to provide additional support,
170
+ services, maintenance, or insurance beyond the terms of this
171
+ License, but is not obligated to do so.
172
+
173
+ END OF TERMS AND CONDITIONS
174
+
175
+ APPENDIX: How to apply the Apache License to your work.
176
+
177
+ To apply the Apache License to your work, attach the following
178
+ boilerplate notice, with the fields enclosed by brackets "[]"
179
+ replaced with your own identifying information. (Don't include
180
+ the brackets!) The text should be at least be included in the
181
+ appropriate "NOTICE" file; however, each source file may include
182
+ them on the first line, or as a separate "NOTICE" section within
183
+ the file's documentation. See the NOTICE file for additional
184
+ details (if applicable).
185
+
186
+ Copyright [yyyy] [name of copyright owner]
187
+
188
+ Licensed under the Apache License, Version 2.0 (the "License");
189
+ you may not use this file except in compliance with the License.
190
+ You may obtain a copy of the License at
191
+
192
+ http://www.apache.org/licenses/LICENSE-2.0
193
+
194
+ Unless required by applicable law or agreed to in writing, software
195
+ distributed under the License is distributed on an "AS IS" BASIS,
196
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
197
+ implied. See the License for the specific language governing
198
+ permissions and limitations under the License.