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
Uploading to Pypi
Build and upload distributions:
$ python setup.py bdist_wheel
$ python setup.py bdist_wheel --universal
$ twine upload dist/*
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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file fiximports-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: fiximports-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 315.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd3fa14138ed5c9f2154785b5788200b063d4ed541618f1bce7a3edc5f59fa12 |
|
MD5 | 4b2e7c0dfe76fbd8620ae4af3a77a73b |
|
BLAKE2b-256 | 1d0d6fa85b2ccae5d7c9bda1ada6f787bb404385475412f7311b38d94b121159 |