Skip to main content

Reorder import statements in Python files

Project description

Python Fix Imports is a Python module that can automatically reorganize the import statements of your Python script.

Please read the online documenation for more information.

Example

Fix imports allows you to automatically turn:

from any_module import d, f
from any_module import (b,
                 e)
from any_module import a, \
                c,

into:

from any_module import a
from any_module import b
from any_module import c
from any_module import d
from any_module import e
from any_module import f

Fiximport installation

$ pip install fiximports

Development environment

$ virtualenv env
$ source env/bin/activate
$ pip install --upgrade -e .
$ pip install -r test-requirements.txt
$ python setup.py --version

Executing tests

$ python setup.py test

Updating AUTHORS, ChangeLog

Source distribution:

$ python setup.py sdist

Binary distribution:

$ python setup.py bdist

Wheels:

$ python setup.py bdist_wheel

Update the dependencies for tests

$ pip-compile test-requirements.in

Generating the documentation

$ python setup.py docs

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

fiximports-0.0.1-py2.py3-none-any.whl (315.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fiximports-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fiximports-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 437608d21814783b8cc151288272ee1a4dd682b9ac4c854569098031df6e33af
MD5 606fee79372948b8cf47c6e87070db5d
BLAKE2b-256 5b04a586cc8cfb8bd914a155d46f2706e992745fb36f24c12f101e702f4472eb

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