Skip to main content

Print python objects like a boss

Project description

dumpit

List all python object attributes with descriptions

PyPI version Build Status Codacy Badge

GitHub issues GitHub closed issues GitHub closed pull requests

PyPI - Python Version GitHub GitHub last commit

Terminal view

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


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

Uploaded Source

Built Distribution

dumpit-0.6.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dumpit-0.6.0.tar.gz
  • Upload date:
  • Size: 7.0 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.7.1

File hashes

Hashes for dumpit-0.6.0.tar.gz
Algorithm Hash digest
SHA256 330af0a466aee1a6a572015e6e63afc01b599148d7fa44292b0933c2a4ff93db
MD5 24c2a1351b17f342973cede97f67a6b4
BLAKE2b-256 4ab28b144da2adfa728c594b487f1accd27d8e874b9e5c082025f692cbda76a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dumpit-0.6.0-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.7.1

File hashes

Hashes for dumpit-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 560eed885c943aa0b6f07301f84dce8b93fc2c0fb2e51e8303b123ef55aca6c8
MD5 3333522e1dfb28d78b972bb0c23adbae
BLAKE2b-256 ef134bc6657ec2996dc3dce3201a481d8ec26980cf2daf1a43e09e80dfb2d593

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