Real-world systems, such as supply chain, often involve working with physical quantities, such as mass and energy. You don’t have to be a professional scientist or engineer to create an application that can scale and allow users to input quantities in any unit without the application crashing. Python has a robust and ever-growing ecosystem that is full of alternatives that can be easily integrated and expanded for your application.
In a previous post, I talked about the Half liter library, which makes working with physical quantities easier. For a more fun way to learn and put together the different parts of our programming puzzle, feel free to come back to the post .
The goal of this article is to provide more information about the Pint package so that we can create a way to store unit definitions that are made on the fly and persist them after the program ends.