Skip to main content

get_module_underlying

Explore Python modules deeper than dir().

Installation

pip install get_module_underlying

Usage

import get_module_underlying as explorer

# Get all attributes (excluding __xxx__)
print(explorer.get_all_attrs())

# Get only public attributes
print(explorer.get_public_attrs())

# Get private attributes (single underscore)
print(explorer.get_private_attrs())

# Get dunder attributes (__xxx__)
print(explorer.get_dunder_attrs())

# Get callable methods/functions
print(explorer.get_callable_attrs())

# Get non-callable attributes (variables, constants)
print(explorer.get_non_callable_attrs())

# Get attributes with their values
print(explorer.get_attrs_with_values())

# Get attributes with their types
print(explorer.get_attrs_with_types())

# Get all classes
print(explorer.get_classes())

# Get all functions
print(explorer.get_functions())

# Get all builtins
print(explorer.get_builtins())

# Get all submodules
print(explorer.get_modules())

# Get detailed module info
print(explorer.get_module_info())

# Get statistics summary
print(explorer.get_stats())

# Get Python system info
print(explorer.get_sys_info())

# Get module file info
print(explorer.get_file_info())

Methods Reference

Method Return Type Description
get_all_attrs() list All attributes except dunder (__xxx__)
get_public_attrs() list Attributes not starting with _
get_private_attrs() list Attributes with single _ prefix
get_dunder_attrs() list Dunder attributes (__xxx__)
get_callable_attrs() list Callable functions/methods
get_non_callable_attrs() list Non-callable variables/constants
get_attrs_with_values() dict Attribute names with their values
get_attrs_with_types() dict Attribute names with their types
get_classes() list All classes in the module
get_functions() list All functions in the module
get_builtins() list All built-in functions
get_modules() list All submodules imported
get_module_info() dict Module metadata (name, file, doc, etc.)
get_stats() dict Statistical summary of all attributes
get_sys_info() dict Python system information
get_file_info() dict Module source file information

Dependencies

  • Python 3.6+
  • absent library (automatically installed)

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

get_module_underlying-1.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

get_module_underlying-1.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: get_module_underlying-1.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.12.1.2 readme-renderer/43.0 requests/2.32.4 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.68.4 importlib-metadata/8.5.0 keyring/25.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.8.5

File hashes

Hashes for get_module_underlying-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fbe3fc6e5e057ce8fddb8932f49a4c0b77bf040d4aef5ec0309e9c748d8c5d82
MD5 7b1c895b5e1648d9a111962bd15f68d2
BLAKE2b-256 da37b88e7e38b8d14eefa7f24d926094136758ac19d695eb72576a11869a6929

See more details on using hashes here.

File details

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

File metadata

  • Download URL: get_module_underlying-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.12.1.2 readme-renderer/43.0 requests/2.32.4 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.68.4 importlib-metadata/8.5.0 keyring/25.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.8.5

File hashes

Hashes for get_module_underlying-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f7a7e5aa915f968f539e6cd5f967a0062b622a36f499ba08b655b37457740a7
MD5 844d80fad2374745660394b8234fb74b
BLAKE2b-256 6a8cd8ab4331652d7f80f650ba88c6af66cd65a67f99d2e86ed8da7427ce3eb1

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

This release

1.0.1 This release

2 files

1.0.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page