Skip to main content

List the members in a Object[also Class or Module].

Project description

objexp

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

The reader is supported on Python 3.7 and above.

How to use

There is only 1 function: ox(), with 2 parameters, savefile, ifprint

if you want to save the result to a txt file, give the string of file path to save to parameter savefile, which defult value is None.

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)

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

objexp-1.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

objexp-1.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file objexp-1.0.1.tar.gz.

File metadata

  • Download URL: objexp-1.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.13

File hashes

Hashes for objexp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 02ba0c26a651f1e252fd1555ea410df17deccf32ebb95fb21a38282437762f8f
MD5 db3b6e6c48102b99f03aefe257b640f7
BLAKE2b-256 8f6598cfe340d880e4d2815f063238ee721298097772764cce1d64f2f6430b23

See more details on using hashes here.

File details

Details for the file objexp-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: objexp-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.13

File hashes

Hashes for objexp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 611fefedb483bb4fc7b7395e07d2978b954d85c6706ca466b662811f42ee0fdb
MD5 fc64535037433144b18a6cbc01bb7724
BLAKE2b-256 e8d5041111dee609e90a046d338b4907afa1183e1f39f21a7e5eac26e13942ed

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