For more information, you can check our documentation here: Documentation
First, you need to install our module
pip install shortprint
Then, you simply need to do the following in your code:
from shortprint import shortprint
from requests import Request
your_object = Request()
# Print a preview of the result of you function
# Without having hundred lines filled with text
shortprint(your_object)
And the result could be the following:
===== Shortprinting =====
Shortprinting the variable located at the following location:
File: test.py, at line 10
Variable Name: 'your_object'
=========================
requests.models.Request(
auth: None
cookies: None
data: List[]
files: List[]
headers: Dict[]
hooks: Dict[
(1) str: List[]
]
json: None
method: None
params: Dict[]
url: None
)
- Clone the repository
- Run the
make install-dev
command to install the development dependencies - Enjoy !