Skip to content

tedious ramblings

The blog of Robert Hafner

Menu
  • Projects
  • Resume
  • Sponsor
  • Archives
  • About
Menu

Introducing DapperData for Formatting YAML and JSON

Posted on January 31, 2023January 31, 2023 by Robert Hafner

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.

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.

You can find DapperData on Github and PyPI.

Share this:

  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on X (Opens in new window) X
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to print (Opens in new window) Print
  • More
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to email a link to a friend (Opens in new window) Email

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About

Robert Hafner is a Principal Engineer based in Chicago focusing on distributed applications, infrastructure, and security. This blog is a running journal of projects, tutorials, and random ideas that pop into his head.

  • GitHub
  • Mastodon
  • LinkedIn

Popular Posts

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

©2025 tedious ramblings | Built using WordPress and Responsive Blogily theme by Superb