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.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 6.6 MB
Release files / spine_converter-1.0.0-py3-none-win_arm64.whl
| Download URL | spine_converter-1.0.0-py3-none-win_arm64.whl |
|---|---|
| Size | 874.8 kB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
b4a2999345d94976b9f509ee9af1abff32f0549d824b7a3cbeab516603f49438
|
|
BLAKE2b-256 checksum How to use checksums |
46d5aa799cafa2581bb9710577dd76fb7eb369f110742d8bffb9af179d5d96ed
|
| 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.0.0-py3-none-win_amd64.whl
| Download URL | spine_converter-1.0.0-py3-none-win_amd64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3850039adf2b775b5371b4e8dcaf86be70bdf75f04dbc810f04bba0ae6e3a660
|
|
BLAKE2b-256 checksum How to use checksums |
ebd7147cf737471845312afac99dbb8bfab4f62b2c2e9fac085dc54f6d9ca910
|
| 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.0.0-py3-none-win32.whl
| Download URL | spine_converter-1.0.0-py3-none-win32.whl |
|---|---|
| Size | 969.7 kB |
| Tags | Python 3 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
d0b6d5a110a79100bf71c5811614934da11dcb315593226b7aa6c2b95d8f47f3
|
|
BLAKE2b-256 checksum How to use checksums |
155c1810c01512a5ae2d5a869eaf92f28672ac6955351ebe63df7bb70e3a1d8d
|
| 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.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
| Download URL | spine_converter-1.0.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 |
2e23ed88fd48fd370a2d4df27466eef6f509424da9b1d4d8945ead01093eff29
|
|
BLAKE2b-256 checksum How to use checksums |
0c06661aaf0c68127f5012008b25d4ad586d194894a05d7cf51f3fde31180bb5
|
| 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.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
| Download URL | spine_converter-1.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl |
|---|---|
| Size | 879.6 kB |
| Tags | Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
64f28ea7b4e085632aa7313fa41f95e26a3449530b335ef46f2efe2fafba19f4
|
|
BLAKE2b-256 checksum How to use checksums |
019c976b66f8b58ac22e0bea1562487cf435852c553d10102766d9737665b45f
|
| 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.0.0-py3-none-macosx_11_0_arm64.whl
| Download URL | spine_converter-1.0.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 |
d378d44685a3192a965c0219aa0464f5eb8b4b7c3653b38ae000d05cf76faf70
|
|
BLAKE2b-256 checksum How to use checksums |
57d832bdb09c240d6ac7877b7acf32051d148456f1b0a882a5a1ec11bcb28595
|
| 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.0.0-py3-none-macosx_10_15_x86_64.whl
| Download URL | spine_converter-1.0.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 |
fc664c46d02ef4d5a3b2243e8c959b1956977e0c6d200d426f6077ba816cdd36
|
|
BLAKE2b-256 checksum How to use checksums |
125a2721cfa8bdb8021dea11eb57e07ee6f4f2b5428d4a98e5d86547d4932494
|
| 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.0.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.