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.1.0 import_all() now imports sys as one of the modules, as sys is one of the "popular" modules in python.


🚀 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.


Example Code:


>>> import modx
>>> modx.imported()
Modules imported after ModX load (user + ModX):
Total modules imported after ModX load: 0

>>> modx.import_random(5)
['csv', 'wave', 'tarfile', 'turtle', 'contextlib']

>>> modx.imported()
Modules imported after ModX load (user + ModX):
- csv
- wave
- tarfile
- turtle
- contextlib

Total modules imported after ModX load: 5



💡 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.1.0.tar.gz (6.0 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.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for modxpy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 10a9ba5c90d54a99d6cdb76328ea27b7571851ed0b25d8225d6d957928120e2a
MD5 8490be47e304fefcd158a804adfb4425
BLAKE2b-256 6f3e292e127148a1223ed659bcbc6fe83b918f8528ddbaed9309a0e243e6d54b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: modxpy-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 018109485ed403ae67380c288b91f7135ac5cca1c87407e4b4d6b3378875985e
MD5 fccaf231f0d3075525034bdb15fd2aaa
BLAKE2b-256 b66cee2f71e6027136f1b5544489434200a1b6ecb3bde9030e76265f4e90302e

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