ietf-tools / svgcheck

Check SVG against RFC schema
BSD 3-Clause "New" or "Revised" License
16 stars 13 forks source link

Use svgcheck as a Python library #42

Open jayqi opened 7 months ago

jayqi commented 7 months ago

I would like to check an SVG file as a part of a unit test in a Python project, and being able to run an svgcheck(path) or svgcheck(text) function would be much nicer than having to use a CLI program with subprocess. Looking at svgcheck.run.main, it looks like there isn't currently a straightforward functional entrypoint, as all of the parameters (including source) can only be specified through command line arguments.