obstruct 0.2.7__tar.gz → 0.2.9__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 (28) hide show
  1. {obstruct-0.2.7 → obstruct-0.2.9}/.idea/workspace.xml +67 -25
  2. {obstruct-0.2.7 → obstruct-0.2.9}/PKG-INFO +1 -1
  3. obstruct-0.2.9/src/obstruct/__version__.py +1 -0
  4. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/aot/unpack.py +5 -5
  5. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/struct_type.py +1 -1
  6. {obstruct-0.2.7 → obstruct-0.2.9}/test/test_speed.py +0 -2
  7. obstruct-0.2.7/src/obstruct/__version__.py +0 -1
  8. {obstruct-0.2.7 → obstruct-0.2.9}/.idea/.gitignore +0 -0
  9. {obstruct-0.2.7 → obstruct-0.2.9}/.idea/inspectionProfiles/Project_Default.xml +0 -0
  10. {obstruct-0.2.7 → obstruct-0.2.9}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
  11. {obstruct-0.2.7 → obstruct-0.2.9}/.idea/misc.xml +0 -0
  12. {obstruct-0.2.7 → obstruct-0.2.9}/.idea/modules.xml +0 -0
  13. {obstruct-0.2.7 → obstruct-0.2.9}/.idea/obstruct.iml +0 -0
  14. {obstruct-0.2.7 → obstruct-0.2.9}/.idea/vcs.xml +0 -0
  15. {obstruct-0.2.7 → obstruct-0.2.9}/README.md +0 -0
  16. {obstruct-0.2.7 → obstruct-0.2.9}/pyproject.toml +0 -0
  17. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/__init__.py +0 -0
  18. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/aot/__init__.py +0 -0
  19. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/aot/aot.py +0 -0
  20. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/aot/base.py +0 -0
  21. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/aot/pack.py +0 -0
  22. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/methods.py +0 -0
  23. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/types/__init__.py +0 -0
  24. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/types/base.py +0 -0
  25. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/types/types.py +0 -0
  26. {obstruct-0.2.7 → obstruct-0.2.9}/src/obstruct/types/types.pyi +0 -0
  27. {obstruct-0.2.7 → obstruct-0.2.9}/test/test.py +0 -0
  28. {obstruct-0.2.7 → obstruct-0.2.9}/uv.lock +0 -0
@@ -4,10 +4,7 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="b482b6b4-48ce-4be1-bf3c-a72ec254fa35" name="更改" comment="增强 array 类型的支持 x2">
8
- <change beforePath="$PROJECT_DIR$/src/obstruct/__version__.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/obstruct/__version__.py" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/src/obstruct/struct_type.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/obstruct/struct_type.py" afterDir="false" />
10
- </list>
7
+ <list default="true" id="b482b6b4-48ce-4be1-bf3c-a72ec254fa35" name="更改" comment="chore: 移除 test_speed.py 中的调试逻辑" />
11
8
  <option name="SHOW_DIALOG" value="false" />
12
9
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
13
10
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -44,26 +41,26 @@
44
41
  <option name="hideEmptyMiddlePackages" value="true" />
45
42
  <option name="showLibraryContents" value="true" />
46
43
  </component>
47
- <component name="PropertiesComponent"><![CDATA[{
48
- "keyToString": {
49
- "ModuleVcsDetector.initialDetectionPerformed": "true",
50
- "Python.test.executor": "Run",
51
- "Python.test_speed.executor": "Run",
52
- "RunOnceActivity.ShowReadmeOnStart": "true",
53
- "RunOnceActivity.git.unshallow": "true",
54
- "RunOnceActivity.typescript.service.memoryLimit.init": "true",
55
- "codeWithMe.voiceChat.enabledByDefault": "false",
56
- "git-widget-placeholder": "main",
57
- "last_opened_file_path": "E:/.projects/obstruct",
58
- "node.js.detected.package.eslint": "true",
59
- "node.js.detected.package.jshint": "true",
60
- "node.js.detected.package.tslint": "true",
61
- "node.js.selected.package.eslint": "(autodetect)",
62
- "node.js.selected.package.jshint": "",
63
- "node.js.selected.package.tslint": "(autodetect)",
64
- "nodejs_package_manager_path": "npm"
44
+ <component name="PropertiesComponent">{
45
+ &quot;keyToString&quot;: {
46
+ &quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;,
47
+ &quot;Python.test.executor&quot;: &quot;Run&quot;,
48
+ &quot;Python.test_speed.executor&quot;: &quot;Run&quot;,
49
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
50
+ &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
51
+ &quot;RunOnceActivity.typescript.service.memoryLimit.init&quot;: &quot;true&quot;,
52
+ &quot;codeWithMe.voiceChat.enabledByDefault&quot;: &quot;false&quot;,
53
+ &quot;git-widget-placeholder&quot;: &quot;main&quot;,
54
+ &quot;last_opened_file_path&quot;: &quot;E:/.projects/obstruct&quot;,
55
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
56
+ &quot;node.js.detected.package.jshint&quot;: &quot;true&quot;,
57
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
58
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
59
+ &quot;node.js.selected.package.jshint&quot;: &quot;&quot;,
60
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
61
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;
65
62
  }
66
- }]]></component>
63
+ }</component>
67
64
  <component name="RunManager" selected="Python.test_speed">
68
65
  <configuration name="test" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
69
66
  <module name="obstruct" />
@@ -183,7 +180,47 @@
183
180
  <option name="project" value="LOCAL" />
184
181
  <updated>1786883898686</updated>
185
182
  </task>
186
- <option name="localTasksCounter" value="7" />
183
+ <task id="LOCAL-00007" summary="修复:不参与初始化方法的属性不应作为结构体的字段">
184
+ <option name="closed" value="true" />
185
+ <created>1786884236136</created>
186
+ <option name="number" value="00007" />
187
+ <option name="presentableId" value="LOCAL-00007" />
188
+ <option name="project" value="LOCAL" />
189
+ <updated>1786884236136</updated>
190
+ </task>
191
+ <task id="LOCAL-00008" summary="功能:添加 `compile_struct` 函数,透明编译过程">
192
+ <option name="closed" value="true" />
193
+ <created>1786884539584</created>
194
+ <option name="number" value="00008" />
195
+ <option name="presentableId" value="LOCAL-00008" />
196
+ <option name="project" value="LOCAL" />
197
+ <updated>1786884539584</updated>
198
+ </task>
199
+ <task id="LOCAL-00009" summary="修复:unpack.py 中没有移除的调试逻辑">
200
+ <option name="closed" value="true" />
201
+ <created>1786884559640</created>
202
+ <option name="number" value="00009" />
203
+ <option name="presentableId" value="LOCAL-00009" />
204
+ <option name="project" value="LOCAL" />
205
+ <updated>1786884559640</updated>
206
+ </task>
207
+ <task id="LOCAL-00010" summary="修复:unpack.py 中没有移除的调试逻辑">
208
+ <option name="closed" value="true" />
209
+ <created>1786884576538</created>
210
+ <option name="number" value="00010" />
211
+ <option name="presentableId" value="LOCAL-00010" />
212
+ <option name="project" value="LOCAL" />
213
+ <updated>1786884576538</updated>
214
+ </task>
215
+ <task id="LOCAL-00011" summary="chore: 移除 test_speed.py 中的调试逻辑">
216
+ <option name="closed" value="true" />
217
+ <created>1786884643125</created>
218
+ <option name="number" value="00011" />
219
+ <option name="presentableId" value="LOCAL-00011" />
220
+ <option name="project" value="LOCAL" />
221
+ <updated>1786884643125</updated>
222
+ </task>
223
+ <option name="localTasksCounter" value="12" />
187
224
  <servers />
188
225
  </component>
189
226
  <component name="TypeScriptGeneratedFilesManager">
@@ -207,6 +244,11 @@
207
244
  <MESSAGE value="修正了一些命名" />
208
245
  <MESSAGE value="增强 array 类型的支持" />
209
246
  <MESSAGE value="增强 array 类型的支持 x2" />
210
- <option name="LAST_COMMIT_MESSAGE" value="增强 array 类型的支持 x2" />
247
+ <MESSAGE value="修复:不参与初始化方法的属性不应作为结构体的字段" />
248
+ <MESSAGE value="功能:添加 `compile_struct` 函数,透明编译过程" />
249
+ <MESSAGE value="修复:unpack.py 中没有移除的调试逻辑" />
250
+ <MESSAGE value="修复:unpack.py 中没有移除的调试逻辑&#10;更新版本号至 0.2.8" />
251
+ <MESSAGE value="chore: 移除 test_speed.py 中的调试逻辑" />
252
+ <option name="LAST_COMMIT_MESSAGE" value="chore: 移除 test_speed.py 中的调试逻辑" />
211
253
  </component>
212
254
  </project>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: obstruct
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Author-email: LittleNightSong <LittleNightSongYO@outlook.com>
5
5
  Classifier: Development Status :: 3 - Alpha
6
6
  Classifier: Programming Language :: Python
@@ -0,0 +1 @@
1
+ version = "0.2.9"
@@ -157,11 +157,11 @@ def create_unpack_methods(cls: type[struct_type.Struct]):
157
157
  iter_update_inner.add_code(f'{n}.clear()')
158
158
 
159
159
  # print(unpack.generate_code())
160
- print(update.generate_code())
161
- print(unpack_from.generate_code())
162
- print(update_from.generate_code())
163
- print(iter_unpack.generate_code())
164
- print(iter_update.generate_code())
160
+ # print(update.generate_code())
161
+ # print(unpack_from.generate_code())
162
+ # print(update_from.generate_code())
163
+ # print(iter_unpack.generate_code())
164
+ # print(iter_update.generate_code())
165
165
 
166
166
  globals = {
167
167
  v: k for k, v in inner_classes.items() # 翻转字典
@@ -44,7 +44,7 @@ class StructMeta(type):
44
44
  format=annotationlib.Format.STRING
45
45
  )
46
46
 
47
- slots |= {k for k in annotations.keys() if not k.startswith('_')}
47
+ slots |= {k for k in annotations.keys()}
48
48
 
49
49
  attrs['__slots__'] = slots
50
50
  attrs['__cendian__'] = endian
@@ -36,8 +36,6 @@ print('MyStruct size', MyStruct.__cstruct__.size)
36
36
  print('AnotherStruct size', AnotherStruct.__cstruct__.size)
37
37
 
38
38
 
39
- exit()
40
-
41
39
  data = MyStruct(
42
40
  1,2,1.0,4,5,6,7,8,9,b'8',1,2
43
41
  )
@@ -1 +0,0 @@
1
- version = "0.2.7"
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