One-liner to analyze Python programs

The great benefit of knowing the command-line is being able to write scripts to analyze scripts, all in ~1 minute.

Add to your .bash_profile.

# get list of objects and functions in a python file
alias python_structure="perl -ne'print if /\\b(?<!:)(class|def)\\s/'"

Comments

żaden.

Add your voice

Module 'Phar' already loaded
The error has been logged in /anchor/errors.log
Uncaught Exception

Uncaught Exception

Module 'Phar' already loaded

Origin

on line 0

Trace

#0 [internal function]: System\Error::shutdown()
#1 {main}