Skip to main content

Spine Animation Asset Parser Library

Project description

Spine-Asset-Py

Spine Animation Asset Parser Library
Spine 动画资源解析库

PyPI - Version PyPI - Downloads GitHub Workflow - Test

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spine_asset-1.1.1.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spine_asset-1.1.1-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

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

Hashes for spine_asset-1.1.1.tar.gz
Algorithm Hash digest
SHA256 ec8633a44c7f9ef479685ec9bfea3219f83b972eda8ef4a0a9b870e4230a9ac0
MD5 5a6f10844e98e8c8934aa64805ee5edc
BLAKE2b-256 dba6060de3ab89f40e0965b3281fa76e9161b8aac16c4aec55f3b21c09b263d0

See more details on using hashes here.

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

Hashes for spine_asset-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 407a09421a4e629bf6a45079130bcfb7abcda09dc9e03f3772a6c0929eb7bf80
MD5 21a7e3fc4cb5b38bb94b6a365b5e3c02
BLAKE2b-256 addec0415391421cffb26d6551efb81bae42db13eaa6cc45885cd0eb9acc1123

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page