Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Identify modules used in a Python application by running it.

Project description

Identify modules used in a Python application.

To run:

kartoffel module:func [args for application]

For example, for IPython:

kartoffel IPython:start_ipython

Your application will run. If any modules are dynamically loaded (e.g. plugins), activate the features to ensure that they are loaded. Then quit your application.

After your application exits, Kartoffel will capture a list of all the Python modules loaded (sys.modules). Then it will classify these into groups:

  • Modules from identified distributions (i.e. PyPI packages)
  • Modules from the standard library (using stdlib_list)
  • Modules not from files (builtins and dynamically created modules)
  • Unidentified

The results are saved as kartoffel-result.json in the working directory. A summary is printed on stdout.

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for kartoffel, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size kartoffel-0.1-py3-none-any.whl (8.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size kartoffel-0.1.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page