Contents Menu Expand Light mode Dark mode Auto light/dark mode
miniscope-io 0.1.0 documentation
miniscope-io 0.1.0 documentation
  • API
    • Data
    • Formats
    • io
    • sdcard
    • exceptions
    • Plots
      • Headers
    • Utils
  • Changelog
Back to top
Edit this page

Utils#

miniscope_io.utils.hash_file(path: Path | str) → str#

Return the sha256 hash of a file

Parameters:
  • path (pathlib.Path) – File to hash

  • hash (str) – Hash algorithm to use

Returns:

Hash of file

Return type:

str

References

https://stackoverflow.com/a/44873382

Next
Changelog
Previous
Headers
Copyright © 2023, Jonny
Made with Sphinx and @pradyunsg's Furo
On this page
  • Utils
    • hash_file()