Skip to main content

Extensions for Python inspect module.

Project description

Extending Python inspect module to users and developers to get information about packages, modules, classes and other members. Working on Python 3.8+.

Installing, updating and uninstalling

To install and/or update, do

$ pip install -U inspect-extensions

To remove

$ pip uninstall inspect-extensions

Running

To get a minimalist output

$ inspect-extensions

Examples from v0.1

Help

$ inspect-extensions --help
usage: inspect_extensions.py [-h]
    [--colored COLORED] [--filter FILTER]
    [-p PACKAGES] [-m MODULES]
    [-c CLASSES] [-t METHODS] [-f FUNCTIONS] [-d DATA]
    [-a ALL_MEMBERS]
    [-b PUBLIC] [-o PROTECTED] [-i PRIVATE]
    [--encapsulation ENCAPSULATION] [-e ALL_ENCAPSULATION]
    [--count_members COUNT_MEMBERS] [--text_only TEXT_ONLY]
    [--special_classes SPECIAL_CLASSES]
    [--special_methods SPECIAL_METHODS]
    [--special_data SPECIAL_DATA]
    [--remove_special_classes REMOVE_SPECIAL_CLASSES]
    [--remove_special_methods REMOVE_SPECIAL_METHODS]
    [--remove_special_data REMOVE_SPECIAL_DATA]
    [--remove_special_members REMOVE_SPECIAL_MEMBERS]
    obj

Inspect Extensions module.

Python script that uses many modules from Python to exposes
as many information that is possible to inspect packages.

positional arguments:

obj                   Input object (package, module, class)

optional arguments:

-h, --help            Show this help message and exit
--count_members       Shows the number of members
--colored             Print colored members
--text_only           Print just text characters - not colorized

--filter FILTER       [PACKAGE, MODULE, CLASS, METHOD, DATA, ALL]

-p PACKAGES, --packages PACKAGES
    Show just packages
-m MODULES, --modules MODULES
    Show just modules
-c CLASSES, --classes CLASSES
    Show just classes
-t METHODS, --methods METHODS
    Show just methods, must have 'self' as first arg
-f FUNCTIONS, --functions FUNCTIONS
    Show just functions, not associated with any object
-d DATA, --data DATA
    Show just data, variables
-a ALL_MEMBERS, --all_members ALL_MEMBERS
    Show all members (DEFAULT)(packages, modules, classes, methods, functions, data)

--encapsulation ENCAPSULATION [NONE, PUBLIC, PROTECTED, PRIVATE, ALL]

-b PUBLIC, --public PUBLIC
    Show just public members (DEFAULT)
-o PROTECTED, --protected PROTECTED
    Show just protected members
-i PRIVATE, --private PRIVATE
    Show just private members
-e ALL_ENCAPSULATION, --all_encapsulation ALL_ENCAPSULATION
    Show all encapsulation

--special_classes SPECIAL_CLASSES
    Print special classes, '__' before and after name
--special_methods SPECIAL_METHODS
    Print special methods, '__' before and after name
--special_data SPECIAL_DATA
    Print special data, '__' before and after name

--remove_special_classes REMOVE_SPECIAL_CLASSES
    Filter special classes, see special_classes
--remove_special_methods REMOVE_SPECIAL_METHODS
    Filter special methods, see special_methods
--remove_special_data REMOVE_SPECIAL_DATA
    Filter special data, see special_data
--remove_special_members REMOVE_SPECIAL_MEMBERS
    Filter special members, see special_members

--version
    Show program's version number and exit

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inspect-extensions-0.1.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

inspect_extensions-0.1.2-py3.10.egg (13.2 kB view details)

Uploaded Egg

inspect_extensions-0.1.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file inspect-extensions-0.1.2.tar.gz.

File metadata

  • Download URL: inspect-extensions-0.1.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for inspect-extensions-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f9117e227e8ee9815eb03d0308b9e2b3b0c33a904344ea6ba28b0596e8fe6951
MD5 9be906a0e7e2962bce22668efcb62f7a
BLAKE2b-256 b6081bcf362d8df2f17899d66bdf912a5a82e36ebb6a6abad85df86e5cc05efa

See more details on using hashes here.

File details

Details for the file inspect_extensions-0.1.2-py3.10.egg.

File metadata

  • Download URL: inspect_extensions-0.1.2-py3.10.egg
  • Upload date:
  • Size: 13.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for inspect_extensions-0.1.2-py3.10.egg
Algorithm Hash digest
SHA256 f5f9ac27e7f029079620db55cbe6db4bc0e8a5d0194f7d6aa27c1874dc5fec37
MD5 1ff5d5beacecc4ca6cec0bc61458f12b
BLAKE2b-256 f31d25614896003cb865cdef1e449f550cda719dbd1cb9878e2d1cdda947afda

See more details on using hashes here.

File details

Details for the file inspect_extensions-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: inspect_extensions-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for inspect_extensions-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b63a54ccdf36e1e26b52970f05fc8d472bf44752f042bac5239c7ec1bec6da5
MD5 e51bd1c9f34ed1f575ed8c0dc9bd8b32
BLAKE2b-256 dc73abfe98c04932a07525ab1c3a20be4e2a7c18694613f7e96fee43310a7ff9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page