Skip to main content

Manipulate SVG elements and export variations

Project description

svgout

Manipulate SVG elements and export variations

Install

On debian based distro:

sudo apt install libxml2-dev libxslt1-dev lib32z1-dev python3-dev
pip install svgout

Usage

usage: svgout [-h] [-o OUTPUT_DIR] [-i INPUT_FILE] [-c CONFIG_FILE]

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        SVG files created into this directory, default: creates `dist` directory beside the `input_file`
  -i INPUT_FILE, --input-file INPUT_FILE
                        Input SVG file path, default: trying to find first SVG file in current path
  -c CONFIG_FILE, --config-file CONFIG_FILE
                        svgout YAML config path, default: `{input_file}.svgout.yml`

Configuration

Configuration structure in YAML format:

OUTPUT_FILE_NAME:
  COMMAND:
    - ELEMENT_ID_REGEX

Example:

first:
  hide:
    - element-1
    - element-2
  show:
    - element-3

second:
  hide:
    - element-*
  show:
    - element-3

That config will generate two file with names first.svg and second.svg.

Available commands:

  • hide
  • show

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

svgout-0.1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

svgout-0.1.0-py3-none-any.whl (3.9 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