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 details)
Built Distribution
File details
Details for the file svgsprite-0.1.1.tar.gz
.
File metadata
- Download URL: svgsprite-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 126317585c34ea4d51e97108778202e70a95770ed1ce687f920502f9b0817b1c |
|
MD5 | db22ae048b90b8a7532386b2e8be6751 |
|
BLAKE2b-256 | dc4fed01a9b5d27264c4faeb6059eccf14c815a5f04f7d75bc5040d8cc080e33 |
File details
Details for the file svgsprite-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: svgsprite-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29015c53161030c33a45f1f4d1ff0543b6a44f709d9bcfbb722f8b7d3bd2ebf4 |
|
MD5 | 5cdd6e83e97e161d2997647f627bfb47 |
|
BLAKE2b-256 | c87813efa9c680649538e762bd33d57fdebc88ce0abaf1646c7ff798774130f8 |