Skip to main content

Library to parse and edit spine animations from command line

Project description

spine-json-lib

This library was created to parse, edit and optimize spine animations from command line. TravisCI

Installing

Install and update using pip:

 pip install -U spine-json-lib
  • Free software: MIT license

Features

from spine_json_lib import SpineAnimationEditor

animation_editor = SpineAnimationEditor.from_json_file(
    json_path='path/to/animation.json'
)

# images_references will keep references updated to images used in animation
# even after removing an animations or skins
print("{}".format(animation_editor.images_references))

# here we decided to remove "anim1" and "anim2"
animation_editor.erase_animations(
    animations_to_erase=["anim1", "anim2"]
)

# here we remove skin1 and all the images only used on this skin
animation_editor.erase_skins(
    skins_to_erase=["skin1"]
)

# making animation looks twice bigger that it is right now
animation_editor.scale_animation(scaleX=2.0, scaleY=2.0)

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Cookiecutter: https://github.com/audreyr/cookiecutter

audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage

Contributing

For guidance on how to make a contribution to spine-json-lib, see the contributing guidelines.

contributing guidelines: https://github.com/socialpoint-labs/spine-json-lib/blob/master/CONTRIBUTING.rst

Links

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_json_lib-0.0.5.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

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

spine_json_lib-0.0.5-py2.py3-none-any.whl (37.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file spine_json_lib-0.0.5.tar.gz.

File metadata

  • Download URL: spine_json_lib-0.0.5.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for spine_json_lib-0.0.5.tar.gz
Algorithm Hash digest
SHA256 dfbd8ba8e63a7000d1adf4f306255ed469f5ea6dd3cda100b4b376e0da8d38f8
MD5 4505bbf2cba83ae1f5ff8e1861886c31
BLAKE2b-256 9b66ba38e9e3b4a02776b9df779b8af0d416280d5c9c4de27c265bc536f24e1a

See more details on using hashes here.

File details

Details for the file spine_json_lib-0.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: spine_json_lib-0.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for spine_json_lib-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bb0af075dfc77e51f523bd2c89a0d305aeb7008dff4c9d4e20d1bc2685fa0c5b
MD5 52343761f248272cfed99514bccd07e1
BLAKE2b-256 db628f452f2ec8969a50c7e323e03a6bf3dc1aed4744c2a6d8c959175f33806e

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