title: Problems with creating Python script that creates report with all changes in Excel file
body: <p>I'm having a bit of a major problem with writing a Python script that creates a report of all changes in an Excel file.</p>
  <p>Script should:</p>
  <p>a) Examine a file on a &quot;custom path&quot;</p>
  <ul>
  <li>if there were changes the script should create new .xlsx file same to the file that was changed and save it for next script run, and send report with all changes that were made.</li>
  <li>if there were no changes script does nothing, or gives output similar to &quot;Everything is ok&quot;.</li>
  </ul>
  <p>b) Script should only check 1 Worksheet in an Excel file, and detect changes in 3 or 4 columns.</p>
  <p>I found a Python Excel library but I'm still not managing to create any code that works.</p>
  <p>If someone can help with this, or if someone has any code that I can use it would be much appriciated.</p>
  <p>Thanks in advance.</p>
  <pre><code>import hashlib
  from datetime import datetime
  
  datetime.now()
  now = datetime.now()
  now.strftime(&quot;%H:%M&quot;)
  hasher = hashlib.sha256()
  with open('file path', 'rb') as afile:
      buf = afile.read()
      hasher.update(buf)
  
  with open('log.txt', 'a+') as f:
      print(&quot;File was checked at&quot;, now.strftime(&quot;%H:%M&quot;), &quot;this is hash:&quot;,            
  hasher.hexdigest(),&quot;\n&quot;, file=f)
  </code></pre>
  <p>This is the code i have at the moment.</p>