Skip to main content

Viz Isabelle ⟨l, a, r⟩ graphs

Project description

draw-isabelle

Quick visualization tool for nested Isabelle trees which are defined by the angle brace Isabelle syntax ⟨l, a, r⟩.

Install and usage

$ pip install draw-isabelle
$ draw-isabelle '⟨⟨⟨⟨⟩, a, ⟨⟩⟩, a, ⟨⟨⟩, a, ⟨⟩⟩⟩, a, ⟨⟨⟩, a, ⟨⟩⟩⟩'

will output

          ________a___
         /            \
     ___a___          _a
    /       \        /  \
  _a        _a      ⟨⟩   ⟨⟩
 /  \      /  \
⟨⟩   ⟨⟩   ⟨⟩   ⟨⟩

Contributing

Please open PR's with fixes and code improvements; could be cool to also support the Node/Leaf syntax or maybe other useful structures.

Code is also pretty untested so please LMK with breaking examples.

Might also make sense to code the ASCII tree representation in this repo to remove the binarytree dependency.

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

draw-isabelle-0.0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

draw_isabelle-0.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file draw-isabelle-0.0.2.tar.gz.

File metadata

  • Download URL: draw-isabelle-0.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.14

File hashes

Hashes for draw-isabelle-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2ad73dc5012505fa3c55493cbe08c6262fa2c1be58362641d0898137aced11aa
MD5 0f3f530ca4d7d19f621627bebdc0936c
BLAKE2b-256 00714cd316c88b724bcf6c2700b58f78c448d5c224655ef6ae276d736eeac290

See more details on using hashes here.

File details

Details for the file draw_isabelle-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for draw_isabelle-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4afe420e6bb515158e1aec385e94cb4bd0feec7bd9421faee735330bab1948bf
MD5 4570ddbb380b135e566357efc618eec5
BLAKE2b-256 3ff040b2f0d53ef6c3b7c0a356f4d11fa1d7b26a9ca6f0bbee2c2652f3893875

See more details on using hashes here.

Supported by

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