Skip to main content

Detect duplicate imports

Project description

dupimport

Find things you imported twice in your python code, when you probably only needed to import once.

Installation

pip install dupimport

Usage

Use on a file: dupimport path/to/file.py

or use on a folder:

  • dupimport .
  • dupimport path/to/folder/

Caveats

Imports in an if statement may be okay

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dupimport-1.0.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

dupimport-1.0.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file dupimport-1.0.0.tar.gz.

File metadata

  • Download URL: dupimport-1.0.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.5

File hashes

Hashes for dupimport-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e26cc2f902fe6d8472185d91f4b8c47684ab8c45e872fdb8916011fe5d83b554
MD5 d904e82493761da7796ca17a79536355
BLAKE2b-256 b65174205afbb5edbd13fa83bb1c2ac60e4e08e26e64b36d3e0bd60c620f56b6

See more details on using hashes here.

File details

Details for the file dupimport-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dupimport-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.5

File hashes

Hashes for dupimport-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9424b4e434c80edebdc81a9cdf9fd409de3047e917f58fdca81044368f0d2338
MD5 639a7a85c1e9214182ba84957b554069
BLAKE2b-256 fe57f3d96c6c304dfc8551fee0c8ff85a6dae0f81142d4d12745361713f630bc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page