Skip to main content

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:

  1. trimports -l “/home/Documents/Python/utils.py”

  2. trimports –location “/home/Documents/Python/utils.py”

Change Log

v0.1.1

> First Release

v0.1.2

Removed import bugs

Metadata

Release files for trimports 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trimports 0.1.2
File Size Uploaded
trimports-0.1.2.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trimports 0.1.2
File Interpreter ABI Platform
trimports-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 kB

Release files / trimports-0.1.2.tar.gz

Download URL trimports-0.1.2.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1fae8069c379f5e4e2c72472466c275c2c3993535463c6bd1ecbfe84ac8af514
BLAKE2b-256 checksum
How to use checksums
4084180772332fc3207f906905718bba3a1bd0a43c31312ff011abe46e3ca036
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / trimports-0.1.2-py3-none-any.whl

Download URL trimports-0.1.2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac0cc13d499b8d574b1c424d9b8d0d8ab340208090228b518ae9907b141ecfe7
BLAKE2b-256 checksum
How to use checksums
28f384da23cbd79720b106a12176ed4742003123636e001932f25b97f1984f28
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page