Skip to main content

Print tree-style Python class/function outlines.

Project description

install

pip install dotpytree

usage

dotpytree testFile
๐Ÿ“ testFile

๐Ÿ“„ test00.py
โ”œโ”€โ”€ ๐Ÿ“ฆ def set_interface
โ”œโ”€โ”€ ๐Ÿ“ฆ def htonl
โ”œโ”€โ”€ ๐Ÿ“ฆ def htons
โ”œโ”€โ”€ ๐Ÿ“ฆ def getaddrinfo
โ”œโ”€โ”€ ๐Ÿ“ฆ def gethostbyname
โ”œโ”€โ”€ ๐Ÿ“ฆ def is_ipv4
โ”œโ”€โ”€ โ™พ๏ธ  class socket
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def __init__
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def __enter__
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def __exit__
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def socknum
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def status
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def connected
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def getpeername
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def inet_aton
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def bind
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def listen
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def accept
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ async def async_recv
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ async def async_accept
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def connect
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def send
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def sendto
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def recv
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def recvfrom
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def recv_into
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def recvfrom_into
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def readline
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def disconnect
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def close
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def available
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def settimeout
โ”‚   โ””โ”€โ”€ ๐Ÿ“ฆ def gettimeout

๐Ÿ“„ test01.py
โ”œโ”€โ”€ ๐Ÿ“ฆ async def async_hello_world
โ”œโ”€โ”€ โ™พ๏ธ  class AsyncHelloWorld
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def __init__
โ”‚   โ””โ”€โ”€ ๐Ÿ“ฆ async def greet
โ”œโ”€โ”€ ๐Ÿ“ฆ def sync_hello_world
โ”œโ”€โ”€ โ™พ๏ธ  class SyncHelloWorld
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฆ def __init__
โ”‚   โ””โ”€โ”€ ๐Ÿ“ฆ def greet

help

dotpytree -h
usage: dotpytree [-h] [--no-emoji] [--show-args] target

Print Python file/class/function tree.

positional arguments:
  target       Python file or folder to analyze

options:
  -h, --help   show this help message and exit
  --no-emoji   Disable emoji output
  --show-args  Show function arguments

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

dotpytree-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dotpytree-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file dotpytree-0.1.0.tar.gz.

File metadata

  • Download URL: dotpytree-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for dotpytree-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aebe78c5435ed3022f1529e9710cc682021a978a797f1fc14e438051a7b2b052
MD5 d7fb7338a88ad09feb68b5456b9e1bfc
BLAKE2b-256 f5344b3597c8229fe7ceb62eace35a16b81611b21bc6a5687cdd8b23bcc87047

See more details on using hashes here.

File details

Details for the file dotpytree-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dotpytree-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for dotpytree-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f19e819fe8c268f3eb8888878605f8fa32c8997585f1f84c27f6d7add5c95f0
MD5 beb746d832db0c694e8bb8590b835f39
BLAKE2b-256 5fa8a2274aa0e3f3533444ef09dadd85c133946cf3ee52946e07480c024fbc01

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page