Heading image

Prerequisites

  1. Familiarity with Pipenv. See here for my post on Pipenv.
  2. Familiarity with Python Fire
  3. (optional) Familiarity with PyInquirer

Getting started

While I will be using my hello-python-fire repo, the follow will work in any repo initialized with pipenv.

Demonstrating the error

Python Fire requires valid input for method arguments for how it operates.

Prettifying the error

To see Pretty Errors in action, all we need to do is import the package:

Summary

Today’s post demonstrated how to use the PrettyErrors to make our error debugging experience much more pleasant.

Resources and further reading

  1. The ABCs of Pipenv
  2. PrettyErrors
  3. Pipenv
  4. CLI Prompts In Python

--

--

--

Senior Engineer @ UsabilityHub. Formerly Culture Amp.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to upload NFT metadata to IPFS for free

Dark Matter DeFi Weekly Update

“So what is it you do?”

Building Developer Relations Teams

PlaidCTF 2020: reee

Environments in Software Development

Becoming a developer: some learning tips

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dennis O'Keeffe

Dennis O'Keeffe

Senior Engineer @ UsabilityHub. Formerly Culture Amp.

More from Medium

How to Cheat in Wordle with Python

Using Python to generate an Anki deck

Backend with Python:

Visual Studio Code — finding all files that *do not* contain a certain string