Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

hvnsweeting/outspect

Repository files navigation

outspect: inspect for Humans

Documentation Status Updates

Better inspect for Python.

Install

pip install outspect

Usage

Best used for interactive discovery:

In []: from outspect import *

In []: import django

In []: import django.http

In []: classes(django.http)
Out[]: ['BadHeaderError', 'FileResponse', 'Http404', 'HttpRequest', 'HttpResponse', 'HttpResponseBadRequest', 'HttpResponseForbidden', 'HttpResponseGone', 'HttpResponseNotAllowed', 'HttpResponseNotFound', 'HttpResponseNotModified', 'HttpResponsePermanentRedirect', 'HttpResponseRedirect', 'HttpResponseServerError', 'JsonResponse', 'QueryDict', 'R11awPostDataException', 'SimpleCookie', 'StreamingHttpResponse', 'UnreadablePostError']

In []: import logging

In []: pub_funcs(logging)
Out[]: ['addLevelName', 'basicConfig', 'captureWarnings', 'critical', '<lambda>', 'debug', 'disable', 'error', 'exception', 'critical', 'getLevelName', 'getLogRecordFactory', 'getLogger', 'getLoggerClass', 'info', 'log', 'makeLogRecord', 'setLogRecordFactory', 'setLoggerClass', 'shutdown', 'warn', 'warning']

In []: constants(logging)
Out[]: ['BASIC_FORMAT', 'CRITICAL', 'DEBUG', 'ERROR', 'FATAL', 'INFO', 'NOTSET', 'WARN', 'WARNING', '_STYLES']

Features

  • Inspecting objects, modules, classes ...

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Releases

No releases published

Packages

No packages published