title: Testing a filter on a document on client-side
body: <p>Say I have a SON-document (typically fetched using a mongodb query, but not necessarily), and a query-filter expression (e.g. <code>{ 'x': {'$ne': 5} }</code>), is there a client-side way to test the document against the filter (using pymongo)?</p>
  
  <p>Expected behavior: </p>
  
  <pre><code>satisfies({ 'x': 1 }, { 'x': {'$ne': 5} })
  =&gt; True
  satisfies({ 'x': 5 }, { 'x': {'$ne': 5} })
  =&gt; False
  </code></pre>