Module parsing

Module parsing 

Source
Expand description

Import statement parsing utilities

This module provides functions for parsing Python import statements and extracting relevant information such as package names and imported items.

Functionsยง

custom_import_sort
Custom sorting for import items: ALL_CAPS first (alphabetically), then mixed case (alphabetically)
extract_items
Extract imported items from an import statement
extract_package
Extract the package name from an import statement
parse_import
Parse an import statement and categorize it