Command line tool that parses python file, enumerates classes and methods as a tree structure.
Project description
pytl
====
[](https://pypi.python.org/pypi/pytl/)
[](https://github.com/ryo-ma/pytl/blob/master/LICENSE)
## Overview
Command line tool that parses python file, enumerates classes and methods as a tree structure.
## Usage
``` bash
$ pytl test.py
2: class Test
3: |_def __init__(self)
6: |_def walk(self, distance)
9: |_def stop(self)
12: def method1()
13: |_def method2()
14: |_def method3()
15: |_def method4()
18: def main()
```
Show only the def line
``` bash
$ pytl test.py -d
3: def __init__(self)
6: def walk(self, distance)
9: def stop(self)
12: def method1()
13: |_def method2()
14: |_def method3()
15: |_def method4()
18: def main()
```
Show only the class line
``` bash
$ pytl test.py -c
2: class Test
```
## Install
``` bash
$ pip install pytl
```
## Licence
[MIT](https://github.com/ryo-ma/pytl/blob/master/LICENSE)
====
[](https://pypi.python.org/pypi/pytl/)
[](https://github.com/ryo-ma/pytl/blob/master/LICENSE)
## Overview
Command line tool that parses python file, enumerates classes and methods as a tree structure.
## Usage
``` bash
$ pytl test.py
2: class Test
3: |_def __init__(self)
6: |_def walk(self, distance)
9: |_def stop(self)
12: def method1()
13: |_def method2()
14: |_def method3()
15: |_def method4()
18: def main()
```
Show only the def line
``` bash
$ pytl test.py -d
3: def __init__(self)
6: def walk(self, distance)
9: def stop(self)
12: def method1()
13: |_def method2()
14: |_def method3()
15: |_def method4()
18: def main()
```
Show only the class line
``` bash
$ pytl test.py -c
2: class Test
```
## Install
``` bash
$ pip install pytl
```
## Licence
[MIT](https://github.com/ryo-ma/pytl/blob/master/LICENSE)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pytl-0.2.4-py3-none-any.whl (4.9 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size pytl-0.2.4.tar.gz (2.9 kB) | File type Source | Python version None | Upload date | Hashes View |