{"library":"ocpsvg","title":"ocpsvg","description":"A Python library for parsing, manipulating, and rendering SVG (Scalable Vector Graphics) files with support for OCP (Open Canvas Protocol) extensions. Version 0.6.0, active development with no fixed release cadence.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install ocpsvg"],"cli":null},"imports":["from ocpsvg import SVG"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from ocpsvg import SVG\n\n# Load an SVG file\nsvg = SVG.from_file('example.svg')\n\n# Access SVG elements (using CSS selectors)\nrect = svg.cssselect('rect')[0]\nprint(rect.attrib)\n\n# Modify attributes\nrect.set('fill', 'blue')\n\n# Get the XML string\nprint(svg.tostring())","lang":"python","description":"Load an SVG file, select an element via CSS, modify its attribute, and output the updated XML.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}