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
Release history Release notifications | RSS feed
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)
Built Distribution
File details
Details for the file fiximports-0.0.1.dev2.tar.gz
.
File metadata
- Download URL: fiximports-0.0.1.dev2.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88b2babd48fe3c4eb604eeee095dde0dcc4c635097090e08b9c8a3f477b38d70 |
|
MD5 | 25ae4f7eacee824594328d118d676ccb |
|
BLAKE2b-256 | 14d621b193e560b933ca5c7c8e1b597f333277563520a2ae293213117aa200c5 |
File details
Details for the file fiximports-0.0.1.dev2.linux-x86_64.tar.gz
.
File metadata
- Download URL: fiximports-0.0.1.dev2.linux-x86_64.tar.gz
- Upload date:
- Size: 284.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c68f44db0859dd92d0065b7ba4266ca90991f465cf5bed98cff57a0c1468488e |
|
MD5 | 049e6cd938a59c7bad1d80a15f5a16c1 |
|
BLAKE2b-256 | 93d779618543d0098f87e522b06361e4f8adef3eed10bab3f4efacf5a5c93f09 |
File details
Details for the file fiximports-0.0.1.dev2-py2.py3-none-any.whl
.
File metadata
- Download URL: fiximports-0.0.1.dev2-py2.py3-none-any.whl
- Upload date:
- Size: 316.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce0122cf9650e8e5f4306d3097eb1dbb53fdd1dd4e6c8b1d059d9ea4b1d00f48 |
|
MD5 | 328a71ee034b8f7e363b6dfb6e07e29a |
|
BLAKE2b-256 | 4d4060be7bf3b919fc584ac1f1fdbb5cb841110b3c647177c56a827d1421bd13 |