Spine Animation Asset Parser Library
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spine_asset-1.1.1.tar.gz.
File metadata
- Download URL: spine_asset-1.1.1.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.9 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec8633a44c7f9ef479685ec9bfea3219f83b972eda8ef4a0a9b870e4230a9ac0
|
|
| MD5 |
5a6f10844e98e8c8934aa64805ee5edc
|
|
| BLAKE2b-256 |
dba6060de3ab89f40e0965b3281fa76e9161b8aac16c4aec55f3b21c09b263d0
|
File details
Details for the file spine_asset-1.1.1-py3-none-any.whl.
File metadata
- Download URL: spine_asset-1.1.1-py3-none-any.whl
- Upload date:
- Size: 42.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.9 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
407a09421a4e629bf6a45079130bcfb7abcda09dc9e03f3772a6c0929eb7bf80
|
|
| MD5 |
21a7e3fc4cb5b38bb94b6a365b5e3c02
|
|
| BLAKE2b-256 |
addec0415391421cffb26d6551efb81bae42db13eaa6cc45885cd0eb9acc1123
|