Skip to main content

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


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)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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