Skip to content

Trimports is a program which automatically removes unused imports from your Python script.

License

Notifications You must be signed in to change notification settings

amitjoshi9627/Trimports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trimports - Remove Unused Imports

Trimports is a program which automatically removes unused imports from your Python script.

Install

From PyPI :

$ pip install trimports

Usage: trimports [-h] -l/--location "<FILE_LOCATION>"

required arguments:

> -h, --help show this help message and exit. > -l FILE_LOCATION, > --location FILE_LOCATION Location of Target file.

Functionalities:

------------------1. Remove Unused imports 2. Remove Duplicate imports 3. Remove imports which contains * and replace * with the relevant methods used. ( from os import *)

Example:

  1. trimports -l "/home/Documents/Python/utils.py"
  2. trimports --location "/home/Documents/Python/utils.py"

About

Trimports is a program which automatically removes unused imports from your Python script.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages