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.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for svgsprite-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c77dbeffa2b3d7a8f25e9aa75f3f9a2aff8518aaac93454815c7f20594fd7ec |
|
MD5 | fdbb2d7813c6df7cfa07329461b0f0b7 |
|
BLAKE2b-256 | 34b20e51ae78190b57bfe701ddcfce100949feca50dd8de5739244d45fdd6fa1 |