pip install dotpytree>>> 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 greetdotpytree -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