Skip to main content

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

Metadata

Release files for svgout 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for svgout 0.1.0
File Size Uploaded Provenance Actions
svgout-0.1.0.tar.gz 3.5 kB Without provenance Details for svgout-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for svgout 0.1.0
File Interpreter ABI Platform Actions
svgout-0.1.0-py3-none-any.whl Python 3 none any Details for svgout-0.1.0-py3-none-any.whl

Total release size: 7.4 kB

Release files / svgout-0.1.0.tar.gz

Download URL svgout-0.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2729ce4b516dcfc83b57fff6722f6e17589cd32d1c87d0689879888d8ca8908f
BLAKE2b-256 checksum
How to use checksums
f975d64c24cc04287b1e684c11b58fdfeda2e25c7b742351fb5e5098e7317cf2
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / svgout-0.1.0-py3-none-any.whl

Download URL svgout-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
507e051140206ca26983b63baa2e87b00ac28319f82823b453a7c84f156a8047
BLAKE2b-256 checksum
How to use checksums
e4013318a149749d97eb6617972932b675b3365cebdb56a3207b01d89d5b716e
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for svgout 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page