Socket
Socket
Sign inDemoInstall

spine-json-lib

Package Overview
Dependencies
3
Maintainers
2
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    spine-json-lib

Library to parse and edit spine animations from command line


Maintainers
2

Readme

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

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc