echo 'from x import a, b, c' | flatten-imports | black-macchiato
from x import a
from x import b
from x import c
Flattening your imports is helpful:
reducing the risk of merge conflicts
making it easier to see what imports are used
more linter friendly (linter errors are easier to see on a line basis)
Quick Start
pip install flatten-imports
Release files for flatten-imports 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flatten_imports-0.1.0.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flatten_imports-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:5.0 kB
Release files / flatten_imports-0.1.0.tar.gz
| Download URL | flatten_imports-0.1.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19f48da1123bc39c0acf6d94dd84efb91ce06e42969e74b75a198f373d46a645
|
|
BLAKE2b-256 checksum How to use checksums |
f57d81933e1f8b33d648ba1843d189fcf4a752f0aef8ece55f95fa4cb9eb1535
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.9 Darwin/23.6.0
|
Release files / flatten_imports-0.1.0-py3-none-any.whl
| Download URL | flatten_imports-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f20a6d72cc1c94b5d876ea4321153674c79d0891f95e5ea755f526dd46aa4742
|
|
BLAKE2b-256 checksum How to use checksums |
cd383d7840c646d0640c6d6a49bf510f769fd322f012009d8cde8eccd7ed6378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.9 Darwin/23.6.0
|