Prints function calls of the Python program
Project description
# PyTracer
Prints function calls of the Python program.
$ cat example.py
def f(a):
return g(a, "20")
def g(a, b):
return b, a
f(10)
$ pytracer example.py
>example.<module>()
>example.f(10)
>example.g(10, '20') = ('20', 10)
<example.f(10) = ('20', 10)
<example.<module>() = None
## Installing ##
`pip install pytracer`
## Usage ##
pytracer.py [-h] [-s S] [-i I] [-f F] filename ...
positional arguments:
filename a name of the Python program
optional arguments:
-h, --help show this help message and exit
-s S max argument length to print (the default is 32)
-i I modules to ignore (comma delimited, the default is
re,glob,random,codecs,argparse)
-f F modules to focus at (comma delimited)
Prints function calls of the Python program.
$ cat example.py
def f(a):
return g(a, "20")
def g(a, b):
return b, a
f(10)
$ pytracer example.py
>example.<module>()
>example.f(10)
>example.g(10, '20') = ('20', 10)
<example.f(10) = ('20', 10)
<example.<module>() = None
## Installing ##
`pip install pytracer`
## Usage ##
pytracer.py [-h] [-s S] [-i I] [-f F] filename ...
positional arguments:
filename a name of the Python program
optional arguments:
-h, --help show this help message and exit
-s S max argument length to print (the default is 32)
-i I modules to ignore (comma delimited, the default is
re,glob,random,codecs,argparse)
-f F modules to focus at (comma delimited)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
pytracer-0.0.1-py3.7.egg
(5.7 kB
view hashes)
pytracer-0.0.1-py3.5.egg
(5.7 kB
view hashes)
Close
Hashes for pytracer-0.0.1-py35-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83557c41bf37bbed987982ea7c00cba63eceb3eaec0b8ff31b74fafd0500d2cc |
|
MD5 | 99854cb7adcbe78052e7d5b32db8630a |
|
BLAKE2b-256 | b628651a6b481ba99d05674738ab6f13366a5139e9e5cded83f374aa2e4e4ef2 |