pypmxvmd 2.6.1__tar.gz → 2.7.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.
Files changed (61) hide show
  1. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/PKG-INFO +32 -23
  2. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/README.md +300 -291
  3. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/__init__.py +1 -1
  4. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/__init__.py +1 -1
  5. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/io/_fast_binary.c +1529 -3170
  6. pypmxvmd-2.7.1/pypmxvmd/common/io/_fast_binary.cp311-win_amd64.pyd +0 -0
  7. pypmxvmd-2.7.1/pypmxvmd/common/io/_fast_binary.pyx +370 -0
  8. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/_fast_pmx.c +2449 -2167
  9. pypmxvmd-2.7.1/pypmxvmd/common/parsers/_fast_pmx.cp311-win_amd64.pyd +0 -0
  10. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/_fast_pmx.pyx +217 -145
  11. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/_fast_vmd.c +1454 -1208
  12. pypmxvmd-2.7.1/pypmxvmd/common/parsers/_fast_vmd.cp311-win_amd64.pyd +0 -0
  13. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/_fast_vmd.pyx +147 -101
  14. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/pmx_parser.py +9 -10
  15. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd.egg-info/PKG-INFO +32 -23
  16. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd.egg-info/SOURCES.txt +0 -1
  17. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pyproject.toml +2 -2
  18. pypmxvmd-2.6.1/pypmxvmd/common/io/_fast_binary.cp311-win_amd64.pyd +0 -0
  19. pypmxvmd-2.6.1/pypmxvmd/common/io/_fast_binary.pyx +0 -264
  20. pypmxvmd-2.6.1/pypmxvmd/common/parsers/_fast_pmx.cp311-win_amd64.pyd +0 -0
  21. pypmxvmd-2.6.1/pypmxvmd/common/parsers/_fast_vmd.cp311-win_amd64.pyd +0 -0
  22. pypmxvmd-2.6.1/pypmxvmd/common/validators/__init__.py +0 -7
  23. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/io/__init__.py +0 -0
  24. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/io/_fast_binary.cp38-win_amd64.pyd +0 -0
  25. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/io/_fast_binary.pyi +0 -0
  26. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/io/binary_io.py +0 -0
  27. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/io/file_utils.py +0 -0
  28. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/io/text_io.py +0 -0
  29. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/models/__init__.py +0 -0
  30. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/models/base.py +0 -0
  31. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/models/pmx.py +0 -0
  32. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/models/vmd.py +0 -0
  33. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/models/vpd.py +0 -0
  34. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/__init__.py +0 -0
  35. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/_fast_pmx.cp38-win_amd64.pyd +0 -0
  36. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/_fast_pmx.pyi +0 -0
  37. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/_fast_vmd.cp38-win_amd64.pyd +0 -0
  38. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/_fast_vmd.pyi +0 -0
  39. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/pmx_parser_nuthouse.py +0 -0
  40. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/vmd_parser.py +0 -0
  41. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/vmd_parser_nuthouse.py +0 -0
  42. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd/common/parsers/vpd_parser.py +0 -0
  43. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd.egg-info/dependency_links.txt +0 -0
  44. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd.egg-info/entry_points.txt +0 -0
  45. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd.egg-info/requires.txt +0 -0
  46. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/pypmxvmd.egg-info/top_level.txt +0 -0
  47. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/setup.cfg +0 -0
  48. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/setup.py +0 -0
  49. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_api_integration.py +0 -0
  50. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_cython_parsers.py +0 -0
  51. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_io_utils.py +0 -0
  52. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_parser_optimization.py +0 -0
  53. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_pmx_comprehensive.py +0 -0
  54. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_pmx_writer.py +0 -0
  55. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_quick_integration.py +0 -0
  56. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_text_processing.py +0 -0
  57. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_vmd_comparison.py +0 -0
  58. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_vmd_comprehensive.py +0 -0
  59. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_vmd_header.py +0 -0
  60. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_vmd_parser.py +0 -0
  61. {pypmxvmd-2.6.1 → pypmxvmd-2.7.1}/tests/test_vpd_parser.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypmxvmd
3
- Version: 2.6.1
3
+ Version: 2.7.1
4
4
  Summary: Wrapper for reading and modifying VMD and PMX files
5
5
  Author-email: PythonImporter <271374667@qq.com>
6
6
  Project-URL: Homepage, https://github.com/pypmxvmd/pypmxvmd
@@ -24,11 +24,15 @@ Requires-Dist: typing-extensions>=4.0.0; python_version < "3.10"
24
24
 
25
25
  # PyPMXVMD
26
26
 
