I have a lot of open source projects- and this week I plan on announcing four more! To start with I am happy to release DapperData, a simple formatter that enforces styles on YAML and JSON files. This project is written in Python and takes inspiration from projects such as Black and Prettier.
![An image of the DapperCLI in use. It shows a "dry run" which shows two files that need to be reformatted, followed by a command to reformat them and then another test.](https://i0.wp.com/blog.tedivm.com/wp-content/uploads/2023/01/Screen-Shot-2023-01-30-at-2.23.35-PM.png?resize=640%2C334&ssl=1)
DapperData can be used to automatically fix formatting in code bases or to test that a code base is following the standard. It can be configured with pyproject.toml, environment variables, or command line flags (dapperdata --help
). At the same time it is a remarkably tiny project that runs surprisingly quickly.
Right now I'm using this primarily to keep Github workflows clean, but it can be used in a variety of projects. If there's interest other formats may be added as well.