Skip to content

true-grue/astdot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

astdot

Simple Python AST visualizer

Examples:

import astdot

print(astdot.source_to_dot('2 + 2'))

import astdot


def skip_ctx(name, value):
    return astdot.skip(name, value) or name == 'ctx'


src = '''
for i in range(3):
    x  = i * 2
    print(x)
'''

ROUNDED = astdot.STY + 'node [style="filled,rounded"]'
print(astdot.source_to_dot(src, skip=skip_ctx, style=ROUNDED))

About

Simple Python AST visualizer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages