Skip to main content

force_absolute_imports

simple tool that checks only absolute imports are used

# install
python -m pip install force_absolute_imports

# usage
python -m force_absolute_imports foo.py bar.py python_folder 

Pass python files and/or folders. Folders will be recursively scanned for .py files

You can pass --in-place parameter to fix imports. (it will edit files in place):

python -m force_absolute_imports --in-place foo.py bar.py python_folder

Metadata

Release files for force-absolute-imports 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for force-absolute-imports 0.11.0
File Size Uploaded Provenance Actions
force_absolute_imports-0.11.0.tar.gz 2.4 kB Without provenance Details for force_absolute_imports-0.11.0.tar.gz

Release files / force_absolute_imports-0.11.0.tar.gz

Download URL force_absolute_imports-0.11.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
306770e66480a4809e2419377f33037266097fc47da0c342c0999ad0bc2728f7
BLAKE2b-256 checksum
How to use checksums
2b6dcc2136d395ec687858b6c9be6cafc8b2350046030debe59ce3df0ead1d1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for force-absolute-imports 0.11.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page