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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

svgout-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file svgout-0.1.0.tar.gz.

File metadata

  • Download URL: svgout-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for svgout-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2729ce4b516dcfc83b57fff6722f6e17589cd32d1c87d0689879888d8ca8908f
MD5 265071922bb0577807a1019b06c38078
BLAKE2b-256 f975d64c24cc04287b1e684c11b58fdfeda2e25c7b742351fb5e5098e7317cf2

See more details on using hashes here.

File details

Details for the file svgout-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: svgout-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for svgout-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 507e051140206ca26983b63baa2e87b00ac28319f82823b453a7c84f156a8047
MD5 ef49d995f34c3bbd8c7b5c0525fa771b
BLAKE2b-256 e4013318a149749d97eb6617972932b675b3365cebdb56a3207b01d89d5b716e

See more details on using hashes here.

Supported by

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