Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (19 loc) · 541 Bytes

usage.rst

File metadata and controls

31 lines (19 loc) · 541 Bytes

Usage

Installation

To use asort, first install it using pip:

(.venv) $ pip install asort

Running asort

asort can be run directly from the command line

(.venv) $ asort __init__.py directory/1
Fixing directory/1/__init__.py
Fixing directory/1/2/__init__.py

or it can be used as a python library

>>> from asort import ASort
>>> ASort().process_path("directory/1")
['directory/1/__init__.py', 'directory/1/2/__init__.py']