Skip to main content

Print python objects like a boss

Project description

dumpit

Print python objects like a boss

PyPI version Build Status GitHub GitHub last commit

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')

CHANGELOG

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


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.3.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file dumpit-0.3.0.tar.gz.

File metadata

  • Download URL: dumpit-0.3.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for dumpit-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f632f02b860cb547240c3a2e11df0ee391a650f8652031233d8eac4e71f1bbaa
MD5 a8da199cdbf0cbff015ba0b6ec00723d
BLAKE2b-256 e726e3f5fbccf603a324c73f0f72a8f06360f9ecd43756c289741338d555f6c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page