Python 检查模块的扩展。
项目描述
将 Python检查模块扩展到用户和开发人员,以获取有关包、模块、类和其他成员的信息。使用 Python 3.8+。
安装、更新和卸载
要安装和/或更新,请执行
$ pip install -U inspect-extensions
去除
$ pip uninstall inspect-extensions
跑步
获得极简输出
$ inspect-extensions
v0.1 中的示例
帮助
$ 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
项目详情
关
inspect_extensions -0.1.2-py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 8b63a54ccdf36e1e26b52970f05fc8d472bf44752f042bac5239c7ec1bec6da5 |
|
| MD5 | e51bd1c9f34ed1f575ed8c0dc9bd8b32 |
|
| 布莱克2-256 | dc73abfe98c04932a07525ab1c3a20be4e2a7c18694613f7e96fee43310a7ff9 |