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)
  • Click to share on Reddit (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to print (Opens in new window)
  • More
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to email a link to a friend (Opens in new window)

Leave a Reply Cancel 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

  • JShrink reaches over 21,000,000 installs and releases v1.6!
  • Using Github Actions OpenID Connect to push to AWS ECR without Credentials
  • Rob’s Awesome Python Template
  • Getting AWS ECS to work on Ubuntu with Full GPU Support
  • A Walkthrough of PSR-6: Caching
  • Simple Multiprocessing with QuasiQueue
  • Building an Email Testing Environment with Vagrant, Dovecot and Travis-CI
  • Introducing DapperData for Formatting YAML and JSON
  • Multi-Py: Multiplatform Container Images for Python Packages
  • Telling OpenSSH to Pull Keys from Github with AuthorizedKeysCommand

Subscribe to Blog via Email

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

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