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
Update the dependencies for tests
$ pip-compile test-requirements.in
Generating the documentation
$ python setup.py docs
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 Distribution
fiximports-0.0.1.dev3.tar.gz
(14.7 kB
view details)
File details
Details for the file fiximports-0.0.1.dev3.tar.gz
.
File metadata
- Download URL: fiximports-0.0.1.dev3.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69581848a81b09ccc4566657289b302a001d632d2c23bed8ee672db73b074599 |
|
MD5 | dd795a12fad6e397f9e747fbff7ec8d3 |
|
BLAKE2b-256 | 1c28034c385d2eb20dda8c9d28f416cb66cef1d8b85d6c071071c41555c8e34c |