https://github.com/hvnsweeting/outspect
Python inspect for Humans :beer:
https://github.com/hvnsweeting/outspect
forhumans inspect introspection python
Last synced: 4 months ago
JSON representation
Python inspect for Humans :beer:
- Host: GitHub
- URL: https://github.com/hvnsweeting/outspect
- Owner: hvnsweeting
- License: mit
- Archived: true
- Created: 2017-11-20T16:44:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T20:27:25.000Z (over 3 years ago)
- Last Synced: 2025-09-28T23:22:47.236Z (8 months ago)
- Topics: forhumans, inspect, introspection, python
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
========
outspect: inspect for Humans
========
.. image:: https://img.shields.io/pypi/v/outspect.svg
:target: https://pypi.python.org/pypi/outspect
.. image:: https://img.shields.io/travis/hvnsweeting/outspect.svg
:target: https://travis-ci.org/hvnsweeting/outspect
.. image:: https://readthedocs.org/projects/outspect/badge/?version=latest
:target: https://outspect.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/hvnsweeting/outspect/shield.svg
:target: https://pyup.io/repos/github/hvnsweeting/outspect/
:alt: Updates
Better `inspect` for Python.
* Free software: MIT license
* Documentation: https://outspect.readthedocs.io.
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', '', '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.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage