Skip to main content

Readable information for real people.

Project description

Helping

As my girlfriend's cat likes to say while knocking over my drink: "I'm HELPING!"

This library is dedicated to providing helpful information about Python objects. It's useful for everyone, but especially dedicated to those learning how to program.

This library is the result of teaching Python to thousands of students. Over time I found that the built-in dir() function was actively confusing to people learning Python, and I developed this library to help the students. Then I found myself using it for my own coding.

That's when I new I had something worthwhile.

The goal is "Readable information for real people."

info()

The primary method is helping.info(), which provides a readable summary of an object. It separates out the methods, attributes, classes, and exceptions, and perhaps most importantly, doesn't show private items unless requested.

To see private items, pass the argument private=True.

By default the items are listed vertically, which I've found to be most readable. If you'd like a more compact form, pass compact=True.

functions()

Shows any functions defined in the script, and all built-in Python functions.

methods()

Shows just the methods of the specified object.

attributes()

Shows just the attributes of the specified object.

classes()

Shows just the classes belonging to the specified object.

exceptions()

Shows just the exceptions belonging to the specified object.

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

helping-0.0.3.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

helping-0.0.3-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

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