Skip to main content

A formatter for finding and removing unused import statements.

Project description

Logo

A formatter for finding and removing unused import statements.

Pycln Docs CI CD FUZZ Codecov

PYPI - Python Version PYPI - Pycln Version PyPI Downloads Downloads

Forks Stars Issues Pull Requests Contributors Last Commit License


Read the documentation on Github pages!


Installation and usage

Installation

Pycln requires Python 3.9+ and can be easily installed using the most common Python packaging tools. We recommend installing the latest stable release from PyPI with pipx

$ pip install pipx
$ pipx install pycln

Usage

By default Pycln will remove any unused import statement, So the simplest usage is to specify the path only:

$ pycln [PATH]

Also, it's possible to run pycln as a package:

$ python3 -m pycln [PATH]

NOTE: you may need to use -a/--all option for more satisfying results. see -a/--all flag.

Further information can be found in our docs:

Configuration

Pycln is able to read project-specific default values for its command line options from a configuration file like pyproject.toml or setup.cfg. This is especially useful for specifying custom CLI arguments/options like path/paths, --include, --exclude/--extend-exclude, or even --all.

You can find more details in our documentation:

And if you're looking for more general configuration documentation:

Used by

The following notable open-source projects trust and use Pycln:

The following organizations use Pycln:

Are we missing anyone? Let us know.

License

MIT

Contributing

A big welcome for considering contributing to make the project better!

You can get started by reading this:

You can also dive directly into the technicalities:

Change log

The log has become rather long. It moved to its own file.

See CHANGELOG.

Authors

The author list is quite long nowadays, so it lives in its own file.

See AUTHORS

Code of Conduct

Everyone participating in the Pycln project, and in particular in the issue tracker, and pull requests is expected to treat other people with respect.


Give a ⭐️ if this project helped you!

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

pycln-2.6.0.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycln-2.6.0-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file pycln-2.6.0.tar.gz.

File metadata

  • Download URL: pycln-2.6.0.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.1 Linux/6.11.0-1018-azure

File hashes

Hashes for pycln-2.6.0.tar.gz
Algorithm Hash digest
SHA256 758cfd07f0d9711f69989bd4cef7e451e3d7166073b0c0f77d4a712dbac8b3fe
MD5 be66f78884335fc86ebf37e827368786
BLAKE2b-256 a81bbe7329dcde1bf5126c7367ddc3b87945e3c9a208eb161b732bebad014eb9

See more details on using hashes here.

File details

Details for the file pycln-2.6.0-py3-none-any.whl.

File metadata

  • Download URL: pycln-2.6.0-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.1 Linux/6.11.0-1018-azure

File hashes

Hashes for pycln-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32faabf77daf2a8995238f7522399d9e6f2dc40bcfe90e619299512cdb5bd8f2
MD5 3da434dd62f3fbf97664ee26da38eb4d
BLAKE2b-256 db675aa8a63e1af76d29c67ff85d0c2f44dd294044fadacb19beb4bae7eafa01

See more details on using hashes here.

Supported by

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