Command line tool that parses python file, enumerates classes and methods as a tree structure.
Project description
pytl
====
[![0.2.4](https://img.shields.io/badge/pypi-0.2.4-brightgreen.svg)](https://pypi.python.org/pypi/pytl/)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](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)
====
[![0.2.4](https://img.shields.io/badge/pypi-0.2.4-brightgreen.svg)](https://pypi.python.org/pypi/pytl/)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](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.
Source Distribution
pytl-0.2.4.tar.gz
(2.9 kB
view details)
Built Distribution
pytl-0.2.4-py3-none-any.whl
(4.9 kB
view details)
File details
Details for the file pytl-0.2.4.tar.gz
.
File metadata
- Download URL: pytl-0.2.4.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8507e2590ea56c83eb852c143d0f13c370510343f7e83c176d4644a5efb3154 |
|
MD5 | 5451dffcf49a5e2e3b265c05884c22ef |
|
BLAKE2b-256 | 0d6c1a741e2c95a9e280ddfad7a94c724e6aac2e469ddcd4d12a6aa70bac0350 |
File details
Details for the file pytl-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: pytl-0.2.4-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 202550d03982dcabfe1531d7e7d19f49ae8775ac24577298d1925ab9e65595d6 |
|
MD5 | cea9dd47696714dc9eb4502e01169452 |
|
BLAKE2b-256 | 253dd21e5d613ee1aaafcbfb1235e04c29a9b73a2633d4dac403cf296cc5bf64 |