Regroup your SVG files in a single sprite
Project description
svgsprite
This is a simple script (no external dependencies) to regroup all the SVG files from a directory into a single sprite.
Installation
pip install svgsprite
Usage
svgsprite --src path/to/dir/with/svg/files --dest path/to/sprite/to/create
You can then refer to your icons with tags like this:
<svg>
<use xlink:href="sprite.svg#my-svg-file"></use>
</svg>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
svgsprite-0.1.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for svgsprite-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29015c53161030c33a45f1f4d1ff0543b6a44f709d9bcfbb722f8b7d3bd2ebf4 |
|
MD5 | 5cdd6e83e97e161d2997647f627bfb47 |
|
BLAKE2b-256 | c87813efa9c680649538e762bd33d57fdebc88ce0abaf1646c7ff798774130f8 |