Name | pysvgo JSON |
Version |
0.0.1
JSON |
| download |
home_page | None |
Summary | SVG optimizer |
upload_time | 2024-03-27 19:22:31 |
maintainer | None |
docs_url | None |
author | René Horn |
requires_python | >=3.7 |
license | MIT License |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pysvgo
in progress - Python version of Node.js tool for optimizing SVG files
List of plugins
https://github.com/svg/svgo/issues/1621
workon
- [ ] [enabled] cleanupAttrs : cleanup attributes from newlines, trailing, and repeating spaces
- [ ] [enabled] mergeStyles : merge multiple style elements into one
- [ ] [enabled] inlineStyles : move and merge styles from ``<style>`` elements to element style attributes
- [ ] [enabled] removeDoctype : remove doctype declaration
- [ ] [enabled] removeXMLProcInst : remove XML processing instructions
- [ ] [enabled] removeComments : remove comments
- [ ] [enabled] removeMetadata : remove ``<metadata>``
- [ ] [enabled] removeTitle : remove ``<title>``
- [ ] [enabled] removeDesc : remove ``<desc>``
- [ ] [enabled] removeUselessDefs : remove elements of ``<defs>`` without id
- [ ] [disabled] removeXMLNS : removes the xmlns attribute (for inline SVG)
- [ ] [enabled] removeEditorsNSData : remove editors namespaces, elements, and attributes
- [ ] [enabled] removeEmptyAttrs : remove empty attributes
- [ ] [enabled] removeHiddenElems : remove hidden elements
- [ ] [enabled] removeEmptyText : remove empty Text elements
- [ ] [enabled] removeEmptyContainers : remove empty Container elements
- [ ] [enabled] removeViewBox : remove viewBox attribute when possible
- [ ] [enabled] cleanupEnableBackground : remove or cleanup enable-background attribute when possible
- [ ] [enabled] minifyStyles : minify ``<style>`` elements content with CSSO
- [ ] [disabled] convertStyleToAttrs : convert styles into attributes
- [ ] [enabled] convertColors : convert colors (from rgb() to #rrggbb, from #rrggbb to #rgb)
- [ ] [enabled] convertPathData : convert Path data to relative or absolute (whichever is shorter), convert one segment to another, trim useless delimiters, smart rounding, and much more
- [ ] [enabled] convertTransform : collapse multiple transforms into one, convert matrices to the short aliases, and much more
- [ ] [enabled] removeUnknownsAndDefaults : remove unknown elements content and attributes, remove attributes with default values
- [ ] [enabled] removeNonInheritableGroupAttrs : remove non-inheritable group's "presentation" attributes
- [ ] [enabled] removeUselessStrokeAndFill : remove useless stroke and fill attributes
- [ ] [enabled] removeUnusedNS : remove unused namespaces declaration
- [ ] [disabled] prefixIds : prefix IDs and classes with the SVG filename or an arbitrary string
- [ ] [enabled] cleanupIDs : remove unused and minify used IDs
- [ ] [enabled] cleanupNumericValues : round numeric values to the fixed precision, remove default px units
- [ ] [disabled] cleanupListOfValues : round numeric values in attributes that take a list of numbers (like viewBox or enable-background)
- [ ] [enabled] moveElemsAttrsToGroup : move elements' attributes to their enclosing group
- [ ] [enabled] moveGroupAttrsToElems : move some group attributes to the contained elements
- [ ] [enabled] collapseGroups : collapse useless groups
- [ ] [disabled] removeRasterImages : remove raster images
- [ ] [enabled] mergePaths : merge multiple Paths into one
- [ ] [enabled] convertShapeToPath : convert some basic shapes to ``<path>``
- [ ] [enabled] convertEllipseToCircle : convert non-eccentric <ellipse> to ``<circle>``
- [ ] [disabled] sortAttrs : sort element attributes for epic readability
- [ ] [enabled] sortDefsChildren : sort children of ``<defs>`` in order to improve compression
- [ ] [disabled] removeDimensions : remove width/height and add viewBox if it's missing (opposite to removeViewBox, disable it first)
- [ ] [disabled] removeAttrs : remove attributes by pattern
- [ ] [disabled] removeAttributesBySelector : removes attributes of elements that match a CSS selector
- [ ] [disabled] removeElementsByAttr : remove arbitrary elements by ID or className
- [ ] [disabled] addClassesToSVGElement : add classnames to an outer ``<svg>`` element
- [ ] [disabled] addAttributesToSVGElement : adds attributes to an outer ``<svg>`` element
- [ ] [disabled] removeOffCanvasPaths : removes elements that are drawn outside of the viewbox
- [ ] [disabled] removeStyleElement : remove ``<style>`` elements
- [ ] [disabled] removeScriptElement : remove ``<script>`` elements
- [ ] [disabled] reusePaths : Find duplicated elements and replace them with links
Raw data
{
"_id": null,
"home_page": null,
"name": "pysvgo",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Ren\u00e9 Horn",
"author_email": "rene_horn@gmx.net",
"download_url": "https://files.pythonhosted.org/packages/8f/86/41a00efcc1f3b5d5fec05b2e2deede31d0c676c5b6199ae892f9c0770a0a/pysvgo-0.0.1.tar.gz",
"platform": null,
"description": "# pysvgo\nin progress - Python version of Node.js tool for optimizing SVG files\n\n\nList of plugins\nhttps://github.com/svg/svgo/issues/1621\nworkon\n\n - [ ] [enabled] cleanupAttrs : cleanup attributes from newlines, trailing, and repeating spaces\n - [ ] [enabled] mergeStyles : merge multiple style elements into one\n - [ ] [enabled] inlineStyles : move and merge styles from ``<style>`` elements to element style attributes\n - [ ] [enabled] removeDoctype : remove doctype declaration\n - [ ] [enabled] removeXMLProcInst : remove XML processing instructions\n - [ ] [enabled] removeComments : remove comments\n - [ ] [enabled] removeMetadata : remove ``<metadata>``\n - [ ] [enabled] removeTitle : remove ``<title>``\n - [ ] [enabled] removeDesc : remove ``<desc>``\n - [ ] [enabled] removeUselessDefs : remove elements of ``<defs>`` without id\n - [ ] [disabled] removeXMLNS : removes the xmlns attribute (for inline SVG)\n - [ ] [enabled] removeEditorsNSData : remove editors namespaces, elements, and attributes\n - [ ] [enabled] removeEmptyAttrs : remove empty attributes\n - [ ] [enabled] removeHiddenElems : remove hidden elements\n - [ ] [enabled] removeEmptyText : remove empty Text elements\n - [ ] [enabled] removeEmptyContainers : remove empty Container elements\n - [ ] [enabled] removeViewBox : remove viewBox attribute when possible\n - [ ] [enabled] cleanupEnableBackground : remove or cleanup enable-background attribute when possible\n - [ ] [enabled] minifyStyles : minify ``<style>`` elements content with CSSO\n - [ ] [disabled] convertStyleToAttrs : convert styles into attributes\n - [ ] [enabled] convertColors : convert colors (from rgb() to #rrggbb, from #rrggbb to #rgb)\n - [ ] [enabled] convertPathData : convert Path data to relative or absolute (whichever is shorter), convert one segment to another, trim useless delimiters, smart rounding, and much more\n - [ ] [enabled] convertTransform : collapse multiple transforms into one, convert matrices to the short aliases, and much more\n - [ ] [enabled] removeUnknownsAndDefaults : remove unknown elements content and attributes, remove attributes with default values\n - [ ] [enabled] removeNonInheritableGroupAttrs : remove non-inheritable group's \"presentation\" attributes\n - [ ] [enabled] removeUselessStrokeAndFill : remove useless stroke and fill attributes\n - [ ] [enabled] removeUnusedNS : remove unused namespaces declaration\n - [ ] [disabled] prefixIds : prefix IDs and classes with the SVG filename or an arbitrary string\n - [ ] [enabled] cleanupIDs : remove unused and minify used IDs\n - [ ] [enabled] cleanupNumericValues : round numeric values to the fixed precision, remove default px units\n - [ ] [disabled] cleanupListOfValues : round numeric values in attributes that take a list of numbers (like viewBox or enable-background)\n - [ ] [enabled] moveElemsAttrsToGroup : move elements' attributes to their enclosing group\n - [ ] [enabled] moveGroupAttrsToElems : move some group attributes to the contained elements\n - [ ] [enabled] collapseGroups : collapse useless groups\n - [ ] [disabled] removeRasterImages : remove raster images\n - [ ] [enabled] mergePaths : merge multiple Paths into one\n - [ ] [enabled] convertShapeToPath : convert some basic shapes to ``<path>``\n - [ ] [enabled] convertEllipseToCircle : convert non-eccentric <ellipse> to ``<circle>``\n - [ ] [disabled] sortAttrs : sort element attributes for epic readability\n - [ ] [enabled] sortDefsChildren : sort children of ``<defs>`` in order to improve compression\n - [ ] [disabled] removeDimensions : remove width/height and add viewBox if it's missing (opposite to removeViewBox, disable it first)\n - [ ] [disabled] removeAttrs : remove attributes by pattern\n - [ ] [disabled] removeAttributesBySelector : removes attributes of elements that match a CSS selector\n - [ ] [disabled] removeElementsByAttr : remove arbitrary elements by ID or className\n - [ ] [disabled] addClassesToSVGElement : add classnames to an outer ``<svg>`` element\n - [ ] [disabled] addAttributesToSVGElement : adds attributes to an outer ``<svg>`` element\n - [ ] [disabled] removeOffCanvasPaths : removes elements that are drawn outside of the viewbox\n - [ ] [disabled] removeStyleElement : remove ``<style>`` elements\n - [ ] [disabled] removeScriptElement : remove ``<script>`` elements\n - [ ] [disabled] reusePaths : Find duplicated elements and replace them with links\n\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "SVG optimizer",
"version": "0.0.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1cad5724a2aaf0812f1859bbfb694df5db83806c2921e6cb283ac821d324d2fa",
"md5": "5306784d1e402dc3cbf66d80ddc00a37",
"sha256": "d437491e421d1cbefb139f92572964cfddd2b108bc5342c11464dcfc5ba85646"
},
"downloads": -1,
"filename": "pysvgo-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5306784d1e402dc3cbf66d80ddc00a37",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 6281,
"upload_time": "2024-03-27T19:22:29",
"upload_time_iso_8601": "2024-03-27T19:22:29.420218Z",
"url": "https://files.pythonhosted.org/packages/1c/ad/5724a2aaf0812f1859bbfb694df5db83806c2921e6cb283ac821d324d2fa/pysvgo-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8f8641a00efcc1f3b5d5fec05b2e2deede31d0c676c5b6199ae892f9c0770a0a",
"md5": "3c0b4c785687ac399332eab95716067b",
"sha256": "6c3d0cb8a3603fdef2dbed9f9b3ce359dcab0415a48caf27713ceb9935f189bf"
},
"downloads": -1,
"filename": "pysvgo-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "3c0b4c785687ac399332eab95716067b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 5748,
"upload_time": "2024-03-27T19:22:31",
"upload_time_iso_8601": "2024-03-27T19:22:31.156690Z",
"url": "https://files.pythonhosted.org/packages/8f/86/41a00efcc1f3b5d5fec05b2e2deede31d0c676c5b6199ae892f9c0770a0a/pysvgo-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-27 19:22:31",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pysvgo"
}