title: Search by value of dict in array
body: <p>I have a large list of dicts, each dict has a token.</p>
  <pre><code>large_list = [{&quot;token&quot;: &quot;4kj13&quot;, &quot;value1&quot;: 10, &quot;value2&quot;: 20},
                {&quot;token&quot;: &quot;hm9gm&quot;, &quot;value1&quot;: 15, &quot;value2&quot;: 30}]
  </code></pre>
  <p>I need to quickly find a dictionary by token, something like</p>
  <pre><code>print(large_list[&quot;4kj13&quot;][&quot;value1&quot;])
  </code></pre>
  <p>Is there any elegant way to do it? I think I can create a dictionary token to index:</p>
  <pre><code>token2index = {&quot;4kj13&quot;: 0, &quot;hm9gm&quot;: 1}
  </code></pre>
  <p>But if there's a better solution, then I would be glad to know.<br />
  I can't change the input format (json), though I can create some intermediate data.</p>
  <p>UPD: also the content of the dict is not simple, so the list can't be easily transformed to a table<br />
  UPD2: tokens are unique</p>