Skip to main content

jupyter-reorder-python-imports

reorder-python-imports is a great library. Now available in Jupyter notebook and lab.

What does it do?

Once loaded, automatically format python imports according to reorder-python-imports using their formatting methods.

Quickstart

python -m pip install jupyter-reorder-python-imports

Import into Jupyter using two methods:

%load_ext jupyter_reorder_python_imports

Or,

import jupyter_reorder_python_imports

jupyter_reorder_python_imports.load()

The latter method allows for specifying the minimum python version (as a tuple of integers) to be used for removing obsolete __future__ imports. For example, jupyter_reorder_python_imports.load(min_python_version=(3,9)) specifies 3.9 as the minimum python version.

See the examples folder for some examples.

Testing

Tests use playwright. Prior to running the tests execute: python -m playwright install --with-deps firefox

If desired, pass the --no-headless flag to pytest for local debugging.

Contributions

TODO:

  • Improve testing
  • Read configuration from pyproject.toml

Metadata

Release files for jupyter-reorder-python-imports 0.0.2

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

Source distribution (sdist)

Source distribution for jupyter-reorder-python-imports 0.0.2
File Size Uploaded Provenance Actions
jupyter_reorder_python_imports-0.0.2.tar.gz 4.9 kB Without provenance Details for jupyter_reorder_python_imports-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-reorder-python-imports 0.0.2
File Interpreter ABI Platform Actions
jupyter_reorder_python_imports-0.0.2-py3-none-any.whl Python 3 none any Details for jupyter_reorder_python_imports-0.0.2-py3-none-any.whl

Total release size: 10.0 kB

Release files / jupyter_reorder_python_imports-0.0.2.tar.gz

Download URL jupyter_reorder_python_imports-0.0.2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
24394ccd1a671e20438dd8afd66b2f1e16cdaf1790aefce8b90a2072a3bb6f37
BLAKE2b-256 checksum
How to use checksums
e701d5b9a752f366fb20389f6bf62e007ed9530e4c4d79172741efe4d27dd0bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Windows/10

Release files / jupyter_reorder_python_imports-0.0.2-py3-none-any.whl

Download URL jupyter_reorder_python_imports-0.0.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d70bcc05ce63f313402bc562340b6951e60e8c793a397921ffff5e7b6cf6f18
BLAKE2b-256 checksum
How to use checksums
ea8e0b4e67cf781c256de368911880b5708360a81759cfc7757efb727dbf3e22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Windows/10

Security for jupyter-reorder-python-imports 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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