“Any color you like.”
Prism is the compromising Python code formatter. By using it, you agree to cede control over some minutiae of hand-formatting, but can still actually configure things that matter. In return, Prism gives you speed, determinism, and freedom. You will save time and mental energy for more important matters.
Prism can be installed by running pip install prism. It requires Python 3.7+ to run.
If you can't wait for the latest hotness and want to install from GitHub, use:
pip install git+https://github.com/gsmethells/prism
To get started right away with sensible defaults:
prism {source_file_or_directory}You can run Prism as a package if running it as a script doesn't work:
python -m prism {source_file_or_directory}Prism does not force PEP 8 on you (whew). Style configuration options are deliberately not limited.
Prism does reformats entire files in place. It does take previous formatting into account).
Our documentation covers the default Prism code style, but feel free to tune it.
Pro-tip: If you're asking yourself "Do I need to configure anything?" the answer is "No". Prism is still all about sensible defaults. Applying those defaults will have your code in compliance with many other Prism formatted projects.
MIT
Welcome! Happy to see you willing to make the project better. You can get started by reading this:
The log has become rather long. It moved to its own file.
See CHANGES.
The author list is quite long nowadays, so it lives in its own file.
See AUTHORS.md
Everyone participating in the Prism project, and in particular in the issue tracker, pull requests, and any other activity, is expected to treat other people with respect and more generally to follow the guidelines articulated in the Python Community Code of Conduct.
At the same time, humor is encouraged. In fact, basic familiarity with Monty Python's Flying Circus is expected. We are not savages.
And if you really need to slap somebody, do it with a fish while dancing.