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 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

Update the dependencies for tests

$ pip-compile test-requirements.in

Generating the documentation

cd doc
make html
make man

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

fiximports-0.0.1.dev2.tar.gz (14.4 kB view details)

Uploaded Source

fiximports-0.0.1.dev2.linux-x86_64.tar.gz (284.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file fiximports-0.0.1.dev2.tar.gz.

File metadata

File hashes

Hashes for fiximports-0.0.1.dev2.tar.gz
Algorithm Hash digest
SHA256 88b2babd48fe3c4eb604eeee095dde0dcc4c635097090e08b9c8a3f477b38d70
MD5 25ae4f7eacee824594328d118d676ccb
BLAKE2b-256 14d621b193e560b933ca5c7c8e1b597f333277563520a2ae293213117aa200c5

See more details on using hashes here.

File details

Details for the file fiximports-0.0.1.dev2.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for fiximports-0.0.1.dev2.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 c68f44db0859dd92d0065b7ba4266ca90991f465cf5bed98cff57a0c1468488e
MD5 049e6cd938a59c7bad1d80a15f5a16c1
BLAKE2b-256 93d779618543d0098f87e522b06361e4f8adef3eed10bab3f4efacf5a5c93f09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fiximports-0.0.1.dev2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ce0122cf9650e8e5f4306d3097eb1dbb53fdd1dd4e6c8b1d059d9ea4b1d00f48
MD5 328a71ee034b8f7e363b6dfb6e07e29a
BLAKE2b-256 4d4060be7bf3b919fc584ac1f1fdbb5cb841110b3c647177c56a827d1421bd13

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