Skip to main content

mcruft-vectorcraft

Convert SVG to PDF, PNG, AI or VectorCraft; import PDF as SVG; outline text in PDF/SVG exports. This package plugs into the mcruft document API. Use the same Python API across engines and inspect each conversion's loss report.

Install

Python 3.12 or later is required. Install the adapter with:

uv pip install mcruft-vectorcraft

Supply vectorcraft-cli 0.16.0 or later on PATH, or set MCRUFT_VECTORCRAFT_CLI to its executable path. For a self-contained installation on macOS 11+ with Apple Silicon:

uv pip install 'mcruft-vectorcraft[all]'

The bundled extra installs only the CLI bundle; all installs every optional component for this adapter. Bundles currently have macOS arm64 wheels only and perform no runtime downloads. On other platforms, install the adapter and supply a compatible CLI yourself.

Use

With art.svg in the current directory and its parent directory writable:

import mcruft

report = mcruft.convert("art.svg", "art.pdf", policy="editable")
print(report.engine)
print(report.outputs)
print(report.losses)

The router chooses an available engine by operation, format and policy; installing this adapter does not force every route through it. Inspect the registry with mcruft.engines().

Choose editable to favour document structure or fidelity to favour appearance. Routes that cannot honour the requested policy raise UnsupportedRoute. PNG exports require fidelity and may create numbered files; use report.outputs to find the actual paths.

Limits and documentation

PDF re-import for outlining can drop links, annotations and forms. Illustrator support covers declared routes, not every AI feature. Installing an engine does not promise lossless round trips. The package does not include the desktop editor.

Licence: Apache-2.0. Upstream CLI licences are distributed with the separate binary wheel.

Metadata

Release files for mcruft-vectorcraft 1.0.0

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

Source distribution (sdist)

Source distribution for mcruft-vectorcraft 1.0.0
File Size Uploaded Provenance Actions
mcruft_vectorcraft-1.0.0.tar.gz 7.4 kB Without provenance Details for mcruft_vectorcraft-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcruft-vectorcraft 1.0.0
File Interpreter ABI Platform Actions
mcruft_vectorcraft-1.0.0-py3-none-any.whl Python 3 none any Details for mcruft_vectorcraft-1.0.0-py3-none-any.whl

Total release size: 11.9 kB

Release files / mcruft_vectorcraft-1.0.0.tar.gz

Download URL mcruft_vectorcraft-1.0.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f4dfacd9e8ec338c9bb1a4c5ed555278bab3c4ac3249f4cd6d1f183c80221276
BLAKE2b-256 checksum
How to use checksums
5f33a99bb94b4e1366433763be4c1cd51cd0c82d4bb055e75b8e9900d74d7955
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mcruft_vectorcraft-1.0.0-py3-none-any.whl

Download URL mcruft_vectorcraft-1.0.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7e94c09c7d99ca8912b8dfd760999207d8259243d50d0cbc86c6fb006f588bc
BLAKE2b-256 checksum
How to use checksums
b230340147a60f923bba88327d499d32300a29af8cb4f166158542264f6afb97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for mcruft-vectorcraft 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.

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