A tool that help live debugging
Project description
easy-terminal
A library that help you to debug the code in terminal
Getting started
Installation
pip install easy-terminal
Require easy-events>=2.2.0
GitHub : Github
Usages
Add the @terminal() before the function you want to try in the terminal
Code example
from easy_terminal import terminal
class A:
nb = 1
def __init__(self, nb=5):
self.nb = nb
@terminal()
def hello(self):
print("world", self.nb, "\n")
a = A(6)
@terminal()
def hello():
print("world\n")
@terminal()
def pc(processor: str = "intel", ram: str = "8go"):
print(f"processor: {processor}\nram : {ram}\n")
"""
>hello
world
>A.hello
world 1
>a.hello
world 6
>pc
processor: intel
ram : 8go
>pc amd
processor: amd
ram : 8go
>pc amd 16go
processor: amd
ram : 16go
"""
This lib make you run python function in a terminal
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
easy-terminal-0.3.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for easy_terminal-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e4726c859d6a610f73db96e22eb94e91cf26f5e53d3b81a9670ab84386b92bf |
|
MD5 | af533b5b69a0e188cb25fe2f258e5ec2 |
|
BLAKE2b-256 | 1dcd142c556a3e2cfbac8417aa6f3ecdf69b95a71c005576ecb3847914250713 |