ssort
ufmt
ssort | ufmt | |
---|---|---|
6 | 2 | |
354 | 91 | |
- | - | |
7.0 | 7.9 | |
11 days ago | about 1 month ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ssort
- Show HN: SSort – The Python source code sorter
- GitHub - bwhmather/ssort: Tool for sorting top level statements in python files
- Ssort: Python Source Code Sorter
-
Formatting Code with Black
By the way, I have raised a ticket to finalize method order before 1.0 release (https://github.com/bwhmather/ssort/issues/11). Please follow and comment if you would like to see a change.
ufmt
-
Formatting Code with Black
Give µsort a try instead; it's focused on providing more safety when applying sorting to large codebases, and is designed to pair well with black out of the box:
https://usort.readthedocs.io
https://ufmt.omnilib.dev
-
We're the core team behind the popular Python autoformatter: Black. AMA!
After rolling out Black + isort (and later usort) to millions of lines of code, I prefer https://github.com/omnilib/ufmt
What are some alternatives?
isort - A Python utility / library to sort imports.
black - The uncompromising Python code formatter
ipython - Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
autoflake - Removes unused imports and unused variables as reported by pyflakes
intellij-blackconnect - IDEA plugin for using black[d] during Python development.
yapf - A formatter for Python files
deps - Django Enhancement Proposals
LibCST - A concrete syntax tree parser and serializer library for Python that preserves many aspects of Python's abstract syntax tree
awesome-python-code-formatters - A curated list of awesome Python code formatters
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production