Skip to main content

data structure diagram generator

Project description

data structure diagram generator

installation

download graphviz

pip install dsdiagram

quick start

save image

from dsdiagram import save_img


class Node:

  def __init__(self, id, next=None):
    self.id = id
    self.next = next


n = 5
nodes = [Node(id) for id in range(n)]
head = nodes[0]

for id in range(n):
  nodes[id].next = nodes[(id + 1) % n]

save_img(head, 'linked-list')

linked-list.png

render diagram in jupyter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dsdiagram-0.0.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dsdiagram-0.0.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file dsdiagram-0.0.3.tar.gz.

File metadata

  • Download URL: dsdiagram-0.0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for dsdiagram-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d137bf0ee717f27f3bf4c874b57ba59cf39a9079b796abc5989eb3a6beeb9209
MD5 713d40a34c511f2ae893c351fd60baeb
BLAKE2b-256 557060b5e8d90465aa8e609a98739e99dfae078f36a4e9832d0a5dbf5c9854c1

See more details on using hashes here.

File details

Details for the file dsdiagram-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: dsdiagram-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for dsdiagram-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 19e3767f1602b03b2c9d99913df9923dc698cf77940371200368bbdf95a0f44f
MD5 81f7a5409ce086b7349c9a555be8b2b3
BLAKE2b-256 97db8c7e7908ac73b18db1235eef43dfec23850604a3b92c0e98fc5183378401

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page