Skip to main content

ModX — The Python Module Universe at Your Fingertips

Project description

🌟 ModXPy — The Python Module Universe at Your Fingertips

Welcome to ModXPy, the ultimate playground for Python’s modules.
With ModXPy you can instantly import, explore, and experiment with the entire Python standard library — plus any installed third-party modules — all from one simple interface.

UPDATE 2.3.0

REPLACED FUNCTION: imported() WITH preloaded()

imported() has been removed, due to importlog() doing the same job, but better sorting it into chronological order, causing overlap and rendering imported() kind of useless. importlog() does not check for preloaded modules, so ModX now has a function to tell you that.

Full Function Name + Docstring: preloaded(show_builtins=True, show_internal=False, show_submodules=False):

  """Show modules pre-loaded by Python before ModX started.

  show_builtins: Include Python built-in modules (default True)

  show_internal: Include modules starting with '_' (default False)

  show_submodules: Include submodules with '.' in name (default False)

  """

🚀 Installation and Importing

IMPORTANT: Before you install ModX, you MUST first (if not already) run "pip install packaging" inside of powershell/terminal. ModX will NOT work without the packaging module.

Install directly from terminal.

Type: "pip install modxpy"

In Python, import as import modx (not modxpy)

Functions:

🔹 importall(show_imported=False)

Imports about every standard library module at once.

🔹 importrandom(n, strict_mode = False, show_imported = False)

Import n random stndlib modules.

strict_mode=False: import n modules, some may leak due to dependencies.

strict_mode=True : Force import until EXACTLY n NEW modules.

🔹 importletter(letter, show_imported=False)

Imports all standard library modules whose names start with the given letter.

🔹 importexternal(show_imported=False)

Attempts to import every third-party module you currently have installed.

🔹 importscreen(show_imported=False)

Imports every module that uses a screen/GUI (like pygame or turtle).

🔹 listimportall()

Returns a list of modules that would be imported by import_all().

🔹 modsloaded()

Shows how many modules you currently have downloaded on your device.

🔹 preloaded()

Show modules pre-loaded by Python before ModX started.

🔹 modximported()

Lists the modules that were ONLY imported by ModX, NOT including user imports

and dependencies.

🔹 importletter(letter)

Import every standard library module from the ModX 'modules' list whose name starts with the given letter (case-insensitive).

🔹 searchmodules(keyword)

Search for modules whose names contain the keyword.

🔹 info(module_name)

Shows basic info about typed module: file path, built-in status, docstring.

🔹 isimported(module)

Checks if module is currently imported into Python Shell (Not Pythonlib)

🔹 dependencies()

Shows what other modules a specific module depends on without importing it.

🔹 vcompat(module_name, python_version)

Checks if a module is compatible with a python version, if a version was given.

🔹 modfunctions(module)

Show how many and what functions a module has without importing it.

🔹 modxhelp()

Shows ModX's built in help dialogue.

🔹 modclasses(module)

Show how many and what classes a module has without importing it.

🔹 modorigin(module)

Shows where a module came from (e.g. built-in, stndlib or pip-installed).

🔹 modbench(n)

Shows how much time and memory a module takes to import (typed modules DOES get imported)

🔹 revdeps(module)

Shows what modules import typed module without importing it.

🔹 modglobals(module)

Show a module's global names (not functions/classes/modules);

optional private names and Markdown export (may import typed module).

🔹 nonimported():

  Returns a list of STANDARD LIBRARY

modules that have NOT been imported yet.

🔹 importlog(include_deps = False):

  Show every module imported since ModX loaded in CHRONOLOGICAL order.

include_deps: If True, include ModX's dependencies in the list.

💡 Why Use ModX?

1.) Explore the Python standard library in seconds 2.) Stress-test your environment by bulk importing modules 3.) See hidden dependencies that load behind the scenes 4.) Experiment with random imports for fun or testing 5.) Discover new modules you didn’t know existed

ModXPy turns Python’s module system into a playground — perfect for learning, testing, or just satisfying your curiosity. Install it today with pip install modxpy, import it with import modx, and start discovering how many modules Python already has waiting for you!

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

modxpy-2.3.0.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.

modxpy-2.3.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file modxpy-2.3.0.tar.gz.

File metadata

  • Download URL: modxpy-2.3.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for modxpy-2.3.0.tar.gz
Algorithm Hash digest
SHA256 ab263223f2d8d90203d6c3c0363e24bc8d791611e0ca05bd0c0a3b9b3892e9db
MD5 1e9deb85c4a57ec29963146f782ed0e1
BLAKE2b-256 1bafd3e9b60c7db99d4edfc262b5adbd7288a56ac4bd4d19ccaaff989476a460

See more details on using hashes here.

File details

Details for the file modxpy-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: modxpy-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for modxpy-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c58e4c840591c9bdc3bbdd5191f0f9ba77a4dcaafd2fa1b7d7c00848b49517e
MD5 6bae1c8fb8b5af0ab3b6ee7907c6c471
BLAKE2b-256 41eb1e1fc7440e88a7e37f9c943c59a86f569c361282146532bcfa436936a039

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