Skip to main content

Python Library for SVG Validation (fork of the svgcheck cli)

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_svgcheck_lib-0.0.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file py_svgcheck_lib-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for py_svgcheck_lib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8316492919dc39ec08680feb752787d5e9abe094e4659e304be7e4c837b60c2d
MD5 8f68e1fe49ed1460f17c4708b78d56ac
BLAKE2b-256 be61225d7a9005a3517035d645e65c48be4277876795fd7a52dab7ac698d930f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page