Skip to main content

Regroup your SVG files in a single sprite

Project description


This is a simple script (no external dependencies) to regroup all the SVG files from a directory into a single sprite.


pip install svgsprite


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:

  <use xlink:href="sprite.svg#my-svg-file"></use>

Project details

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)

Uploaded source

Built Distribution

svgsprite-0.1.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page