27
+ ![pypmxvmd](https://socialify.git.ci/271374667/pypmxvmd/image?description=1&font=Inter&language=1&name=1&owner=1&theme=Auto)
28
+
29
+ [English API](docs/API.md) | [中文 API](docs/API_CN.md)
30
+
27
31
  Python MikuMikuDance File Parser Library
28
32
 
29
33
  [![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/downloads/)
30
34
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
31
- [![Version](https://img.shields.io/badge/version-2.5.1-orange.svg)](https://github.com/pypmxvmd/pypmxvmd)
35
+ [![Version](https://img.shields.io/badge/version-2.7.1-orange.svg)](https://github.com/pypmxvmd/pypmxvmd)
32
36
 
33
37
  PyPMXVMD is a Python library for parsing and modifying MikuMikuDance (MMD) files, supporting the following formats:
34
38
 
@@ -42,13 +46,16 @@ PyPMXVMD is a Python library for parsing and modifying MikuMikuDance (MMD) files
42
46
  - Conversion between binary and text formats
43
47
  - Object-oriented API design, easy to use
44
48
  - Complete type annotation support
45
- - Optional Cython acceleration for core parsing and binary I/O (average 3.7x faster than the previous path)
49
+ - Optional Cython acceleration for core parsing and binary I/O (VMD/PMX, binary read/write)
46
50
  - No external dependencies (core functionality)
47
51
  - Supports Python 3.8+
48
52
 
49
53
  ## Installation
50
54
 
51
55
  ```bash
56
+ # Install from PyPI
57
+ pip install pypmxvmd
58
+
52
59
  # Install from source
53
60
  git clone https://github.com/pypmxvmd/pypmxvmd.git
54
61
  cd pypmxvmd
@@ -62,7 +69,7 @@ pip install -e ".[dev]"
62
69
 
63
70
  The core parsing path supports Cython-accelerated modules for VMD/PMX and binary I/O.
64
71
  In typical workloads, the Cython implementation is ~3.7x faster on average than the previous implementation.
65
- Prebuilt Cython binaries are only provided for Python 3.11; other Python versions need to compile locally.
72
+ Prebuilt wheels are provided for Windows (cp38-cp313). Other platforms or versions compile locally.
66
73
  If the compiled modules are not available, the library automatically falls back to pure Python.
67
74
 
68
75
  ```bash
@@ -229,26 +236,23 @@ class VpdPose:
229
236
  ## Project Structure
230
237
 
231
238
  ```
232
- pypmxvmd/
233
- ├── pypmxvmd/ # Main package
234
- │ ├── __init__.py # Public API
235
- │ ├── common/ # Common components
236
- │ │ ├── models/ # Data models
237
- │ │ │ ├── vmd.py # VMD data structures
238
- │ │ │ ├── pmx.py # PMX data structures
239
- │ │ │ └── vpd.py # VPD data structures
240
- │ │ └── parsers/ # Parsers
241
- │ │ ├── vmd_parser_nuthouse.py
242
- │ │ ├── pmx_parser_nuthouse.py
243
- │ │ └── vpd_parser.py
244
- │ └── presentation/ # Presentation layer
245
- │ ├── cli/ # Command-line interface
246
- │ └── gui/ # Graphical interface
247
- ├── tests/ # Tests
248
- ├── docs/ # Documentation
249
- └── mmd_scripting/ # Legacy code (reference)
239
+ pypmxvmd/ # Main package
240
+ __init__.py # Public API (load/save helpers)
241
+ common/ # Core implementation
242
+ io/ # Binary/text IO (+ Cython accel)
243
+ models/ # Data models (VMD/PMX/VPD)
244
+ parsers/ # Parsers (+ fast modules)
245
+ validators/ # Validation helpers
246
+ docs/ # Documentation
247
+ API.md # English API
248
+ API_CN.md # 中文 API
249
+ scripts/ # Build helpers
250
+ build_cython.py
251
+ build_wheels.py
252
+ tests/ # Tests + fixtures
250
253
  ```
251
254
 
255
+
252
256
  ## Testing
253
257
 
254
258
  ```bash
@@ -279,7 +283,12 @@ mypy pypmxvmd/
279
283
  flake8 pypmxvmd/
280
284
  ```
281
285
 
282
- ## Version History
286
+ ## Changelog
287
+
288
+ ### v2.7.1
289
+ - Updated core parsers and binary I/O with Cython fast paths
290
+ - Added/expanded Windows wheel builds (cp38-cp313)
291
+ - Improved text format auto-detection and test coverage
283
292
 
284
293
  ### v2.5.1
285
294
  - Added optional Cython acceleration for core parsing and binary I/O