Socket
Socket
Sign inDemoInstall

grid2fp

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grid2fp

A tool to eat grid diagrams and generate its front projection.


Maintainers
1

Readme

grid2fp

A tool to eat grid diagrams and generate its front projections.

Disclaimer

The tool is lightly tested. I would expect bugs and strange behavior. If you find something make an issue.

Installation

Install with pip:

pip install grid2fp

Usage

CLI

Doesn't exist.

Scripting

from grid2fp import grid2fp
import drawsvg as draw



csv_path = "path"
svg_path = "path"

diagram = [["x","","o"],["","",""],["o","","x"]]


# Option 1

g = grid2fp(csv_file=csv_path,draw_crossings=False)
d = g.draw()
d.save_svg(svg_path)

# Option 2
grid2fp(csv_file=csv_path, out_file=svg_path)

# Option 3

g = grid2fp(diagram=diagram)
d = g.draw()
d.save_svg(svg_path)

# Option 4

g = grid2fp(csv_file=csv_path,string_color = "pink", crossing_color="purple")
d = g.draw()
# make some changes to d with drawsvg
d.save_svg(svg_path)

Sample images

xo
xo
xo
ox
ox
xo
xo
xo
ox
xo
ox
ox
ox
xo
ox
xo
ox
xo

ToDo

  • CLI interface
  • fit canvas to drawing better.(still not perfect)
  • set string color
  • ???

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc