py-d2 icon indicating copy to clipboard operation
py-d2 copied to clipboard

More examples are needed

Open mjbright opened this issue 3 months ago • 0 comments

Description

The README has only one very simple example of using py-d2.

Although the "Supported Features" list helps know what is available it would greatly help to have at least a simple example of each usage.

A more complete example would also be useful

Why

I had to use grep on the source code to see if tooltip was implemented.

I couldn't see how to modify the "shape" of a D2Shape - probably very simple.

Basically, having some examples will

  • help people who want to use the module
  • sell the module

Alternatives

I experimented with d2 to prototype an application and then tried to implement using py-d2 which seems to be missing features I need and lacking examples of other features.

For the moment I've ended up writing a Python wrapper around the d2 binary, but I'd prefer to go with py-d2 when it has examples, is more feature complete wrt d2.

mjbright avatar Aug 24 '25 07:08 mjbright