obstruct 0.2.6__tar.gz → 0.2.8__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.6 → obstruct-0.2.8}/PKG-INFO +1 -1
  2. obstruct-0.2.8/src/obstruct/__version__.py +1 -0
  3. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/aot/unpack.py +5 -5
  4. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/methods.py +4 -0
  5. obstruct-0.2.6/src/obstruct/__version__.py +0 -1
  6. {obstruct-0.2.6 → obstruct-0.2.8}/.idea/.gitignore +0 -0
  7. {obstruct-0.2.6 → obstruct-0.2.8}/.idea/inspectionProfiles/Project_Default.xml +0 -0
  8. {obstruct-0.2.6 → obstruct-0.2.8}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
  9. {obstruct-0.2.6 → obstruct-0.2.8}/.idea/misc.xml +0 -0
  10. {obstruct-0.2.6 → obstruct-0.2.8}/.idea/modules.xml +0 -0
  11. {obstruct-0.2.6 → obstruct-0.2.8}/.idea/obstruct.iml +0 -0
  12. {obstruct-0.2.6 → obstruct-0.2.8}/.idea/vcs.xml +0 -0
  13. {obstruct-0.2.6 → obstruct-0.2.8}/.idea/workspace.xml +0 -0
  14. {obstruct-0.2.6 → obstruct-0.2.8}/README.md +0 -0
  15. {obstruct-0.2.6 → obstruct-0.2.8}/pyproject.toml +0 -0
  16. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/__init__.py +0 -0
  17. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/aot/__init__.py +0 -0
  18. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/aot/aot.py +0 -0
  19. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/aot/base.py +0 -0
  20. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/aot/pack.py +0 -0
  21. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/struct_type.py +0 -0
  22. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/types/__init__.py +0 -0
  23. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/types/base.py +0 -0
  24. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/types/types.py +0 -0
  25. {obstruct-0.2.6 → obstruct-0.2.8}/src/obstruct/types/types.pyi +0 -0
  26. {obstruct-0.2.6 → obstruct-0.2.8}/test/test.py +0 -0
  27. {obstruct-0.2.6 → obstruct-0.2.8}/test/test_speed.py +0 -0
  28. {obstruct-0.2.6 → obstruct-0.2.8}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: obstruct
3
- Version: 0.2.6
3
+ Version: 0.2.8
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.8"
@@ -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() # 翻转字典
@@ -45,3 +45,7 @@ def pack(format: CTypesFields, *data: Any) -> bytes:
45
45
 
46
46
  def unpack(format: CTypesFields, data: Buffer):
47
47
  return struct.unpack(to_format_string(format), data)
48
+
49
+
50
+ def compile_struct(struct):
51
+ struct.__compile_struct__()
@@ -1 +0,0 @@
1
- version = "0.2.6"
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