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

Zaio Research Project: C#

Why can API-First improve an API?

Path To Being A Full Stack Web Developer

Hello Container

LeetCode — Binary Watch

Modernizing the Healthcare platform with a GraalVM Proof of Value

Connecting Azure Data Factory to FTP servers with Private IP and using Logic App to run ADF…

Business scalability with the best in software development

Business scalability with the best in software development

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

Introduction To List Data Structure In Python.

Ansi-color.cmd: Is Windows Batch Scripting a Programming Language?

A grid of foreground and background colors showing the resulting combinations

In operator and having clause in SQL Python

DeepChem