sssekai 0.8.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 (51) hide show
  1. sssekai-0.8.1/LICENSE +21 -0
  2. sssekai-0.8.1/PKG-INFO +86 -0
  3. sssekai-0.8.1/README.md +43 -0
  4. sssekai-0.8.1/pyproject.toml +6 -0
  5. sssekai-0.8.1/setup.cfg +4 -0
  6. sssekai-0.8.1/setup.py +47 -0
  7. sssekai-0.8.1/sssekai/__gui__.py +72 -0
  8. sssekai-0.8.1/sssekai/__init__.py +6 -0
  9. sssekai-0.8.1/sssekai/__main__.py +547 -0
  10. sssekai-0.8.1/sssekai/abcache/__init__.py +771 -0
  11. sssekai-0.8.1/sssekai/abcache/auth.py +30 -0
  12. sssekai-0.8.1/sssekai/abcache/fs.py +275 -0
  13. sssekai-0.8.1/sssekai/crypto/APIManager.py +42 -0
  14. sssekai-0.8.1/sssekai/crypto/AssetBundle.py +26 -0
  15. sssekai-0.8.1/sssekai/crypto/__init__.py +0 -0
  16. sssekai-0.8.1/sssekai/entrypoint/__init__.py +0 -0
  17. sssekai-0.8.1/sssekai/entrypoint/abcache.py +299 -0
  18. sssekai-0.8.1/sssekai/entrypoint/abdecrypt.py +26 -0
  19. sssekai-0.8.1/sssekai/entrypoint/abserve.py +123 -0
  20. sssekai-0.8.1/sssekai/entrypoint/apidecrypt.py +20 -0
  21. sssekai-0.8.1/sssekai/entrypoint/apphash.py +276 -0
  22. sssekai-0.8.1/sssekai/entrypoint/il2cpp.py +45 -0
  23. sssekai-0.8.1/sssekai/entrypoint/il2cppextract.py +52 -0
  24. sssekai-0.8.1/sssekai/entrypoint/live2dextract.py +74 -0
  25. sssekai-0.8.1/sssekai/entrypoint/moc3paths.py +38 -0
  26. sssekai-0.8.1/sssekai/entrypoint/mvdata.py +34 -0
  27. sssekai-0.8.1/sssekai/entrypoint/rla2json.py +79 -0
  28. sssekai-0.8.1/sssekai/entrypoint/spineextract.py +64 -0
  29. sssekai-0.8.1/sssekai/entrypoint/usmdemux.py +29 -0
  30. sssekai-0.8.1/sssekai/fmt/__init__.py +0 -0
  31. sssekai-0.8.1/sssekai/fmt/moc3.py +47 -0
  32. sssekai-0.8.1/sssekai/fmt/motion3.py +92 -0
  33. sssekai-0.8.1/sssekai/fmt/rla.py +516 -0
  34. sssekai-0.8.1/sssekai/generated/Sekai/__init__.py +66 -0
  35. sssekai-0.8.1/sssekai/generated/__init__.py +96 -0
  36. sssekai-0.8.1/sssekai/unity/AnimationClip.py +668 -0
  37. sssekai-0.8.1/sssekai/unity/AssetBundle.py +13 -0
  38. sssekai-0.8.1/sssekai/unity/__init__.py +19 -0
  39. sssekai-0.8.1/sssekai/unity/constant/SekaiLive2DPathNames.py +1397 -0
  40. sssekai-0.8.1/sssekai/unity/constant/__init__.py +0 -0
  41. sssekai-0.8.1/sssekai.egg-info/PKG-INFO +86 -0
  42. sssekai-0.8.1/sssekai.egg-info/SOURCES.txt +49 -0
  43. sssekai-0.8.1/sssekai.egg-info/dependency_links.txt +1 -0
  44. sssekai-0.8.1/sssekai.egg-info/entry_points.txt +6 -0
  45. sssekai-0.8.1/sssekai.egg-info/requires.txt +16 -0
  46. sssekai-0.8.1/sssekai.egg-info/top_level.txt +1 -0
  47. sssekai-0.8.1/tests/test_apphash.py +15 -0
  48. sssekai-0.8.1/tests/test_legacy_anim.py +19 -0
  49. sssekai-0.8.1/tests/test_live2d.py +32 -0
  50. sssekai-0.8.1/tests/test_rla.py +39 -0
  51. sssekai-0.8.1/tests/test_spine.py +18 -0
