Print python objects like a boss
Project description
dumpit
List all python object attributes with descriptions
Installation
Works with python 3.x
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')
# Don't show dunder methods (magic methods)
pdumpit(my_object, all_=False)
Changelog
0.4.1
Fixed
- dunder methods description formatting and new lines.
0.4.0
Added:
- Descriptions for every objects attribute.
- Separate dunders from other attributes.
0.3.0
Added:
- 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:
- 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.4.1.tar.gz
(6.2 kB
view hashes)