title: Read from a file and get the corresponding enum
body: <p>Hi I need to use a script to make some pictures. I have an enum with the corresponding path of image.</p>
  <pre class="lang-py prettyprint-override"><code>class MyEnum(Enum):
      Arsenal = 'Club Logos/English-Football-Clubs/1. Premier League/Arsenal FC.ico'
  </code></pre>
  <p>and I have a text where I have a line with the word 'Arsenal' and I want to read the line and depending on the string use the path</p>
  <p>Something like this</p>
  <pre class="lang-py prettyprint-override"><code>with open('team_in.txt') as f:
      for line in f:
          print(MyEnum.line_TRASFORMED_IN_ENUM.value) # print the path where line=='Arsenal'
  </code></pre>