Skip to main content

Utilities for loading and inspecting Python submodules

Project description

k3modutil

Action-CI Documentation Status Package

Submodule Utilities.

k3modutil is a component of pykit3 project: a python3 toolkit set.

Submodule Utilities.

Install

pip install k3modutil

Synopsis

import k3modutil
import pykit

k3modutil.submodules(pykit)
# {
#    'modutil': <module> pykit.modutil,
#    ... ...
# }

k3modutil.submodule_tree(pykit)
# {
#    'modutil': {'module': <module> pykit.modutil,
#                'children': {
#                            'modutil': {
#                                    'module': <module> pykit.modutil.modutil,
#                                    'children': None,
#                                    },
#                            'test': {
#                                    'module': <module> pykit.modutil.test,
#                                    'children': {
#                                        'test_modutil': {
#                                            'module': <module> pykit.modutil.test.test_modutil,
#                                            'children': None,
#                                        },
#                                    },
#                            }
#                },
#               }
#    ... ...
# }

k3modutil.submodule_leaf_tree(pykit)
# {
#    'modutil': {
#                'modutil': <module> pykit.modutil.modutil,
#                'test': {'test_modutil': <module> pykit.modutil.test.test_modutil},
#                }
#    ... ...
# }

Author

Zhang Yanpo (张炎泼) drdr.xp@gmail.com

Copyright and License

The MIT License (MIT)

Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com

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

k3modutil-0.1.4.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

k3modutil-0.1.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file k3modutil-0.1.4.tar.gz.

File metadata

  • Download URL: k3modutil-0.1.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for k3modutil-0.1.4.tar.gz
Algorithm Hash digest
SHA256 730d4f2bf6d899ef442f1943de672ac8e44856107832bc4c8014d1d806e33f4a
MD5 9c81e56eeddc167d1c45a5e17a98f302
BLAKE2b-256 d74783ea4daae89bafafd0f8aa26313884d962eaf616823bcf40bac6b024ad37

See more details on using hashes here.

File details

Details for the file k3modutil-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: k3modutil-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for k3modutil-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 67adbbd0dbb4e90b6601c1b2bf31bfc84af932be930a7caf666750f7aeecfb21
MD5 101804f0cfec40afcdbf2d923825b5f8
BLAKE2b-256 e3d308494ea0894aa345a432489d5882c58601c17948c6f6427a6e5876daa61b

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