A quick thumbnail creator for python codes
Project description
Py-thumbnail
What is Py-thumbnail?
Py-thumbnail is a quick thumbnail creator for python codes. You can get an overview of the available functions, for/while loops and if conditions without even running the code.
Suppose you have the following python file:
class someclass:
def __init__(self):
self.a = 10
def do_something(self):
for i in range(len(self.a)):
if i == 2:
print(i)
def do_something_else(self, num):
while self.a < 100:
self.a += num
Here is a small example to show what Py-thumbnail could do (Python 3):
from thumbnail import pythumbnail
file = pythumbnail('some_file.py')
file.scan()
print(file.tree)
The output will look like:
'File some_file.py()'
'class someclass()'
'def __init__(self)'
'def do_something(self)'
'for i in range(len(self.a))'
'if[i,2] LOGIC: [==]'
'def do_something_else(self,num)'
'while[self.a,100] LOGIC: [<]'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pythumbnail-0.0.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for pythumbnail-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0553575c08a00a7fa50e1d13a14440403e45e14d0df769c5a22bc87f3cd8396e |
|
MD5 | c1a056b3bdbfbc640edcc6fffe160ec3 |
|
BLAKE2b-256 | e1bb515287451fee6a4f760390e13bc2015c1fa1319e71179aa48b4febae4985 |