Skip to main content

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)

Table of built distributions (wheels) for py-svgcheck-lib 0.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

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