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
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| flatten_imports-0.1.0.tar.gz | 2.1 kB | Without provenance | Details for flatten_imports-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flatten_imports-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for flatten_imports-0.1.0-py3-none-any.whl |
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
|
Security for flatten-imports 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.