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 | Reset |
|---|---|---|---|---|
| py_svgcheck_lib-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
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
|