Skip to main content

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

Metadata

Release files for spine-json-lib 0.4.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spine-json-lib 0.4.6
File Size Uploaded
spine_json_lib-0.4.6.tar.gz 36.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spine-json-lib 0.4.6
File Interpreter ABI Platform
spine_json_lib-0.4.6-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 78.4 kB

Release files / spine_json_lib-0.4.6.tar.gz

Download URL spine_json_lib-0.4.6.tar.gz
Size 36.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5a06c5ea707d4fcbb8cd76fc9e4de3636ad87a102ee6ee6e7acc27b948051c30
BLAKE2b-256 checksum
How to use checksums
6ddc3158c660123d959c9fe8642dcb19230dd20f306b182b389a39525a6a9188
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/36.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.8.2 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

Release files / spine_json_lib-0.4.6-py2.py3-none-any.whl

Download URL spine_json_lib-0.4.6-py2.py3-none-any.whl
Size 41.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7ff4b3561609a2f5f5d4625eb038470e0f5845b09f3376cfcd8feb985a4b84a4
BLAKE2b-256 checksum
How to use checksums
06b4551b39944fc6773db9d5af4cb4d351cc39bceeca4ec60efe987cd0568b29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/36.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.8.2 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.4.6 This release

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.15

2 release files

0.0.14

1 release file

0.0.13

1 release file

0.0.12

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.5

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page