A python class which automatically removes unused imports from your Python script.
Project description
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.
Example:
trimports -l “/home/Documents/Python/utils.py”
trimports –location “/home/Documents/Python/utils.py”
Change Log
v0.1.1
> First Release
v0.1.2
Removed import bugs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trimports-0.1.2.tar.gz.
File metadata
- Download URL: trimports-0.1.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fae8069c379f5e4e2c72472466c275c2c3993535463c6bd1ecbfe84ac8af514
|
|
| MD5 |
425ea184b42f3e5c5276e2dbaad5d933
|
|
| BLAKE2b-256 |
4084180772332fc3207f906905718bba3a1bd0a43c31312ff011abe46e3ca036
|
File details
Details for the file trimports-0.1.2-py3-none-any.whl.
File metadata
- Download URL: trimports-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac0cc13d499b8d574b1c424d9b8d0d8ab340208090228b518ae9907b141ecfe7
|
|
| MD5 |
25d7456b564b0c7bb7e814f94fddf77b
|
|
| BLAKE2b-256 |
28f384da23cbd79720b106a12176ed4742003123636e001932f25b97f1984f28
|