Skip to main content
Yaroslav Grebnov
Golang developer, SDET
View all authors

How to use enums in Python applications

· 18 min read
Yaroslav Grebnov
Golang developer, SDET

Python enum package allows to utilise very powerful functionality in terms of managing constants and configuration entities. These entities are very compact and in many cases are more convenient to use than dictionaries or configuration files in any format. In a set of examples below, we will demonstrate how to use enums in Python applications as well as the benefits of such usage.