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_CAPSfirst (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