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 1.2.0---HUGE UPDATE! BIGGEST ONE YET!

import_all() now imports new modules! Full list: 'autocomplete','autocomplete_w','autoexpand','browser','build','calltip','calltip_w','charset_normalizer','codecontext','colorizer','config','config_key','configdialog','curses','debugger','debugger_r','debugobj','debugobj_r','delegator','direct','dynoption','editor','filelist','format','grep','help','help_about','history','hyperparser','id','idle_test','iomenu','keyring','mainmenu','more_itertools','multicall','outwin','parenmatch','pathbrowser','percolator','pyparse','pyshell','query','redirector','replace','rpc','run','runscript','screeninfo','scrolledlist','search','searchbase','searchengine','sidebar','squeezer','stackviewer','statusbar','textview','tooltip','tree','undo','util','window','zoomheight','zzdummy'. ;

New Function! Introducing nonimported(): returns a list of STANDARD LIBRARY modules that have NOT been imported into shell yet.

Major bug fixes, including recursion bugs, data loss bugs and much more!


🚀 Installation

Install directly from PyPI:

pip install modxpy

In Python, import as import modx (not modxpy)


Functions: 


import_all()

Imports about every standard library module at once.

🔹 import_random(n)

Imports n random modules from the standard library.

🔹 import_letter(letter)

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

🔹 import_external()

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

🔹 import_screen()

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

🔹 list_importall()

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

🔹 modules_loaded()

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

🔹 imported()

Lists the modules imported since ModX loaded (user + ModX), including dependencies.

🔹 modximported()

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

🔹 import_letter(letter)

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

🔹 search_modules(keyword)

Search for modules whose names contain the keyword.

🔹 info(module_name)

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


Example Code:


import modx  # import ModX module

# Import almost every standard library module at once
modx.import_all()

# Show all modules imported after ModX loaded (user + ModX)
modx.imported()

# Show only modules imported via ModX functions
modx.modximported()

# Import 5 random modules from ModX list
random_modules = modx.import_random(5)  # returns list of module names

# Import all modules starting with letter 't'
t_modules = modx.import_letter('t')  # returns list of module names

# Import all installed third-party modules (if any)
modx.import_external()

# Import common screen/GUI/game modules if available
modx.import_screen()

# Get the list of modules import_all() would import
modx.list_importall()  # returns list of module names

# Get list of standard library modules NOT yet imported
modx.nonimported()  # returns list of unimported modules

# Search for modules containing the keyword 'json'
modx.search_modules('json')  # returns list of module names

# Show information about a specific module
modx.info('random')  # prints path and docstring snippet

# Show ModX built-in help screen
modx.modxhelp()


💡 Why Use ModX?



Explore the Python standard library in seconds

Stress-test your environment by bulk importing modules

See hidden dependencies that load behind the scenes

Experiment with random imports for fun or testing

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-1.2.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

modxpy-1.2.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for modxpy-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e5dfcfe4e1bf05076a4ff9ab8c78dca1a29030996699e8509351680d9842bff5
MD5 883083f6ca0c4381f0a60d307941d9d9
BLAKE2b-256 5015d8599c0dfdaf401dbb309dedb10fcafb11ec59217f947efdf37b89009fca

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for modxpy-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cae8054a8864b5c1485fe900826b4562b68a34023374b48fe5bd99a4111e51f1
MD5 3107bc545f7f8cc5faae0c046ac94caf
BLAKE2b-256 122efe2c1270f7416bd39662c709541bc879b456fd953609d54b8846d5e0028c

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