{"repo":"pappasam/toml-sort","free":true,"listed":false,"github":"https://github.com/pappasam/toml-sort","clone":"git clone https://github.com/pappasam/toml-sort.git","description":"Toml sorting library","language":"Python","stars":116,"topics":["python3","python-library","toml","toml-sort","cli","command-line-tool","command-line-parser","sorting","formatter"],"license":"MIT","category":"cli-tools","readme_excerpt":"toml-sort A command line utility to sort and format toml files. Installation Motivation This library sorts TOML files, providing the following features: - Sort tables and Arrays of Tables (AoT) - Option to sort non-tables / non-AoT's, or not - Preserve comments, where possible - Standardize whitespace and indentation I wrote this library/application because I couldn't find any \"good\" sorting utilities for TOML files. Now, I use this as part of my daily workflow. Hopefully it helps you too! Command line usage This project can be used as either a command line utility or a Python library. Read the docs for an overview of its library capabilities. For command line usage, see below: Configuration file toml-sort can also be configured by using the pyproject.toml file. If the file exists and has a tool.tomlsort section, the configuration is used. If both command line arguments and the configuration are used, the options are merged. In the case of conflicts, the command line option is used. In short, the names are the same as on the command line (and have the same meaning), but - is replaced with . Please note, that only the below options are supported: Configuration Overrides The pyproject.toml configuration file also supports configuration overrides, which are not available as command-line arguments. These overrides allow for fine-grained control of sort options for particular keys. Only the following options can be included in an override: In the example configuration, path.to.key","default_branch":null,"files":null,"tree":[],"storefront":"/r/pappasam","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pappasam/toml-sort/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}