Spine-Asset-Py
Spine Animation Asset Parser Library
Spine 动画资源解析库
Introduction
This Python library implements Spine skeleton parsing. Note that the library does not support rendering, as it is just designed for parsing purpose.
Features
| Spine Version | Skeleton Binary Parsing | Skeleton JSON Parsing | Atlas Parsing |
|---|---|---|---|
| 3.8 | √ Yes | √ Yes | √ Yes |
Usage
Installation
Install from PyPI:
pip install spine_asset
Examples
The following code shows how to parse a binary skeleton file:
from spine_asset.v38 import SkeletonBinary
path = "path/to/your/skeleton/file.skel"
with open(path, "rb") as f:
skeleton_data = SkeletonBinary().read_skeleton_data(f.read())
print("This skeleton contains these animations:")
print([a.name for a in skeleton_data.animations])
If the skeleton file is in JSON format, just change all the SkeletonBinary to SkeletonJSON.
Licensing
This project is licensed under the MIT License. See the License file for more details.
Release files for Spine-Asset 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spine_asset-1.1.1.tar.gz | 25.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spine_asset-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.4 kB
Release files / spine_asset-1.1.1.tar.gz
| Download URL | spine_asset-1.1.1.tar.gz |
|---|---|
| Size | 25.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec8633a44c7f9ef479685ec9bfea3219f83b972eda8ef4a0a9b870e4230a9ac0
|
|
BLAKE2b-256 checksum How to use checksums |
dba6060de3ab89f40e0965b3281fa76e9161b8aac16c4aec55f3b21c09b263d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.12.9 Windows/11
|
Release files / spine_asset-1.1.1-py3-none-any.whl
| Download URL | spine_asset-1.1.1-py3-none-any.whl |
|---|---|
| Size | 42.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
407a09421a4e629bf6a45079130bcfb7abcda09dc9e03f3772a6c0929eb7bf80
|
|
BLAKE2b-256 checksum How to use checksums |
addec0415391421cffb26d6551efb81bae42db13eaa6cc45885cd0eb9acc1123
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.12.9 Windows/11
|