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.0.tar.gz (25.5 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.0-py3-none-any.whl (42.6 kB view details)

Uploaded Python 3

File details

Details for the file spine_asset-1.1.0.tar.gz.

File metadata

  • Download URL: spine_asset-1.1.0.tar.gz
  • Upload date:
  • Size: 25.5 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.0.tar.gz
Algorithm Hash digest
SHA256 0241383164a15af757d18abeea2cc207acc638696861d12500bac0fc09a755f7
MD5 2de439a2b39e30842c5644b4981cc1d0
BLAKE2b-256 fbec8b5462d6cb81c52f3437c7786e086461d6ba7df1bb8dbb555f588f198786

See more details on using hashes here.

File details

Details for the file spine_asset-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: spine_asset-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 42.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8373e41944bd03e9abce7026fc447ff0ffbd918586d06578d4b0fdc7165417ba
MD5 cbd60ba10118266775367c428d72711a
BLAKE2b-256 1b2b8a71ef8e8d1e8d0d15ff90fc2dcb4abe79ebc537c68fffaeac698e6ec7ff

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