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 Codacy Badge Codecov Maintainability

PYPI - Python Version PYPI - Pycln Version Total Downloads Downloads

Forks Stars Issues Pull Requests Contributors Last Commit License

Docstrings: reStructuredText Code style: black Code style: prettier


Read the documentation on Github pages!


Installation and usage

Installation

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

$ pip 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.4.0.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

pycln-2.4.0-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycln-2.4.0.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.0 Linux/6.2.0-1015-azure

File hashes

Hashes for pycln-2.4.0.tar.gz
Algorithm Hash digest
SHA256 1f3eefb7be18a9ee06c3bdd0ba2e91218cd39317e20130325f107e96eb84b9f6
MD5 cf172fb161c3c035af4322c0a165851b
BLAKE2b-256 fa75c071c6b539a44770a140e2f48284b976b83b10d7c56ffb788ccce295acf6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycln-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.0 Linux/6.2.0-1015-azure

File hashes

Hashes for pycln-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1bf648df17077306100815d255d45430035b36f66bac635df04a323c61ba126
MD5 d111ecfea554eba414edb6671e3eb8c4
BLAKE2b-256 77015af486698064fb4e929494ab83a552c693d50c06e47ec353c757973ae530

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