Print python objects like a boss
Project description
dumpit
List all python object attributes with descriptions
Installation
pip install dumpit
Usage
from dumpit import pdumpit, fdumpit
my_object = ...
# Print object to standard output
pdumpit(my_object)
#Print object to standard output in vertical view
pdumpit(my_object, view_='vertical') # vertical | table
# Export object to string as text
my_var = fdumpit(my_object)
# Disable colors in terminal output
pdumpit(my_object, colors=False) # False | terminal
# Enable colors in string output
my_var = fdumpit(my_object, colors='terminal')
# Show dunder methods (magic methods)
pdumpit(my_object, all_=True)
Changelog
0.6.0
Fixed in 0.6.0
- all_ parameter default value is now False
- code formatting
0.5.0
Fixed in 0.5.0
- Python 3 compatibility
0.4.2
Fixed in 0.4.2
- Dependency version changed: Click 6.7 -> Click 7.0
0.4.1
Fixed in 0.4.1
- Dunder methods description formatting and new lines.
0.4.0
Added in 0.4.0
- Descriptions for every objects attribute.
- Separate dunders from other attributes.
0.3.0
Added in 0.3.0
- Analyse is now view.
- Table view support: Print object contents in table view in terminal.
- Warnings: Prints warnings in terminal if unknown coloring or view is used.
0.2.0
Added 0.2.0
- Coloring support: Terminal colors for object attributes.
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
dumpit-0.5.1.tar.gz
(6.5 kB
view details)
Built Distribution
File details
Details for the file dumpit-0.5.1.tar.gz
.
File metadata
- Download URL: dumpit-0.5.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c372c1e880ec8b90804a6aedb7ed8f0d720a78fe4c7d42080cb8720c64e0c57f |
|
MD5 | 3202f26dfd6136ee4fdbfb184cefead5 |
|
BLAKE2b-256 | 418214733937eb87b74ae891f1cf58ae7f0f5c1e65ddfdc68faeb05fe6e09567 |
File details
Details for the file dumpit-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: dumpit-0.5.1-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e4b291881e92555a72eb3f784015e5e77e32411e6746692a41f29037bc6c1d1 |
|
MD5 | 537af9d7ed330715d1109c49b24adf56 |
|
BLAKE2b-256 | 7a4596adedd4f09a99469a5990eb4a77bb80514ed71c548b7e66033210475fc2 |