outspect

Python Boilerplate contains all the boilerplate you need to create a Python package.


Keywords
outspect, forhumans, inspect, introspection, python
License
MIT
Install
pip install outspect==0.1.0

Documentation

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.