Skip to main content

English | 中文

Python binding

spine-converter binds the C ABI with ctypes. Each wheel carries the native library of its platform and has no dependencies. Python 3.10 and later.

pip install spine-converter
import spine_converter as sc

result = sc.convert(data, "4.3", sc.Format.BINARY)
print(result.loss_count, result.report)
Member Use
detect(data) format and version, Format.UNKNOWN for data that is not Spine data
convert(data, target_version, target_format, flags, atlas) a Conversion with the output bytes, the report, its loss count and most severe impact, atlas as --atlas
Flags FAIL_ON_LOSS, PRETTY_JSON and NO_REWRITE, matching the SPC_FLAG_ bits
abi_version() library_version() versions of the loaded library, a mismatched ABI fails at import
describe(status) text of a status
ConverterError raised on every failure, status holds the C ABI status

A None target version and Format.UNKNOWN keep the source version and format. Report entries follow docs/report.md.

SPINE_CONVERTER_LIBRARY names another library file to load. Tests run against the library of zig build dist.

zig build dist
SPINE_CONVERTER_LIBRARY=zig-out/dist/linux-x64/libspine_converter.so PYTHONPATH=bindings/python/src python -m unittest discover -s bindings/python/tests

Metadata

Release files for spine-converter 1.1.0

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

Built distributions (wheels)

Table of built distributions (wheels) for spine-converter 1.1.0
File Actions
spine_converter-1.1.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for spine_converter-1.1.0-py3-none-win_arm64.whl
spine_converter-1.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for spine_converter-1.1.0-py3-none-win_amd64.whl
spine_converter-1.1.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for spine_converter-1.1.0-py3-none-win32.whl
spine_converter-1.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl Python 3 none Linux musl 1.1+ x86-64, Linux glibc 2.17+ x86-64 Details for spine_converter-1.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
spine_converter-1.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64, Linux musl 1.1+ ARM64 Details for spine_converter-1.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
spine_converter-1.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for spine_converter-1.1.0-py3-none-macosx_11_0_arm64.whl
spine_converter-1.1.0-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details for spine_converter-1.1.0-py3-none-macosx_10_15_x86_64.whl

Total release size: 6.6 MB

Release files / spine_converter-1.1.0-py3-none-win_arm64.whl

Download URL spine_converter-1.1.0-py3-none-win_arm64.whl
Size 874.8 kB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
9d7c5d03f1e42bc55c3ea5ce92d7dd738a01f6b887a02b3fca9e2a7bb71fae63
BLAKE2b-256 checksum
How to use checksums
69e08890be18f92da9e11ae425425da26a36196a69813548dba0e43a9d6bb548
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / spine_converter-1.1.0-py3-none-win_amd64.whl

Download URL spine_converter-1.1.0-py3-none-win_amd64.whl
Size 1.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
415e607cb8ad551f36f1bb0a729b264e7d326920d365cc18ae0290ac57b62fe9
BLAKE2b-256 checksum
How to use checksums
65b86d842dbeb94aa37b6e52644b1e546ae42bf604ffaf03db7eef25df885608
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / spine_converter-1.1.0-py3-none-win32.whl

Download URL spine_converter-1.1.0-py3-none-win32.whl
Size 969.7 kB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
441a8a016c50585a6bb1e092699ac33f56c23595c3817b3260598dfaa80cb658
BLAKE2b-256 checksum
How to use checksums
5f23eaa06378ef9037bee6a2a9cb39c8e8023d70ccfd944208e80ae9f9a359c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / spine_converter-1.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL spine_converter-1.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
Size 997.0 kB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
68c05feffc996b3270e6eebf72688d2f9766dea7c7c847fe554a00095000231c
BLAKE2b-256 checksum
How to use checksums
06ed12350f1da9d17aefa24caf3807a27ad0d8ffd372ca44abfeafa7f24374ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / spine_converter-1.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL spine_converter-1.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Size 879.5 kB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
bbd2385cb3a7b00d6a20a2683333f4d08a52c58fe8054a26e0f66888b1f00e95
BLAKE2b-256 checksum
How to use checksums
2a2781224ecc9bb78d3356259efd6c3a9bfac068d26b0a6bd0d2b3427d2542d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / spine_converter-1.1.0-py3-none-macosx_11_0_arm64.whl

Download URL spine_converter-1.1.0-py3-none-macosx_11_0_arm64.whl
Size 842.1 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0f72cbf907499b674bd315d4e501863407fc2c3e25a13f0ec10b11b33ce2c47a
BLAKE2b-256 checksum
How to use checksums
89714912dd13e32d3488f6f5001f80e51e98ac915860baa24ea08c3f489cb427
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / spine_converter-1.1.0-py3-none-macosx_10_15_x86_64.whl

Download URL spine_converter-1.1.0-py3-none-macosx_10_15_x86_64.whl
Size 1.0 MB
Tags Python 3 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
787774faef661138c3a587459a7e86fd464d683262695e848cfc11e1e1b08158
BLAKE2b-256 checksum
How to use checksums
e99faa501a3448795ac99d5ca0ab4cc78ede6b21e229bd277ffa5913c218ffec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for spine-converter 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

7 release files No provenance

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