Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asort

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asort

A Python utility / library to sort __all__ lists.

  • 0.1.3
  • PyPI
  • Socket score

Maintainers
1

asort

PyPI version License: Apache-2.0 ASort CI codecov Downloads black CII Best Practices DeepSource

asort for __all__ your __all__ lists

asort is a Python utility / library to sort imports items in an __all__ list alphabetically It provides a command line utility, Python library and pre-commit support to quickly sort all your imports. It requires Python 3.7+ to run but supports formatting any version of Python code.

Works seemlessly with black and isort with no configuration needed

Before asort:

from my_lib import Object
from my_lib import Object3
from my_lib import Object2

__all__ = [
  "Object",
  "Object3",
  "Object2",
]

After asort:

from my_lib import Object
from my_lib import Object3
from my_lib import Object2

__all__ = [
  "Object",
  "Object2",
  "Object3",
]

Installing asort

Installing asort is as simple as:

pip install asort

Using asort

See usage examples on our documentation

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc