{"library":"sort-lines","title":"sort-lines","type":"library","description":"A simple command-line tool and Python library to alphabetically sort lines in files. Version 0.3.0 supports Python >=3.9. Maintenance is infrequent.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install sort-lines"],"cli":{"name":"sort-lines","version":"usage: sort-lines [-h] [--case-sensitive | --case-insensitive] [filenames ...]"}},"imports":["from sort_lines import sort_lines"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/samueljsb/sort-lines","docs":null,"changelog":"https://github.com/samueljsb/sort-lines/blob/main/CHANGELOG.md","pypi":"https://pypi.org/project/sort-lines/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from sort_lines import sort_lines\n\n# In-place sort lines in a file\nsort_lines('path/to/file.txt', in_place=True)\n\n# Or sort and return as string\nsorted_text = sort_lines('path/to/file.txt', in_place=False)\nprint(sorted_text)","lang":"python","description":"Sort lines in a file. Use in_place=True to modify the file directly, or False to return the sorted text.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}