Skip to content

ramalho/drawtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Draw tree diagrams

This repository contains two very different scripts to make hierarchical tree diagrams like this one:

$ ./classtree.py collections.abc.Container
Container
└── Collection
    ├── Set
    │   ├── MutableSet
    │   ├── KeysView
    │   │   └── _OrderedDictKeysView
    │   └── ItemsView
    │       └── _OrderedDictItemsView
    ├── Mapping
    │   └── MutableMapping
    │       ├── _Environ
    │       ├── ChainMap
    │       └── UserDict
    ├── ValuesView
    │   └── _OrderedDictValuesView
    └── Sequence
        ├── ByteString
        ├── MutableSequence
        │   └── UserList
        └── UserString

Please see the README.md files in each directory:

I wrote the scripts at different times. They illustrate different approaches to the same basic problem. classtree.py is much simpler.

About

Draw tree diagrams from indented text input or Python class objects.

Resources

License

Stars

Watchers

Forks

Languages