Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.
/ svggloo Public archive

Perform a data-merge operation in an SVG file

License

Notifications You must be signed in to change notification settings

PeopleForBikes/svggloo

Repository files navigation

NOTE: This repository is no longer supported or updated by the BNA Mechanics team. If you wish to continue to develop this code yourself, we recommend you fork it.

Svggloo

ci Latest Version License Code of Conduct

Svggloo is a tool to perform a data-merge operation in an SVG file.

Quickstart

The tool expects the following inputs:

  • an SVG file to use as a template (see template details in the dedicated section below)
  • a data file with the same name as the template, but with a .csv extension. Each record in the data file will produce a new output.

Usage:

svggloo --field country --field state --field city --export \
  examples/quantifier/bike_lane_categories.svg

Specifics

Template

The template use the jinja2 syntax to perform replacements, therefore all variables in the template must be surrounded by {{}}, for instance {{name}}.

Data file

The data file must be a CSV file.

SVG Export

The SVG export is done using inkscape. If the program is not found ssvggloo will abort the operation.

About

Perform a data-merge operation in an SVG file

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages