svgchecklib
Python Library for SVG Validation (fork of the svgcheck cli, designed for seamless integration into Python codebases).
Usage as Python library
from svgchecklib import validate_svg
validation_results = validate_svg("path_to_svg_file")
print(validation_results)
"""
Result looks like the next list:
[
"2: The attribute 'red' does not allow the value 'fill', replaced with 'black'.",
'File does not conform to SVG requirements'
]
"""
Thanks svgcheck project (https://github.com/ietf-tools/svgcheck.git)
Metadata
Release files for py-svgcheck-lib 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_svgcheck_lib-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for py_svgcheck_lib-0.0.1-py3-none-any.whl |
Release files / py_svgcheck_lib-0.0.1-py3-none-any.whl
| Download URL | py_svgcheck_lib-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8316492919dc39ec08680feb752787d5e9abe094e4659e304be7e4c837b60c2d
|
|
BLAKE2b-256 checksum How to use checksums |
be61225d7a9005a3517035d645e65c48be4277876795fd7a52dab7ac698d930f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for py-svgcheck-lib 0.0.1
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.