Skip to main content
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)




Release files for pytl 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytl 0.2.4
File Size Uploaded
pytl-0.2.4.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytl 0.2.4
File Interpreter ABI Platform
pytl-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size:7.8 kB

Release files / pytl-0.2.4.tar.gz

Download URL pytl-0.2.4.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e8507e2590ea56c83eb852c143d0f13c370510343f7e83c176d4644a5efb3154
BLAKE2b-256 checksum
How to use checksums
0d6c1a741e2c95a9e280ddfad7a94c724e6aac2e469ddcd4d12a6aa70bac0350
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pytl-0.2.4-py3-none-any.whl

Download URL pytl-0.2.4-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
202550d03982dcabfe1531d7e7d19f49ae8775ac24577298d1925ab9e65595d6
BLAKE2b-256 checksum
How to use checksums
253dd21e5d613ee1aaafcbfb1235e04c29a9b73a2633d4dac403cf296cc5bf64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

1 release file

0.2.1

2 release files

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page