List the members in a Object[also Class or Module].
Project description
objexp
a util for python beginner.
objexp is a util to check what members in a object or Class or module imported.
Installation
You can install objexp from PyPI:
pip install objexp
Objexp is supported on Python 3.7 and above.
How to use
There is only 1 function: ox(), with 2 parameters, savefile, ifprint
savefile: "md", "json" or "both", the result str will be saved into "./objexp.md(.json)", defult value is None.
ifprint: if you dont want to output result on screen, you could give a false value to ifprint, which defult value is true.
from objexp import ox
ox(print,savefile:str,ifprint:bool)
It will output the members of function print on the screen as below:
_________________________
<class 'builtin_function_or_method'>
<built-in function print>
_________________________
<class 'NoneType'>
__text_signature__,
<class 'builtin_function_or_method'>
__dir__, __format__, __init_subclass__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__,
<class 'method-wrapper'>
__call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __le__, __lt__, __ne__, __repr__, __setattr__, __str__,
<class 'module'>
__self__,
<class 'str'>
__doc__, __module__, __name__, __qualname__,
<class 'type'>
__class__,
"\n_________________________\n\n<class 'builtin_function_or_method'>\n\n<built-in function print>\n_________________________\n\n<class 'NoneType'>\n__text_signature__, \n\n<class 'builtin_function_or_method'>\n__dir__, __format__, __init_subclass__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__, \n\n<class 'method-wrapper'>\n__call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __le__, __lt__, __ne__, __repr__, __setattr__, __str__, \n\n<class 'module'>\n__self__, \n\n<class 'str'>\n__doc__, __module__, __name__, __qualname__, \n\n<class 'type'>\n__class__, \n"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file objexp-1.0.3.tar.gz.
File metadata
- Download URL: objexp-1.0.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dd8fb8afdbf4c0909bd67d3ff39c57647cbbe7b07ea5a150dfc2e62b33135bb
|
|
| MD5 |
1467c3e21ce2c4c57d68ee26c4caf83c
|
|
| BLAKE2b-256 |
8b8692f64f501f6397610aa3bf5db7efcd7f2a27dc83b1a29c73953eb196980f
|
File details
Details for the file objexp-1.0.3-py3-none-any.whl.
File metadata
- Download URL: objexp-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb89e76497ff6f083763a952b7c1981c12311f80ee711faf13c9184681c94d68
|
|
| MD5 |
ee3727d657e8d52ecbf0c9aa324ca830
|
|
| BLAKE2b-256 |
792c9203a40acacf1ba14f56012acbb1bba490736f615a7988840268103ab90b
|