pip install dumpit
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)
- all_ parameter default value is now False
- code formatting
- Python 3 compatibility
- Dependency version changed: Click 6.7 -> Click 7.0
- Dunder methods description formatting and new lines.
- Descriptions for every objects attribute.
- Separate dunders from other attributes.
- 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.
- Coloring support: Terminal colors for object attributes.