List the members in a Object[also Class or Module].
Project description
objxp
a util for python beginner.
objxp is a util to check what members in a object or Class or module imported.
Installation
You can install objxp from PyPI:
pip install objxp
objxp 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 "./objxp.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.
Usage Example
example.py
from objxp import ox
ox(print,savefile:str,ifprint:bool)
output
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
Release history Release notifications | RSS feed
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 objxp-1.tar.gz.
File metadata
- Download URL: objxp-1.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bf72676f5f8fd24358b338e079380518a0f998f112cbb9cc9902da5b80dd776
|
|
| MD5 |
39a0849b3a56fad1c9550bcac8e6f00e
|
|
| BLAKE2b-256 |
f2fdd119cf1038106968c3821b7f54d74570d33f66d0d2aba4ed2f17ec15c0f5
|
File details
Details for the file objxp-1-py3-none-any.whl.
File metadata
- Download URL: objxp-1-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b26e3acaa14874eb0c47d7310d7421372e8a704d45a453b82391b72b48251b93
|
|
| MD5 |
49e7e1b4526ee311fcc02706cacf3a29
|
|
| BLAKE2b-256 |
a3b766ef3d89cf9f45da8fafe889ea6cc22dd1ddf3aa3d5bbb386dfa4a741ec5
|