Skip to content

Simple script to convert CSV file into SVG grid

License

Notifications You must be signed in to change notification settings

Ordoviz/svg-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svg-grid.py

Simple Python script to convert a CSV file into a SVG grid with uniformly-sized cells.

rectangular grid where every cell contains two characters

usage:

usage: svg-grid.py [-d DELIMITER] [--margin MARGIN] [--line-width LINE_WIDTH] [--line-color LINE_COLOR]
                   [--cell-width CELL_WIDTH] [--cell-height CELL_HEIGHT] [--font-size FONT_SIZE]
                   [--font-family FONT_FAMILY] [-o OUT_FILE]
                   [filename]

positional arguments:
  filename              CSV file. Defaults to standard input

options:
  -d DELIMITER, --delimiter DELIMITER
                        character separating input fields
  --margin MARGIN       margin around SVG grid in px
  --line-width LINE_WIDTH
                        width of grid lines in px
  --line-color LINE_COLOR
                        color of grid lines
  --cell-width CELL_WIDTH
                        width of table cells in px
  --cell-height CELL_HEIGHT
                        height of table cells in px
  --font-size FONT_SIZE
  --font-family FONT_FAMILY
  -o OUT_FILE, --output OUT_FILE
                        Output file. Defaults to standard output

About

Simple script to convert CSV file into SVG grid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages