Skip to main content

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

The reader 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

objexp-1.0.2.tar.gz (5.8 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.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: objexp-1.0.2.tar.gz
  • Upload date:
  • Size: 5.8 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.2.tar.gz
Algorithm Hash digest
SHA256 134285951c8692267b0636e392e8abdae386e0e9c0d396ad908f77d4ef445897
MD5 466ee5e67759b29594eea90474a673b2
BLAKE2b-256 9827100c41dd941993adfb47815adb77f7c58a24f602d37de643402da2cb0bb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: objexp-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b4e973388a1332717de57edbd731ea6c642c38459407425ff294a8ff97c5c3e9
MD5 adb71996fd30807fb7e6528cbbf333d3
BLAKE2b-256 456f5a7e722b28abc4e243942b0ce77d83530e0b79de636a7466fa81446ca585

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