sssekai-0.8.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 mos9527
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
sssekai-0.8.1/PKG-INFO ADDED
@@ -0,0 +1,86 @@
1
+ Metadata-Version: 2.4
2
+ Name: sssekai
3
+ Version: 0.8.1
4
+ Summary: Project SEKAI Asset Utility / PJSK 资源工具
5
+ Home-page: https://github.com/MetaSekaiLab/sssekai
6
+ Author: greats3an
7
+ Author-email: greats3an@gmail.com
8
+ Maintainer: MetaSekaiLab
9
+ Project-URL: Source, https://github.com/MetaSekaiLab/sssekai
10
+ Project-URL: Issues, https://github.com/MetaSekaiLab/sssekai/issues
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: msgpack
18
+ Requires-Dist: requests
19
+ Requires-Dist: pycryptodome
20
+ Requires-Dist: unitypy<2.0.0,>=1.25.0
21
+ Requires-Dist: tqdm
22
+ Requires-Dist: coloredlogs
23
+ Requires-Dist: fsspec
24
+ Provides-Extra: gui
25
+ Requires-Dist: GooeyEx>=0.1.1; extra == "gui"
26
+ Provides-Extra: il2cpp
27
+ Requires-Dist: lief; extra == "il2cpp"
28
+ Provides-Extra: criware
29
+ Requires-Dist: PyCriCodecsEx; extra == "criware"
30
+ Dynamic: author
31
+ Dynamic: author-email
32
+ Dynamic: classifier
33
+ Dynamic: description
34
+ Dynamic: description-content-type
35
+ Dynamic: home-page
36
+ Dynamic: license-file
37
+ Dynamic: maintainer
38
+ Dynamic: project-url
39
+ Dynamic: provides-extra
40
+ Dynamic: requires-dist
41
+ Dynamic: requires-python
42
+ Dynamic: summary
43
+
44
+ # sssekai
45
+
46
+ 本项目基于 [mos9527/sssekai](https://github.com/mos9527/sssekai),由 [MetaSekaiLab](https://github.com/MetaSekaiLab) 继续维护。感谢原作者及历代贡献者。
47
+
48
+ [![Windows Build](https://github.com/MetaSekaiLab/sssekai/actions/workflows/python-publish.yml/badge.svg)](https://github.com/MetaSekaiLab/sssekai/actions/workflows/python-publish.yml) [![Releases](https://img.shields.io/github/downloads/MetaSekaiLab/sssekai/total.svg)](https://github.com/MetaSekaiLab/sssekai/releases/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
49
+
50
+ Command-line tool (w/Python API support) for Project SEKAI (JP: プロジェクトセカイ カラフルステージ! feat.初音ミク) game assets.
51
+
52
+ # Installing & Updating
53
+ **Windows 用户**:请查看本仓库的 [Releases](https://github.com/MetaSekaiLab/sssekai/releases)。
54
+
55
+ Python >=3.10 is required to run this tool.
56
+
57
+ 通过 PyPI 安装或更新:
58
+ ```bash
59
+ pip install -U sssekai
60
+ ```
61
+ To use the latest development version, you can install directly from GitHub:
62
+ ```bash
63
+ pip install -U git+https://github.com/MetaSekaiLab/sssekai
64
+ ```
65
+ ## Using the GUI version
66
+ Additionally, you can use the GUI version of `sssekai` by installing the `[gui]` extra, which in turn installs [GooeyEx](https://github.com/mos9527/GooeyEx/).
67
+
68
+ ```bash
69
+ pip install -U "sssekai[gui]"
70
+ ```
71
+ Then you can run the GUI version by:
72
+ ```bash
73
+ sssekai-gui
74
+ ```
75
+ # 问题反馈
76
+ 使用问题和缺陷请提交至本仓库的 [Issues](https://github.com/MetaSekaiLab/sssekai/issues)。
77
+
78
+ # See Also
79
+ https://github.com/mos9527/sssekai_blender_io
80
+
81
+ # License
82
+ MIT
83
+
84
+ # References
85
+ - https://github.com/K0lb3/UnityPy
86
+ - https://mos9527.github.io/tags/project-sekai/
@@ -0,0 +1,43 @@
1
+ # sssekai
2
+
3
+ 本项目基于 [mos9527/sssekai](https://github.com/mos9527/sssekai),由 [MetaSekaiLab](https://github.com/MetaSekaiLab) 继续维护。感谢原作者及历代贡献者。
4
+
5
+ [![Windows Build](https://github.com/MetaSekaiLab/sssekai/actions/workflows/python-publish.yml/badge.svg)](https://github.com/MetaSekaiLab/sssekai/actions/workflows/python-publish.yml) [![Releases](https://img.shields.io/github/downloads/MetaSekaiLab/sssekai/total.svg)](https://github.com/MetaSekaiLab/sssekai/releases/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
6
+
7
+ Command-line tool (w/Python API support) for Project SEKAI (JP: プロジェクトセカイ カラフルステージ! feat.初音ミク) game assets.
8
+
9
+ # Installing & Updating
10
+ **Windows 用户**:请查看本仓库的 [Releases](https://github.com/MetaSekaiLab/sssekai/releases)。
11
+
12
+ Python >=3.10 is required to run this tool.
13
+
14
+ 通过 PyPI 安装或更新:
15
+ ```bash
16
+ pip install -U sssekai
17
+ ```
18
+ To use the latest development version, you can install directly from GitHub:
19
+ ```bash
20
+ pip install -U git+https://github.com/MetaSekaiLab/sssekai
21
+ ```
22
+ ## Using the GUI version
23
+ Additionally, you can use the GUI version of `sssekai` by installing the `[gui]` extra, which in turn installs [GooeyEx](https://github.com/mos9527/GooeyEx/).
24
+
25
+ ```bash
26
+ pip install -U "sssekai[gui]"
27
+ ```
28
+ Then you can run the GUI version by:
29
+ ```bash
30
+ sssekai-gui
31
+ ```
32
+ # 问题反馈
33
+ 使用问题和缺陷请提交至本仓库的 [Issues](https://github.com/MetaSekaiLab/sssekai/issues)。
34
+
35
+ # See Also
36
+ https://github.com/mos9527/sssekai_blender_io
37
+
38
+ # License
39
+ MIT
40
+
41
+ # References
42
+ - https://github.com/K0lb3/UnityPy
43
+ - https://mos9527.github.io/tags/project-sekai/
@@ -0,0 +1,6 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [tool.black]
6
+ line-length = 88
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
sssekai-0.8.1/setup.py ADDED
@@ -0,0 +1,47 @@
1
+ import sys, os
2
+
3
+ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
4
+ import setuptools, sssekai
5
+
6
+ with open("README.md", "r", encoding="utf-8") as fh:
7
+ long_description = fh.read()
8
+
9
+ setuptools.setup(
10
+ name="sssekai",
11
+ version=sssekai.__version__,
12
+ author="greats3an",
13
+ author_email="greats3an@gmail.com",
14
+ maintainer="MetaSekaiLab",
15
+ description="Project SEKAI Asset Utility / PJSK 资源工具",
16
+ long_description=long_description,
17
+ long_description_content_type="text/markdown",
18
+ url="https://github.com/MetaSekaiLab/sssekai",
19
+ project_urls={
20
+ "Source": "https://github.com/MetaSekaiLab/sssekai",
21
+ "Issues": "https://github.com/MetaSekaiLab/sssekai/issues",
22
+ },
23
+ packages=setuptools.find_packages(include=["sssekai", "sssekai.*"]),
24
+ classifiers=[
25
+ "Programming Language :: Python :: 3",
26
+ "License :: OSI Approved :: MIT License",
27
+ "Operating System :: OS Independent",
28
+ ],
29
+ install_requires=[
30
+ "msgpack",
31
+ "requests",
32
+ "pycryptodome",
33
+ "unitypy >= 1.25.0, < 2.0.0",
34
+ "tqdm",
35
+ "coloredlogs",
36
+ "fsspec",
37
+ ],
38
+ extras_require={"gui": ["GooeyEx>=0.1.1"], "il2cpp": ["lief"], "criware": ["PyCriCodecsEx"]},
39
+ entry_points={
40
+ "console_scripts": [
41
+ "sssekai = sssekai.__main__:__main__",
42
+ "sssekai-gui = sssekai.__gui__:__main__",
43
+ ],
44
+ "fsspec.specs": ["abcache = sssekai.abcache.fs.AbCacheFilesystem"],
45
+ },
46
+ python_requires=">=3.10",
47
+ )
@@ -0,0 +1,72 @@
1
+ from dataclasses import dataclass, field
2
+ from sssekai.__main__ import create_parser
3
+ from typing import Any, List
4
+ from argparse import ArgumentParser
5
+ from logging import basicConfig, getLogger
6
+ import sys
7
+
8
+ try:
9
+ from GooeyEx import Gooey, GooeyParser
10
+ except ImportError as e:
11
+ print(
12
+ "Please install sssekai[gui] through your Python package manager to use the GUI"
13
+ )
14
+ raise e
15
+
16
+
17
+ from sssekai.unity import sssekai_set_unity_version
18
+
19
+
20
+ @Gooey(
21
+ show_preview_warning=False,
22
+ program_name="sssekai",
23
+ tabbed_groups=True,
24
+ advanced=True,
25
+ monospace_display=True,
26
+ default_size=(800, 600),
27
+ menu=[
28
+ {
29
+ "name": "Help",
30
+ "items": [
31
+ {
32
+ "type": "Link",
33
+ "menuTitle": "Report an Issue",
34
+ "url": "https://github.com/MetaSekaiLab/sssekai/issues",
35
+ },
36
+ {
37
+ "type": "Link",
38
+ "menuTitle": "GitHub",
39
+ "url": "https://github.com/MetaSekaiLab/sssekai",
40
+ },
41
+ ],
42
+ }
43
+ ],
44
+ )
45
+ def __main__():
46
+ from tqdm.std import tqdm as tqdm_c
47
+
48
+ parser = create_parser(GooeyParser)
49
+ args = parser.parse_args()
50
+
51
+ class TqdmMutexStream:
52
+ @staticmethod
53
+ def write(__s):
54
+ # Gooey[Ex] only reads output from stdout so we'd do that here.
55
+ with tqdm_c.external_write_mode(file=sys.stdout, nolock=False):
56
+ return sys.stdout.write(__s)
57
+
58
+ basicConfig(
59
+ level="DEBUG",
60
+ format="%(asctime)s | %(levelname).1s | %(name)s %(message)s",
61
+ datefmt="%H:%M:%S",
62
+ stream=TqdmMutexStream,
63
+ )
64
+ # override unity version
65
+ sssekai_set_unity_version(args.unity_version)
66
+ if "func" in args:
67
+ args.func(args)
68
+ pass
69
+
70
+
71
+ if __name__ in {"__main__", "__gui__"}:
72
+ __main__()
@@ -0,0 +1,6 @@
1
+ __VERSION_MAJOR__ = 0
2
+ __VERSION_MINOR__ = 8
3
+ __VERSION_PATCH__ = 1
4
+
5
+ __version_tuple__ = (__VERSION_MAJOR__, __VERSION_MINOR__, __VERSION_PATCH__)
6
+ __version__ = "%s.%s.%s" % __version_tuple__