Skip to main content

Print python objects like a boss

Project description

dumpit

List all python object attributes with descriptions

PyPI version Build Status

GitHub issues GitHub closed issues GitHub closed pull requests

PyPI - Python Version GitHub GitHub last commit

Terminal view

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.5.0

Fixed

  • Python 3 compatibility

0.4.2

Fixed

  • Dependency version changed: Click 6.7 -> Click 7.0

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


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

Uploaded Source

Built Distribution

dumpit-0.5.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dumpit-0.5.0.tar.gz
  • Upload date:
  • Size: 6.4 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.1 CPython/3.5.6

File hashes

Hashes for dumpit-0.5.0.tar.gz
Algorithm Hash digest
SHA256 621afd564f8ed6ca32ba035af47cdad081d285c2c13c6841f248b2168f40c412
MD5 bed5264551cb83426e799f6fd76607c3
BLAKE2b-256 ae77d7f089c3562db4e7c0bdfbb81c90b82b609748ac15f9cbf8fcff45fd2aaf

See more details on using hashes here.

File details

Details for the file dumpit-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: dumpit-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.1 CPython/3.5.6

File hashes

Hashes for dumpit-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0993f7756116981ff5cc3147534df74fb5ade463917fb90ad725f59661749ea
MD5 46a5ab8eaeb14bed004403a15a22adea
BLAKE2b-256 b23800bbe1c9e012fffadb0e593ae737d73108e5e5fc0a0cdf9787fc945440c8

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